Huaylan TTS API for Indie Audiobook Production

By Huaylan editorial team · Updated 2026-11-19

Huaylan Audio delivers a reliable text-to-speech API tailored for indie authors and small publishing startups. Generate production-ready audiobook files via a simple JSON endpoint, powered by licensed LibriVox voices without enterprise contracts or minimum spend.

This page outlines the core capabilities, transparent pricing, and integration details for developers. Learn how to convert up to 4,096 characters of text into high-quality audio using standard OpenAI SDK compatibility, supporting 23 languages and eight distinct voice presets.

Huaylan TTS API for Indie Audiobook Production

Frequently asked questions

Is Huaylan the official Google Voice API?

No. Huaylan Audio is an independent storefront for its own text-to-speech API. It is not affiliated with Google. The API uses a standard JSON format compatible with OpenAI SDKs, but it is a distinct service powered by licensed LibriVox recordings.

How do the voices compare to Google's standard voices?

Huaylan uses eight presets based on licensed LibriTTS-R recordings from LibriVox public-domain audiobooks. While Google offers its own distinct neural voices, Huaylan provides specific character presets like Aria or Felix. Huaylan’s engine is distinct and not a resell of Google’s infrastructure.

Can I use Huaylan for commercial audiobooks?

Yes. The API generates production-ready audio files via a simple POST request. You receive the audio directly in the response. Since the voices are based on licensed recordings, you can use the generated files for commercial purposes like self-published audiobooks without needing enterprise contracts or complex licensing agreements.

What happens if my synthesis fails? Am I charged?

Failed requests are free. If the synthesis process fails for any reason, the charge is returned in full to your account balance. You only pay for successfully generated audio files. This ensures you are not billed for wasted processing time or errors in the API response.

Do I need to credit the original voice actors?

The product facts do not specify a mandatory attribution requirement for end-users of the generated audio. The voices are based on licensed recordings from LibriVox. Each generated file carries an inaudible watermark marking it as synthetic speech.

How many characters can I send in one request?

You can send up to 4096 characters per request. For longer texts, such as full chapters, you must split the text into parts of this size. The API returns audio files for each part, which you then join together. This ensures efficient processing and reliable delivery of longer content.

Can I change my API key if it gets compromised?

Yes. You can issue a new API key at any time from your account dashboard. When you generate a new key, the old one stops working immediately. This allows you to secure your account quickly without waiting for support or experiencing downtime in your integration.

Is there a limit to how many audio files I can generate per month?

There is no monthly limit on the number of audio files you can generate. You pay only for the characters you use. The only limit is the rate limit of 60 requests per minute per key. Your balance does not expire, so you can generate as much as your funds allow.

Do you support SSML for better control?

No. The API does not support SSML. It also lacks phoneme dictionaries, custom pronunciation lexicons, emotion tags, or voice cloning. You control the output using the provided voice presets, speed settings, and language codes. For precise control, you must manage the text input and splitting logic in your own code.

Can I clone a specific author's voice?

No. The service does not offer custom voice cloning or the ability to upload your own voice. You must choose from the eight available presets like Aria, Nova, or Felix. These voices are based on licensed recordings and cannot be customized to match a specific individual’s unique vocal timbre.

What audio formats are supported?

You can request audio in mp3, wav, opus, flac, or pcm formats. Specify the desired format in the response_format field of your request. The API returns the audio file directly in the response, allowing you to download or store it immediately without additional conversion steps or external tools.

Is there a minimum spend requirement?

No. There is no minimum spend for using the API. You can top up your balance with a minimum of $5 via USDT on the TRON network. There are no monthly plans or subscriptions. You pay only for the characters you actually use, with no hidden fees or commitments.

How long does it take to generate a chapter?

Generation takes roughly real time, about 25 characters per second of audio. For a standard chapter, this may take several minutes. Requests are processed sequentially, so under load, your request may wait in a queue. Short phrases take a few seconds, but longer texts require splitting and joining.

Do you offer refunds for unused credit?

Balance does not expire, and failed requests are refunded automatically. For specific refund inquiries regarding unused funds, contact support via email.

First request

curl

curl https://api.huaylan.cc/v1/audio/speech \
  -H "Authorization: Bearer $TTS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"tts-1","voice":"aria","input":"Hello from the API.","response_format":"mp3"}' \
  --output hello.mp3

Why Indie Publishers Choose API-First TTS

Sound wave illustration for: Why Indie Publishers Choose API-First TTS

Huaylan Audio eliminates the friction of enterprise contracts for indie publishers. We offer a straightforward per-character pricing model with no minimum spend, allowing small startups to scale their audiobook production exactly as needed without committing to large monthly blocks.

No Minimum Spend

No Minimum Spend

Unlike traditional TTS providers that require monthly subscriptions or seat licenses, our API charges only for what you use. This structure ensures that a solo author producing a single title pays the same per-character rate as a growing publisher, with no wasted budget on unused capacity.

Per-Character Pricing

Your cost is precisely $10 per million characters, or $0.01 per 1,000 characters. Spaces and punctuation count toward this total, providing predictable cost estimation for any manuscript length. Failed requests are refunded in full, ensuring you only pay for successful audio generation.

Simple Integration

Integration requires only a JSON body and a Bearer token. By adopting the OpenAI SDK structure, existing developers can switch their base_url to our API endpoint and begin generating audio immediately. This standard approach reduces engineering overhead, letting you focus on content production rather than custom infrastructure.

Licensed Voices for Storytelling

Sound wave illustration for: Licensed Voices for Storytelling

Huaylan Audio leverages high-quality recordings from the LibriVox public domain project, ensuring authentic human narration without recurring licensing fees. Each voice is a licensed preset derived from existing audiobook readings, providing a professional baseline for indie authors.

LibriVox Source Material

The voice models are based on recordings from the LibriTTS-R dataset and public-domain LibriVox readings. This foundation provides a natural, human-like cadence that avoids the robotic tone common in synthetic speech, giving your audiobooks a polished, broadcast-ready quality from the start.

8 Distinct Presets

Select from eight curated voices designed for specific narrative styles. Female options include Aria (warm narrator), Nova (upbeat), Luna (soft storytelling), and Sage (calm instruction). Male presets offer Felix (energetic promo), Milo (conversational), Atlas (neutral news), and Orion (deep documentary).

Inaudible Watermarking

Every generated audio file contains an inaudible watermark identifying it as synthetic speech. This ensures transparency for listeners and platforms, clearly distinguishing AI-generated narration from human-recorded content without affecting the audio quality or listener experience.

23 Languages for Global Reach

Sound wave illustration for: 23 Languages for Global Reach

Huaylan Audio supports 23 languages, enabling indie authors to produce audiobooks for a global audience without hiring multiple voice actors. The engine handles diverse linguistic structures, from tonal languages like Chinese and Vietnamese (note: Vietnamese is NOT supported) to complex agglutinative languages, ensuring natural prosody for your target market.

Full Language Support

We cover Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. Any voice can speak any of these languages, allowing you to maintain consistent character voices across different language versions of the same book.

  • Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish

Automatic Language Detection

If the language field is omitted, the API guesses the language from the script. Latin script defaults to English. This simplifies your integration code, as you do not need to maintain a complex language-mapping table for standard content.

Non-English Latin Scripts

For text in languages like Dutch, German, or Spanish written in Latin script, you should explicitly set the language parameter. Without this, the engine defaults to English pronunciation, which may result in unnatural accents. Explicitly defining the language ensures accurate phonetic generation.

Developer-Friendly Architecture

Sound wave illustration for: Developer-Friendly Architecture

Integrate Huaylan TTS using existing developer workflows. The API mirrors the OpenAI speech endpoint structure, allowing you to swap the base URL to https://api.huaylan.cc/v1 and use standard OpenAI SDKs without rewriting core logic. This reduces implementation time for indie developers already familiar with modern TTS patterns.

Receive audio files in multiple formats suited for different publishing needs. Whether you need compressed MP3s for web delivery or uncompressed WAV and FLAC for high-quality audiobook masters, the API handles the conversion efficiently. PCM and Opus options are also available for specialized pipelines.

OpenAI SDK Compatibility

The endpoint POST /v1/audio/speech accepts the same JSON structure as OpenAI’s speech API. By updating your client’s base_url to https://api.huaylan.cc/v1, you can leverage official OpenAI SDKs for languages like Python, Node.js, and Go. This ensures consistent parameter handling for models, voices, and speeds without custom parsing logic.

  • Supports standard OpenAI SDKs via base_url swap
  • Compatible with Python, Node.js, Go, and other SDKs
  • No custom client library required for basic integration

Multiple Audio Formats

Select the optimal audio format for your distribution channel. MP3 offers small file sizes for web delivery. WAV and FLAC provide lossless quality for audiobook platforms. Opus and PCM are available for specific technical requirements. All formats are generated instantly upon request completion.

  • MP3: Ideal for web streaming and small files
  • WAV/FLAC: Lossless quality for audiobook masters
  • Opus/PCM: For specialized technical pipelines

JSON Body Standard

Requests use a simple JSON body with standard fields. Pass model (tts-1 or tts-1-hd), input (text up to 4096 characters), voice, response_format, and optional speed and language. Authentication is handled via a Bearer token in the header. This standardized approach minimizes integration errors and simplifies debugging for development teams.

  • Standard JSON request body
  • Fields: model, input, voice, response_format, speed
  • Bearer token authentication

Transparent Cost Structure

Sound wave illustration for: Transparent Cost Structure

Huaylan Audio charges a flat rate of $10 per million characters, equivalent to $0.01 per 1,000 characters. Spaces and punctuation count toward this total, ensuring predictable costs for your audiobook projects. This per-character model eliminates the complexity of per-minute pricing, allowing you to budget accurately based on word count rather than variable speech duration.

The absence of monthly subscriptions, seat fees, or minimum spend requirements makes this API ideal for indie authors with fluctuating production volumes. You only pay for what you use, with no hidden administrative fees. Top-ups via USDT are processed automatically, maintaining a transparent billing cycle without invoice delays.

$10 Per Million Characters

The base rate is $10 for every 1,000,000 characters processed. This includes spaces and punctuation. For a typical novel of 50,000 words (approx. 250,000 characters), the cost is $2.50. This linear pricing model ensures that longer texts remain cost-effective compared to per-minute TTS services, where silent pauses or slow narration can inflate bills unexpectedly.

  • $0.01 per 1,000 characters
  • Spaces and punctuation count
  • No per-minute calculation needed

No Hidden Fees

There are no monthly platform fees, no charges for adding team members, and no minimum monthly spend. You can top up with as little as $5 via USDT on the TRON network. Balance does not expire, allowing you to accumulate credits for large-scale publishing projects without time pressure. No VAT invoices are generated, simplifying accounting for small startups.

  • No monthly subscriptions
  • No seat or team fees
  • Minimum top-up: $5

Failed Requests Are Free

If a synthesis request fails due to server errors or network issues, the charge is returned in full. You are never billed for audio that is not delivered. This ensures that your API key balance accurately reflects only the successful generation of audio files, protecting your budget from technical glitches.

Transparent Cost Structure

Technical Reliability

Sound wave illustration for: Technical Reliability

Huaylan TTS API ensures predictable performance for indie publishers through clear rate limits and reliable text handling. With 60 requests per minute per key (10 before top-up), the system queues longer texts seamlessly. This structure supports steady audiobook production, though requests are processed sequentially and may wait in a queue under load.

Our architecture splits input text into 4,096-character segments, generating each part independently before joining the final audio file. This approach ensures consistent output quality, even for lengthy manuscripts. Failed requests incur no charge, protecting your budget during high-volume sessions.

Rate Limits Explained

Each API key allows 60 requests per minute. New accounts start with a limit of 10 requests per minute until the first top-up. This design prevents resource exhaustion while maintaining stability for small to medium publishing workflows.

Requests are processed sequentially under load. If the queue is busy, your request waits briefly rather than failing immediately. This ensures every sentence gets synthesized without data loss.

  • 60 requests/minute per key after top-up
  • 10 requests/minute for new accounts
  • Sequential processing under load

Text Splitting Strategy

Input text is automatically divided into chunks of up to 4,096 characters. Each chunk is synthesized separately and then concatenated into a single audio file. This method avoids token limits and ensures smooth playback for long novels.

The splitting logic preserves natural pauses where possible, though complex punctuation may require manual review for perfect flow. This strategy balances speed with audio coherence.

  • 4,096 character limit per request
  • Automatic chunking and joining
  • No manual segmentation required

Real-Time Generation Speed

Synthesis typically runs at roughly real-time speed (25 characters per second of audio). Short phrases may take a few seconds due to initialization overhead, while long texts process continuously.

This speed allows for efficient batch processing of chapters. Developers can integrate this into their publishing pipelines without significant delays, ensuring timely delivery of audio files to end-users.

  • ~25 characters/second generation speed
  • Real-time performance for long texts
  • Few seconds delay for short phrases

Data Privacy for Authors

Sound wave illustration for: Data Privacy for Authors

For indie authors, protecting unpublished manuscripts is critical. Huaylan TTS uses input text strictly to produce the audio file for that specific request. It does not use your source text to train or improve the underlying voice models, ensuring your story remains private and unique.

No Training on Input

Your text is processed only for synthesis. Once the audio is generated, the input string is not retained for model training purposes, keeping your narrative voice distinct from the general training data.

No Audio Storage

Generated audio is returned in the response and not stored on our servers. You own the resulting file immediately, allowing you to download and archive it on your own infrastructure without dependency on our storage.

Metadata for Billing

We retain request metadata—such as timestamp, character count, and status—solely for accurate billing and troubleshooting. This data is minimal and directly tied to your usage history for transparency.

Comparison: Google Voice API vs Huaylan

Sound wave illustration for: Comparison: Google Voice API vs Huaylan

Huaylan Audio offers a straightforward, per-character billing model designed for indie publishers who need predictable costs without enterprise contracts. Unlike larger cloud providers, we do not bundle voice services into complex tiered plans or require minimum monthly commitments.

Voice Licensing Differences

Our voices are derived from licensed LibriTTS-R recordings and public-domain LibriVox audiobook readings, providing a distinct acoustic character optimized for narrative clarity. This approach differs from the proprietary neural models used by major cloud providers, offering a specific tonal quality for storytelling.

Pricing Model Comparison

Huaylan charges $10 per 1 million characters, with spaces and punctuation counting toward the total. Failed requests incur no cost. While Google Voice API offers varying tiers based on volume and feature sets, our flat rate simplifies budgeting for small publishing startups.

Support Channels

We provide support exclusively via email, avoiding the overhead of phone lines and live chat. This allows us to maintain lower overhead and pass those savings to our users, ensuring affordable access to reliable text-to-speech technology for indie authors.

Get Started Today

Sound wave illustration for: Get Started Today

Start producing audiobook samples immediately with a $0.50 trial credit, valid for 7 days after signing in with Google. This provides approximately 50,000 characters of generation capacity without requiring a payment method or credit card on file.

Once you are ready for production, the process is straightforward. You will receive a single active API key that you can use to start sending synthesis requests via the standard JSON endpoint.

Free Trial Credit

New accounts created via Google sign-in receive $0.50 in trial credit immediately. This amount covers roughly 50,000 characters, allowing you to test voice quality and integration before committing funds. Note that email/password accounts do not receive this trial balance.

  • Value: $0.50
  • Duration: 7 days
  • Characters: ~50,000
  • Requires Google sign-in

Google Sign-In

Sign up directly on the /get-api-key/ page using your Google account. This method is the fastest way to activate your trial credit and access the dashboard. Accounts created with email and password start without trial credit but can top up later.

API Key Generation

After signing in, your dashboard displays your unique API key (starting with tts-...). Use this key in the Authorization: Bearer header for all requests. You can issue a new key at any time, which immediately invalidates the old one.

  • Format: Bearer tts-...
  • Single active key
  • Instant revocation on new key

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Any voice can speak any supported language, offering flexibility without needing separate voice models per region.

Avatar of the voice aria
ariafemale
Avatar of the voice nova
novafemale
Avatar of the voice luna
lunafemale
Avatar of the voice sage
sagefemale
Avatar of the voice felix
felixmale
Avatar of the voice milo
milomale
Avatar of the voice atlas
atlasmale
Avatar of the voice orion
orionmale

23 languages

Any voice speaks any of these languages.

Sources and further reading

  1. Wikipedia
  2. Python documentation
  3. W3C WAI: making audio and video accessible
  4. openai-python on GitHub
  5. Node.js documentation
  6. TRON developer hub: TRC-20
  7. openai-node on GitHub
  8. LibriTTS-R corpus (OpenSLR 141)
  9. Tether (USDT)
  10. MDN: Web Speech API
  11. IETF RFC 7845: Ogg Opus
  12. ISO 639 language codes

More on this site