How to Generate Dramatic Audiobooks with Our TTS API?

By Narrative Logic editorial team · Updated 2026-11-19

This page explains how to use the Narrative Logic API to convert manuscripts into consistent, high-quality audio files. We cover voice selection, text formatting, and API integration for indie authors and audiobook producers who need reliable narration without complex software.

You will learn to structure requests for tts-1 or tts-1-hd, manage character limits, and calculate costs accurately. The guide provides concrete examples for generating files, handling languages, and troubleshooting common issues, ensuring a smooth production pipeline for your self-publishing projects.

How to Generate Dramatic Audiobooks with Our TTS API?

Frequently asked questions

What is text-to-speech for audiobooks?

Text-to-speech (TTS) converts written text into audio files via a cloud API. You send a POST request with your manuscript text, and the service returns an audio file. This allows indie authors to automate narration without hiring voice actors or using complex software, creating high-quality audio from text input.

How does the API handle punctuation?

Punctuation is treated as a character in the input text. Spaces and punctuation count toward your 4096-character limit per request and your billing total. The engine interprets standard punctuation to determine natural pauses and intonation.

Which voice sounds most dramatic?

Orion is designed for deep, documentary-style narration, making it suitable for dramatic or serious content. Atlas provides a neutral, news-style tone, while Luna offers a soft, storytelling voice. You can select any of the eight presets to match the specific mood of your audiobook chapters.

Can I change the speed of the narration?

Yes, you can adjust the speed between 0.25 and 4.0 using the speed parameter. This allows you to slow down complex passages or speed up lighter content. The default speed is 1.0, but you can fine-tune the delivery to match your preferred narration pace.

How do I handle special characters in text?

Send your text as a standard JSON string in the input field. The API accepts standard Unicode characters. Since the engine guesses language from script, ensure non-English Latin text includes the language parameter to avoid defaulting to English pronunciation for special characters.

What is the difference between tts-1 and tts-1-hd?

Both models use the same engine and have identical pricing. Both models use the same engine and price; the difference is the audio format quality. Choose based on your quality needs, as both support the same voices, formats, and speed settings for your audiobook production.

Do I need to know how to code?

No, you do not need to code. You can use the API via simple HTTP requests or the official OpenAI SDKs by changing the base URL. The dashboard provides a ready curl example, and you can generate audio by sending text through the API endpoint without writing complex scripts.

Can I use the API for commercial audiobooks?

Yes, the API is designed for commercial use, including indie authors and audiobook producers. There are no monthly plans or seat limits. You pay only for the characters you generate, and generated audio is not stored, allowing you to sell your finished audiobooks without restriction.

How long does it take to generate a chapter?

Generation is roughly real-time, producing about 25 characters of text per second of audio. A typical chapter might take a few minutes. Requests are processed sequentially, so under load, generation may wait in a queue. Short phrases take a few seconds to synthesize.

What is a voice watermark?

Every generated audio file contains an inaudible watermark that marks it as synthetic speech. This identifies the audio as AI-generated without affecting the listening experience. The watermark is embedded in the audio file itself, ensuring transparency about the source of the narration.

Can I record my own voice later?

The API does not support custom voice cloning or uploading your own voice. You must use one of the eight preset voices. If you want to record your own voice, you will need to do that separately and cannot merge it with the TTS output via this API.

Is the audio file large?

File size depends on the format and length. You can choose mp3, wav, opus, flac, or pcm. MP3 and Opus are compressed, resulting in smaller files suitable for distribution. WAV and FLAC are lossless, resulting in larger files but higher quality. PCM is raw audio.

How do I split a long book into parts?

Split your text into parts of up to 4096 characters per request. Send each part as a separate API call, then join the resulting audio files. This ensures each request stays within the character limit and allows you to manage generation load effectively.

What happens if the internet cuts out?

If a request fails, the charge is returned in full. You can retry the request without penalty. The API does not store generated audio, so you must save the file locally. Failed requests do not consume your character balance, ensuring you only pay for successful generations.

Can I edit the generated audio?

The API returns raw audio files (mp3, wav, etc.) that you can edit in any standard audio software. Since the API does not provide SSML or phoneme controls, editing must be done externally. You can cut, splice, or apply effects to the generated files as needed.

Do I need to pay for each character?

Yes, you pay $0.01 per 1,000 characters, including spaces and punctuation. Failed requests are free. You can top up your balance with USDT on TRON. There are no monthly plans, so you only pay for the characters you actually generate.

Is there a limit on how many books I can make?

No, there is no limit on the number of books you can produce. You can make as many as you want, limited only by your balance and rate limits. There are no minimum spends or subscription tiers, allowing unlimited production for indie authors and producers.

Understanding TTS for Audiobooks

Sound wave illustration for: Understanding TTS for Audiobooks

Text-to-Speech (TTS) technology converts written text into audio files via a simple API call. For indie authors, this means converting manuscripts directly into listenable content without hiring voice actors for every role. The engine processes text up to 4,096 characters per request, returning standard audio formats like MP3 or WAV.

Dramatic voice selection relies on eight distinct presets, ranging from the warm, clear narration of Aria to the deep, documentary tone of Orion. Each voice is based on licensed recordings, ensuring consistent quality. You choose one voice per request to maintain a uniform narrative style throughout your chapter.

Text-to-Speech Technology

Our API acts as a bridge between your manuscript and audio production. You send JSON data with your text, and receive an audio file. This eliminates the need for complex recording studios or editing software, allowing you to automate the pipeline from text to audio.

Dramatic Voice Selection

Selecting the right voice sets the tone for your audiobook. Female voices like Luna offer soft storytelling, while Felix provides energetic promo-style delivery. Male options like Atlas suit neutral news tones, while Orion delivers a deep, authoritative voice ideal for dramatic readings. Each voice supports 23 languages, allowing for versatile casting.

  • Aria: Warm, clear narrator
  • Luna: Soft, storytelling
  • Orion: Deep, documentary
  • Felix: Energetic, promo

Narrative Flow

Narrative flow depends on consistent voice usage and appropriate speed settings. You can adjust speed between 0.25 and 4.0 to control the delivery rate. Longer texts should be split into 4,096-character chunks to ensure stable generation and clear audio output.

Preparing Your Manuscript

Sound wave illustration for: Preparing Your Manuscript

Converting manuscripts requires clean, plain text. Remove complex markdown, headers, and special characters that the TTS engine cannot interpret. Simple paragraph breaks ensure natural pauses between sentences, creating a more readable narrative flow without additional formatting overhead.

The API accepts up to 4096 characters per request. This limit includes spaces and punctuation. Preparing your text within this constraint ensures immediate processing without unnecessary delays or errors during the synthesis step.

Text Formatting

Ensure your source text is plain UTF-8. Avoid embedded images or complex tables. Use standard newline characters to separate paragraphs. This simplicity allows the engine to focus on voice synthesis rather than parsing layout data.

  • Use plain .txt or .json files
  • Remove markdown symbols like # or *
  • Keep paragraph breaks standard

Character Limits

Each API call processes a maximum of 4096 characters. Exceeding this limit results in an error. Count characters carefully, as spaces and punctuation count toward the total. This affects both your character count for billing and the technical request size.

  • Max 4096 characters per request
  • Spaces and punctuation count
  • Errors occur if limit is exceeded

Splitting Long Chapters

Split long chapters into segments of 4096 characters or less. Generate audio for each segment individually. Finally, join the resulting audio files to create a complete chapter. This method ensures stable processing and allows for easier quality control of individual parts.

Note that requests are processed sequentially. Under load, longer texts may take time. Splitting allows you to manage queue waits more effectively than one massive request.

  • Split at logical sentence breaks
  • Generate segments individually
  • Join audio files afterward

Choosing the Right Voice

Sound wave illustration for: Choosing the Right Voice

Selecting the right voice establishes the narrative tone for your audiobook. Our eight presets cover diverse styles, from warm narration to deep documentary voices, ensuring character accuracy without complex software.

Female Narrator Options

Aria offers a warm, clear narration style ideal for standard fiction. Nova provides a bright, upbeat tone suitable for light-hearted or contemporary genres. Luna delivers a soft, storytelling voice perfect for fantasy or romance. Sage is calm and instructional, best for non-fiction or educational content.

  • Aria: warm, clear narrator
  • Nova: bright, upbeat
  • Luna: soft, storytelling
  • Sage: calm, instructional

Male Narrator Options

Felix brings energy and enthusiasm, making it suitable for promotional or fast-paced narratives. Milo offers a friendly, conversational tone for relatable stories. Atlas provides a neutral, news-style delivery for factual content. Orion uses a deep, documentary voice for serious or historical themes.

  • Felix: energetic, promo
  • Milo: friendly, conversational
  • Atlas: neutral, news
  • Orion: deep, documentary

Matching Tone to Genre

Match the voice preset to your genre’s expectations. Use Orion for historical documentaries or Felix for energetic thrillers. Ensure the voice aligns with the protagonist’s perceived age and demeanor. All voices support 23 languages, allowing consistent narration across multi-language editions.

Generating Audio Files

Sound wave illustration for: Generating Audio Files

The core interaction involves sending a POST request to the speech endpoint. You provide the text, select a voice, and specify the output format. The API processes the input and returns the audio file directly in the response body, streamlining integration into your production pipeline.

This direct file return eliminates the need for polling or secondary downloads. You can immediately save the file or pass it to your next processing step, ensuring a seamless transition from manuscript to audio asset.

API Request Structure

Send a JSON payload to POST https://api.roman189.cc/v1/audio/speech. Include model (tts-1 or tts-1-hd), input (your text), voice (e.g., aria, atlas), and response_format. Authentication is handled via the Authorization: Bearer header with your API key.

  • Endpoint: POST /v1/audio/speech
  • Auth: Bearer token in header
  • Body: JSON with model, input, voice, format

Selecting Audio Formats

Choose from mp3, wav, opus, flac, or pcm based on your distribution needs. MP3 is efficient for web delivery, while WAV or FLAC preserves higher fidelity for archival or professional editing. PCM provides raw data for custom processing.

  • mp3: Standard web delivery
  • wav: Lossless quality
  • flac: Compressed lossless
  • opus: High efficiency
  • pcm: Raw audio data

Handling Responses

A successful response returns the audio file directly. If synthesis fails, the charge is reversed, and you receive an error code. Ensure your client handles binary data correctly to avoid corruption when saving the file.

  • Returns binary audio data
  • Returns error JSON on failure
  • Automatic refund on failure

Managing Speed and Pace

Sound wave illustration for: Managing Speed and Pace

Speed control allows you to fine-tune the pacing of your audiobooks, ensuring the narration matches the intended mood. The API accepts a speed parameter ranging from 0.25 to 4.0, giving you precise control over how fast or slow the text is spoken.

Speed Range

You can set any value between 0.25 and 4.0. A value of 1.0 represents normal speaking speed. Lower values slow down the narration, while higher values accelerate it.

  • Minimum: 0.25x (half speed)
  • Standard: 1.0x (normal speed)
  • Maximum: 4.0x (four times speed)

Impact on Clarity

Extreme speeds can affect intelligibility. While short phrases process quickly, very fast speeds may reduce clarity, especially for complex text. Test your specific content to find the optimal balance.

Adjusting for Drama

Use slower speeds (e.g., 0.7–0.9) for emotional or suspenseful scenes to enhance dramatic effect. Faster speeds (1.1–1.5) work well for action sequences or lighter dialogue. Adjust per chapter to maintain narrative flow.

Handling Languages

Sound wave illustration for: Handling Languages

The API supports 23 languages, allowing any voice to speak any supported language. You can specify the language using ISO codes in the request body to ensure accurate pronunciation, especially for non-English texts using the Latin script.

ISO Language Codes

Set the language field to codes like de (German) or ja (Japanese) to override default detection. This ensures the engine uses the correct phonetic rules for the specified language, preventing awkward accented readings.

Auto-Detection Limits

If language is omitted, the system guesses based on script. Latin text defaults to English. It does not support Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali, and all other languages not in the list. Explicitly setting the code avoids errors for mixed scripts.

Multi-Language Books

For books containing multiple languages, split your text by language segments. Send separate API requests for each segment with the correct language code. This ensures consistent voice quality and accurate pronunciation across different linguistic sections of your manuscript.

Handling Languages

Cost Calculation

Sound wave illustration for: Cost Calculation

Generating audiobooks requires precise cost estimation since pricing is based strictly on character count. Each character, including spaces and punctuation, contributes to the total. Understanding how your manuscript’s length translates to audio seconds helps in planning production budgets accurately.

The API charges $0.01 per 1,000 characters. Failed requests are free, ensuring you only pay for successful audio generation. This straightforward model simplifies financial planning for indie authors and producers.

Counting Characters

Every character in your input text counts toward the bill. Spaces, commas, and periods are included. Ensure your text does not exceed 4096 characters per request to avoid splitting overhead.

  • Spaces and punctuation count as characters
  • Max 4096 characters per request
  • Failed requests incur no charge

Estimating Total Cost

Calculate total characters in your manuscript, then divide by 100,000 to get the cost in dollars. For example, a 100,000-character book costs $1.00. Short phrases may take a few seconds to generate, but the cost remains proportional to length.

  • $0.01 per 1,000 characters
  • 100,000 characters = $1.00
  • No hidden fees for speed changes

Budgeting for Projects

Start with the free trial credit of $0.50 (approx. 50,000 characters). Top up via USDT on TRON network for larger projects. Balance does not expire, allowing flexible budgeting over time without monthly subscriptions.

  • Free trial: $0.50 credit
  • Minimum top-up: $5
  • No monthly plans or subscriptions

Technical Requirements

Sound wave illustration for: Technical Requirements

You only need basic scripting skills to integrate the API. No dedicated software or complex SDKs are required; standard HTTP clients handle the requests efficiently.

The process relies on simple POST requests to our endpoint. You can use any language capable of sending JSON payloads, making it accessible for no-code automations or custom scripts.

Basic Programming Knowledge

Understanding how to send HTTP POST requests with JSON bodies is sufficient. You do not need advanced computer science knowledge, just the ability to handle API keys and character strings.

  • JSON payload structure
  • Bearer token authentication
  • Basic error handling

cURL or Python

We provide ready-to-use cURL examples for immediate testing. Python users can leverage the official OpenAI SDK by simply changing the base URL to our API endpoint.

  • cURL command examples
  • Python SDK integration
  • JSON parsing libraries

Internet Connection

A stable internet connection is required to send text and receive audio files. Processing speed depends on server queue load, but connectivity must be consistent to avoid request timeouts.

  • Stable broadband connection
  • No special port requirements
  • Standard HTTPS ports

Quality Control

Sound wave illustration for: Quality Control

Quality control ensures your audiobook meets production standards before distribution. This section covers how to verify audio integrity and confirm synthetic origin without relying on complex software tools.

Since our API returns ready-to-use files, validation focuses on listening checks and format confirmation. This simple process keeps your workflow efficient for indie authors and self-publishing projects.

Listening to Samples

Listen to the generated audio to verify narrative flow and character accuracy. Check that the voice matches the genre tone, such as using Atlas for news-style chapters or Luna for storytelling.

Ensure there are no abrupt cuts or artifacts. The API processes requests sequentially, so minor delays during peak times do not affect audio quality.

  • Verify voice consistency across chapters.
  • Check for natural pacing and clarity.
  • Confirm genre-appropriate tone selection.

Checking Watermarks

Every generated file carries an inaudible watermark marking it as synthetic speech. This is a standard feature, not a flaw, and helps identify the audio as AI-generated.

You do not need special tools to detect this watermark. It remains embedded in the final MP3, WAV, or FLAC file without affecting playback quality.

  • Watermarks are inaudible.
  • No additional detection tools needed.
  • Applied to all generated files.

Validating Audio

Validate that the audio format matches your request (mp3, wav, opus, flac, or pcm). Use standard media players to confirm the file plays correctly.

Ensure the text did not exceed the 4096-character limit per request. If split, verify that the joined audio flows seamlessly without gaps or duplicates.

  • Confirm file format integrity.
  • Check for seamless joins in split texts.
  • Verify character count limits.

Troubleshooting

Sound wave illustration for: Troubleshooting

When generating audiobooks, you may encounter specific technical hurdles. This section covers common API errors, rate limit constraints, and text encoding issues that can interrupt your production pipeline.

Understanding these limitations helps you debug quickly and keep your narration workflow moving without unnecessary delays.

Common API Errors

A 401 error indicates an invalid or expired API key. Ensure your Authorization: Bearer header matches the key from your dashboard. A 400 error usually means the input text exceeds the 4096-character limit per request.

  • Check key validity in dashboard
  • Verify character count per request
  • Ensure valid JSON body structure

Rate Limit Issues

Your key allows 60 requests per minute (10 per minute before the first top-up). If you exceed this, you receive a 429 Too Many Requests error. New accounts start with a lower limit of 10 requests per minute until the first top-up is processed.

  • 60 req/min after top-up
  • 10 req/min for new accounts
  • Queue requests if under load

Text Encoding Problems

Ensure your manuscript text is UTF-8 encoded. Special characters or punctuation outside standard ASCII may cause synthesis failures if not properly formatted. Spaces and punctuation count as characters, so ensure no hidden encoding errors distort the input.

  • Use UTF-8 encoding
  • Verify special character support
  • Check for hidden formatting marks

Best Practices

Sound wave illustration for: Best Practices

Generating audio in advance reduces wait times during final assembly. By pre-producing chapters, you decouple creation from editing, allowing parallel workflows for narration and production.

This approach also smooths out API queue delays. Since requests are processed sequentially, pre-generating ensures your library is ready when needed, avoiding bottlenecks during tight deadlines.

Pre-Generating Chapters

Split your manuscript into chapters of up to 4096 characters. Generate each chapter individually to isolate errors and simplify debugging.

Store the resulting audio files locally. This allows you to review pacing and tone before committing to the full book structure.

  • Split text at natural scene breaks
  • Generate one chapter per API call
  • Store results locally for review

Batch Processing

Process multiple chapters in quick succession to utilize your 60 requests per minute limit efficiently.

Monitor the queue status to ensure no single long request blocks the entire pipeline.

  • Use 60 req/min limit effectively
  • Monitor queue status
  • Avoid blocking long requests

Storage Management

Audio files vary in size depending on format and speed. Plan your storage based on the final output format (mp3, wav, etc.).

Keep a record of which voices and speeds were used for each chapter to maintain consistency across the audiobook.

  • Track format and size
  • Maintain voice/speed consistency
  • Archive generated audio securely

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Their clear, steady delivery handles long descriptive passages effectively.

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. W3C WAI: making audio and video accessible
  3. Node.js documentation
  4. Python documentation
  5. MDN: Web Speech API
  6. LibriTTS-R corpus (OpenSLR 141)
  7. openai-python on GitHub
  8. Tether (USDT)
  9. LibriTTS-R paper (arXiv 2305.18802)
  10. ISO 639 language codes
  11. FFmpeg documentation
  12. Creative Commons Attribution 4.0

More on this site