Text to Speech API Built for Long-Form Content

By Audiobook API editorial team · Updated 2026-11-18

This page details a reliable TTS API designed for indie authors and small publishing startups to convert long-form texts into audiobooks at scale. We handle the 4096-character limits, queue management, and audio concatenation so you can focus on content, not engineering.

You will find specific technical specifications, voice presets suited for storytelling, and a transparent pricing model based on character count. This guide helps you evaluate whether our API infrastructure fits your production workflow for self-publishing.

Text to Speech API Built for Long-Form Content

Frequently asked questions

Does the API handle PDF parsing directly?

No. The API accepts plain text input up to 4096 characters. You must extract text from PDFs or other formats before sending it to the endpoint. The service focuses solely on converting the provided string into audio, handling no document parsing or formatting logic itself.

How are long texts split and joined?

You must split texts into parts of up to 4096 characters yourself. Send each part to the API and receive individual audio files. Then, join these audio files together to create the final audiobook. The API does not automatically concatenate files.

What happens if a request fails?

If synthesis fails, the charge is returned in full. You are not billed for failed requests. This ensures you only pay for successfully generated audio files, protecting your balance from errors during the conversion process without any additional penalty or credit loss.

Can I use any voice for any language?

Yes. Any of the eight voices can speak any of the 23 supported languages. You can assign Aria to Spanish or Felix to Japanese without restriction. This flexibility allows consistent character voices across different languages without needing to switch voice presets for each language.

How long does it take to generate audio?

Typical speed is roughly real time, about 25 characters per second of generation. Short phrases take a few seconds. Requests are processed sequentially, so under load, a request may wait in a queue. Longer texts will take proportionally longer based on character count.

Is there a character limit per request?

Yes, each request accepts up to 4096 characters of input text. Spaces and punctuation count toward this limit. For longer audiobooks, you must split the text into chunks of 4096 characters or less and send multiple requests to the API endpoint.

What audio formats are supported?

The API supports mp3, wav, opus, flac, and pcm response formats. You specify the desired format in the request body. This allows flexibility for different publishing platforms, from web streaming (mp3/opus) to high-quality archival storage (wav/flac) or raw processing (pcm).

Do I need to pay for failed requests?

No. Failed requests are free. If synthesis fails, the charge is returned in full. You only pay for successful audio generation. This ensures your billing accurately reflects only the usable audio files produced by the API during your usage session.

How is the language detected?

If the language field is not set, the system guesses it from the script. Latin script text defaults to English. For non-English Latin-script text, you should explicitly set the language parameter to ensure accurate pronunciation and avoid incorrect language detection errors.

Are the voices cloned from real people?

Voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and LibriVox public-domain audiobook readings. They are not cloned from specific real people but synthesized from these licensed sources. Each generated file carries an inaudible watermark marking it as synthetic speech.

What is the input method for the API?

The API uses a POST request to the /v1/audio/speech endpoint. You send a JSON body containing the text, voice, model, and format. The input is plain text, not a file upload. The response returns the generated audio file directly in the specified format.

How do I authenticate my requests?

Include an Authorization header with your Bearer token: Authorization: Bearer tts-.... You obtain this key from your account dashboard. One active key exists per account. You can issue a new key at any time, which immediately invalidates the old one.

Can I change my API key?

Yes. You can issue a new API key at any time from your account dashboard. When a new key is issued, the old one stops working immediately. This allows you to rotate keys for security without downtime, ensuring only active keys are valid.

Is there a free trial for new accounts?

Accounts created with Google sign-in receive $0.50 of credit (about 50,000 characters) valid for 7 days. Email/password accounts start without trial credit. This allows testing the API before topping up with USDT. The trial credit is non-renewable and expires after seven days.

First request

curl

curl https://api.999rbd.com/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 Audiobook Creators Choose API-Based TTS

Sound wave illustration for: Why Audiobook Creators Choose API-Based TTS

Audiobook API enables indie authors to convert long-form texts into audio at scale by abstracting the engineering complexity of character limits and queueing. Instead of manual segmentation, the infrastructure handles the split-join workflow, allowing creators to focus on content rather than technical constraints.

By sending text up to 4096 characters per request, the system processes synthesis sequentially, ensuring consistent quality. Longer texts are divided into parts of up to 4096 characters, synthesized, and the resulting audio files are joined.

Handling 4096-Character Limits

Handling 4096-Character Limits

The API accepts input text in chunks of up to 4096 characters. This limit applies per request, meaning longer manuscripts must be split before submission. Spaces and punctuation count toward this character limit, so authors should account for this when segmenting their text.

Queue Management for Long Texts

Requests are processed one after another, which means under load a request may wait in a queue. Typical speed is roughly real time (25 characters per second), so long texts generate at approximately the same rate as they would be read aloud. Short phrases take a few seconds to synthesize.

Audio Concatenation Logic

To create a seamless audiobook, texts are split into parts of up to 4096 characters. The API generates individual audio files for each part. This logic ensures that long-form content is delivered as a single, coherent audio file without manual intervention.

Voices for Storytelling and Narration

Sound wave illustration for: Voices for Storytelling and Narration

Audiobook narration requires consistent, distinct character voices that maintain listener engagement without the fatigue of human recording sessions. Our eight licensed presets cover the full spectrum of narrative styles, from warm storytelling to neutral news delivery, all derived from high-quality LibriTTS-R recordings.

Each voice is engineered for clarity. The API ensures uniform quality across thousands of characters.

image_prompt

Female Voices: Aria, Nova, Luna, Sage

Aria provides a warm, clear narrator voice ideal for biographies and literary fiction. Nova offers a bright, upbeat tone suitable for young adult novels and energetic non-fiction. Luna delivers a soft, storytelling cadence perfect for fantasy and romance. Sage brings a calm, instructional clarity best for educational content or self-help guides.

bullets

  • Use Aria for classic literature and memoirs
  • Choose Nova for fast-paced thrillers or self-help
  • Select Luna for immersive fantasy and romance
  • Pick Sage for instructional or educational texts

Male Voices: Felix, Milo, Atlas, Orion

Felix is energetic and promo-ready, great for marketing audiobooks or light fiction. Milo sounds friendly and conversational, ideal for personal development or casual narratives. Atlas provides a neutral, news-style tone for factual content or journalism. Orion offers a deep, documentary feel suited for historical or serious non-fiction.

bullets

  • Deploy Felix for promotional content or light fiction
  • Use Milo for conversational self-help or memoirs
  • Select Atlas for news, facts, or journalism
  • Choose Orion for historical or serious non-fiction

Voice Selection for Genre

Matching voice to genre enhances listener retention. Mystery novels benefit from the neutral clarity of Atlas or the soft storytelling of Luna, while sci-fi may suit the deep, documentary tone of Orion. Consistent voice selection across a series maintains brand identity for indie publishers.

bullets

  • Mystery: Atlas (neutral) or Luna (soft)
  • Sci-Fi: Orion (deep) or Felix (energetic)
  • Romance: Luna (soft) or Milo (friendly)
  • Self-Help: Sage (calm) or Milo (conversational)

Language Support for Global Reach

Sound wave illustration for: Language Support for Global Reach

The API supports 23 languages, covering major markets from Arabic to Swahili. Each voice can speak any supported language, ensuring consistent quality across your global catalog without needing separate voice assets for each region.

23 Supported Languages

We support Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. Languages like Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, and Bengali are not supported.

Automatic Language Detection

If the language field is omitted, the system guesses the language from the script. Latin script defaults to English, so non-English Latin text requires explicit tagging to avoid mispronunciation.

Explicit Language Tagging

Pass the ISO code in the request to ensure correct pronunciation. This is critical for mixed-language texts or when the script does not clearly indicate the intended language.

Technical Specifications

Sound wave illustration for: Technical Specifications

The API endpoint is POST https://api.999rbd.com/v1/audio/speech. It accepts a JSON body with fields like model, input, and voice, mirroring the OpenAI speech endpoint structure. You can use the official OpenAI SDK by simply adjusting the base_url to https://api.999rbd.com/v1.

OpenAI-Compatible Endpoint

Send text and receive an audio file. The request shape matches the OpenAI standard, allowing you to leverage existing client libraries with minimal configuration changes.

Supported Audio Formats

Generate audio in mp3, wav, opus, flac, or pcm formats. Choose the format that best fits your storage and playback requirements for long-form audiobooks.

Rate Limits and Throughput

Accounts are limited to 60 requests per minute per key (10 per minute before the first top-up). Longer texts are split into 4096-character segments and concatenated automatically. Generation speed is roughly real-time, though requests process sequentially under load.

Pricing Model for Self-Publishers

Sound wave illustration for: Pricing Model for Self-Publishers

Pricing is straightforward: $10 per 1 million characters ($0.01 per 1,000 characters). Failed requests are free. Accounts receive a $0.50 trial credit valid for 7 days when signing in with Google; email accounts start with zero balance.

Unlike traditional SaaS, there are no monthly subscriptions, seats, or minimum spend requirements. You pay only for what you generate. Balances never expire, making it ideal for irregular publishing schedules.

Cost Per Million Characters

Each character, including spaces and punctuation, counts toward the total. With a typical generation speed of 25 characters per second, long novels process at roughly real-time speeds, though queueing may occur under load.

  • $10 per 1,000,000 characters
  • $0.01 per 1,000 characters
  • Failed requests are free

No Monthly Subscriptions

There are no recurring fees or tiered plans. Whether you produce one audiobook or a hundred, the unit cost remains constant. This model eliminates the risk of paying for unused capacity during slow publishing periods.

USDT Top-Up Only

Top-ups are processed via USDT on the TRON network (TRC-20). The minimum deposit is $5, with funds credited automatically within minutes. We do not accept credit cards, PayPal, or issue VAT invoices.

  • USDT (TRC-20) only
  • Minimum $5 top-up
  • Automatic credit within minutes
Pricing Model for Self-Publishers

Data Privacy and Ownership

Sound wave illustration for: Data Privacy and Ownership

Your input text is used exclusively for synthesis and is never repurposed for training our models. We retain only request metadata—such as timestamp, character count, and status—for billing purposes, ensuring transparency without compromising your creative assets.

Input Text Not Used for Training

Unlike some consumer-grade services, we do not ingest your manuscripts to improve our base engine. Your long-form content remains yours, with no secondary usage rights granted to us for model development.

No Audio Storage

Generated audio files are streamed directly to your client or returned in the response and are not stored on our servers after delivery. This minimizes data exposure and aligns with strict content ownership needs for self-publishers.

Generated Watermarks

Every audio file contains an inaudible watermark marking it as synthetic speech. This helps platforms identify AI-generated content automatically, which is increasingly required by major audiobook distributors and streaming services.

Integration Overview

Sound wave illustration for: Integration Overview

The API accepts standard JSON payloads, allowing indie publishers to integrate TTS into existing publishing pipelines without custom middleware. Requests are straightforward: define the model, input text, and desired voice parameters in a single POST request.

Authentication relies on a single Bearer token per account, simplifying credential management for small teams. Requests are processed sequentially, so under load a request may wait in a queue.

Simple JSON Requests

Send a POST request to the speech endpoint with a JSON body containing the text, voice selection, and format preferences. The endpoint mirrors standard TTS request structures, making it easy to adapt existing code.

You can specify the response format (mp3, wav, op3, flac, pcm) and speed adjustment directly in the payload. No complex headers or body encodings are required beyond standard JSON.

  • POST to /v1/audio/speech
  • JSON body with input, voice, model
  • Supports mp3, wav, opus, flac, pcm

Authentication with Bearer Token

Use the Authorization: Bearer <your-key> header for every request. Your key is generated upon account creation and can be rotated instantly if needed.

One active key per account ensures secure, traceable usage. The key identifies your billing account and applies your specific rate limits.

  • Header: Authorization: Bearer tts-...
  • One active key per account
  • Instant key rotation supported

Error Handling and Retries

Failed synthesis requests are free, providing a safety net for network glitches. The API returns standard HTTP status codes to indicate success or failure.

Implement simple retry logic for transient errors. The system queues requests, so brief delays are normal during peak times, but failures result in a full refund of character credits.

  • Failed requests are free
  • Standard HTTP status codes
  • Automatic queueing under load

Use Cases for Startups

Sound wave illustration for: Use Cases for Startups

Startups in self-publishing and edtech can automate audiobook production by piping manuscript text directly into the API. The system handles chunking and concatenation, allowing you to convert long-form content at scale without manual engineering.

Accessibility solutions benefit from consistent, affordable narration. By generating audio files for digital content, you ensure compliance with accessibility standards without the overhead of hiring multiple voice actors for backlist titles.

Automated Audiobook Production

Convert manuscripts into audio by splitting text into 4096-character segments. The API processes these sequentially, returning concatenated audio files that maintain narrative flow. This workflow allows indie authors to produce audiobooks rapidly, leveraging voices like Luna for storytelling or Felix for promotional content.

With a $10 per million character cost, you can generate hundreds of hours of audio. The lack of monthly subscriptions means you only pay for what you publish, making it ideal for variable output volumes.

  • Split long texts into 4096-character chunks automatically
  • Concatenate audio files seamlessly
  • Pay only for characters generated

Text-to-Speech for E-Learning

E-learning platforms can dynamically generate audio for course materials. Use Sage for instructional clarity or Milo for conversational lessons. The API supports 23 languages, enabling global reach without hiring local narrators for each market.

Since input text is not used for training, your proprietary course content remains secure. Generate audio on demand as students enroll, ensuring fresh pronunciation updates if terminology changes.

Accessibility Solutions

Provide audio alternatives for visual content. The API returns high-quality MP3, WAV, or Opus files suitable for screen readers and audio players. Watermarked synthetic speech clearly identifies the content as AI-generated, maintaining transparency for users.

Support diverse languages including Arabic, Hindi, and Japanese. The explicit language tag ensures correct pronunciation for non-English texts, avoiding the guesswork of automatic detection for complex scripts.

Comparison with Manual Narration

Sound wave illustration for: Comparison with Manual Narration

Manual narration involves hiring voice actors, booking studios, and editing hours of audio. Our API generates files in seconds, handling the heavy lifting of splitting long texts into 4096-character chunks and concatenating them automatically. This removes the logistical bottleneck of coordinating human schedules.

The infrastructure processes requests sequentially, ensuring stable output even under load. You retain full control over pacing and tone without waiting for studio availability or dealing with background noise inconsistencies common in home-recorded audiobooks.

Speed of Production

Generating a 50,000-character manuscript typically takes hours rather than days. With a rate limit of 60 requests per minute, long texts are processed efficiently without requiring complex queue management on your end. The API handles the splitting and joining, delivering a single audio file ready for distribution.

Short phrases may take a few seconds to synthesize, while longer segments approach real-time generation speeds. This throughput allows you to produce a full audiobook catalog faster than manual narration.

  • [ ] Generate a 50,000-character book in minutes, not days.
  • [ ] Automatic splitting of texts >4096 characters into seamless audio segments.
  • [ ] No studio booking delays or voice actor scheduling conflicts.

Consistency Across Titles

Human narrators can suffer from vocal fatigue or varying energy levels between recording sessions. Our 8 presets ensure uniform tone across your entire backlist. Whether you are publishing daily short stories or monthly novellas, the voice remains identical, reinforcing brand recognition for your readers.

You can switch voices for different genres using presets like Luna for storytelling or Atlas for news, maintaining distinct styles without re-hiring talent. Each generated file includes an inaudible watermark, providing a consistent technical signature for your library.

  • [ ] Identical voice tone across thousands of titles.
  • [ ] No vocal fatigue or session-to-session variation.
  • [ ] Consistent technical quality with built-in synthetic watermarks.

Scalability for Backlists

Traditional narration scales linearly with cost: more books mean more actors and studios. Our API scales instantly. Add 10 or 10,000 titles to your catalog without negotiating new contracts or managing multiple freelance invoices. Pricing is strictly $0.01 per 1,000 characters, making long-form content predictable and affordable.

This model eliminates the risk of overpaying for unused studio time. You only pay for what you generate, with failed requests refunded automatically. It is ideal for startups publishing high volumes of short-form content or expanding backlists with minimal overhead.

  • [ ] Zero marginal cost for adding new titles to your library.
  • [ ] No contracts, seats, or minimum spend requirements.
  • [ ] Pay only for successful generations; failures are refunded.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Indie publishers benefit from paying only for what they produce, avoiding minimum monthly commitments common in traditional TTS services.

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. LibriTTS-R paper (arXiv 2305.18802)
  3. ISO 639 language codes
  4. IETF RFC 7845: Ogg Opus
  5. W3C WAI: making audio and video accessible
  6. FFmpeg documentation
  7. Python documentation
  8. Node.js documentation
  9. LibriTTS-R corpus (OpenSLR 141)
  10. Tether (USDT)
  11. OpenAI API reference: create speech
  12. LibriVox public-domain audiobooks

More on this site