How to Generate Spanish Audiobooks with TTS API

By 69q editorial team · Updated 2026-11-19

This guide walks self-publishers through generating consistent, multi-language audiobooks using the VoceScribe TTS API. We focus on high-quality Spanish narration, demonstrating how to convert manuscripts into audio files with reliable voices like Luna or Sage. You will learn to configure requests, handle responses, and manage character limits without complex licensing hurdles.

Readers will find practical steps for preparing text, selecting appropriate models, and estimating costs based on our per-character pricing. The guide includes code examples in Python and cURL to help you integrate the API into your existing workflow. By the end, you will know exactly how to produce professional-grade audio from your written content efficiently.

How to Generate Spanish Audiobooks with TTS API

Frequently asked questions

What is the best voice for Spanish narration?

Q: Which voice is best for Spanish narration? A: All eight voices support all 23 languages, including Spanish. Luna offers a soft, storytelling tone ideal for audiobooks, while Nova provides a bright, upbeat style. Sage suits calm, instructional content, and Aria delivers a warm, clear narrator voice. Each voice maintains consistent quality across all supported languages.

How do I split text for long audiobooks?

Split your text into chunks of up to 4096 characters per request. Generate audio for each chunk individually, then join the resulting audio files. This approach ensures reliable synthesis, as requests are processed sequentially. For long texts, this method maintains consistent audio quality and allows you to manage generation time effectively.

Does the API support SSML for emphasis?

No, the API does not support SSML. It accepts plain text input up to 4096 characters. You cannot use SSML tags for emphasis, pauses, or pronunciation adjustments. The voices render text naturally based on the provided input string without additional markup options for fine-tuning speech patterns or emphasis.

Can I change the speed of the narration?

Yes, you can adjust the speed between 0.25 and 4.0. Use the speed parameter in your request to slow down or speed up the narration. This allows you to match the pacing to your audiobook style. The default speed is 1.0, but you can customize it to suit your content.

What is the maximum text length per request?

The maximum text length per request is 4096 characters. This limit includes spaces and punctuation. If your text exceeds this, you must split it into multiple requests. Each request generates a separate audio file, which you can then join to create a continuous audiobook track.

How do I handle special characters?

Send your text as standard UTF-8 encoded strings in the JSON body. The API handles standard special characters and punctuation within the 4096-character limit. Ensure your text is properly encoded. The system processes the input directly, so no special escaping is required beyond standard JSON formatting.

Is the audio suitable for commercial use?

The voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and LibriVox public-domain readings. The generated audio files contain an inaudible synthetic watermark. You can use the audio commercially, but you should verify specific licensing requirements for the source recordings if needed for your distribution channel.

Do I need to credit the voices?

The voices are based on LibriTTS-R (CC BY 4.0) and LibriVox public-domain readings. While the API does not mandate specific attribution, CC BY 4.0 typically requires credit. Check the specific license terms for the source recordings. The audio files include an inaudible watermark marking them as synthetic speech.

How do I detect the language automatically?

If you do not set the language parameter, the API guesses the language 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 narration. This prevents mispronunciation of words in languages like Spanish or French.

What happens if the API is down?

There is no SLA or uptime guarantee. If synthesis fails, the charge is returned in full. Requests are processed sequentially, so under load, a request may wait in a queue. If the service is unavailable, you will receive an error response without being charged for the failed attempt.

Can I use the API for children's books?

Yes, you can use any of the eight voices for children's books. Luna offers a soft, storytelling tone suitable for young audiences, while Nova provides a bright, upbeat style. You can adjust the speed to suit the content. The API supports multiple languages, allowing for diverse narration options.

Is there a limit on the number of files?

There is no limit on the number of audio files you can generate. You are charged based on the total characters processed, at $10 per 1 million characters. You can generate as many files as needed, provided you have sufficient balance. Failed requests are free.

How do I track usage?

Track usage via the dashboard on /get-api-key/. It shows your balance, characters left, and usage history. Request metadata, including time, characters, and status, is kept for billing. You can also monitor your API key activity and balance directly from the account page.

Can I use the API for podcasts?

Yes, the API is suitable for podcast narration. You can generate audio files using voices like Felix for energetic promo content or Atlas for neutral news styles. Adjust the speed parameter to match your podcast pacing. Generate files in formats like MP3 or WAV for easy integration into your podcast workflow.

Preparation

Sound wave illustration for: Preparation

Before generating your first Spanish audiobook chapter, prepare your source text to ensure optimal narration quality. Verify that your manuscript is clean, properly formatted, and ready for character-count billing. Since every character counts toward your $0.01 per 1,000 characters rate, removing unnecessary whitespace can reduce costs slightly.

Choose a voice that matches your narrative tone. Select 'aria' for warm, clear narration or 'nova' for bright, upbeat storytelling. Remember that any voice can speak any of the 23 supported languages, including Spanish, so you can maintain consistent audio quality across different segments.

Choose Your Text

Ensure your text is within the 4,096-character limit per request. If your chapter exceeds this, plan to split it into parts. The API will return separate audio files that you must concatenate later. This approach keeps request processing fast and avoids timeouts.

Review your text for punctuation and special characters. Spaces and punctuation count as characters, so accurate formatting helps in estimating total production costs accurately. Remove any non-text markers that the TTS engine might misinterpret.

  • Limit input to 4,096 characters per request
  • Count all spaces and punctuation as billable characters
  • Pre-split long chapters to avoid queue delays

Select a Voice

Choose from eight licensed presets. For Spanish narration, 'aria' offers a warm, clear narrator style suitable for fiction, while 'nova' provides a bright, upbeat tone ideal for non-fiction or self-help books. Each voice is based on licensed recordings from LibriVox.

All voices support Spanish. You do not need to select a specific Spanish voice; any preset will render Spanish text with high fidelity. Test a short sample to ensure the tone matches your book's genre before processing the entire chapter.

  • Aria: warm, clear narrator
  • Nova: bright, upbeat storytelling
  • Luna: soft, storytelling
  • All voices support Spanish

Set Language Tag

Explicitly set the language parameter to es (ISO code for Spanish) in your API request. While the system can guess languages from Latin script, setting this tag ensures consistent pronunciation and intonation, preventing the default English fallback for ambiguous phrases.

This step is crucial for maintaining audio quality. Without the explicit tag, the system might default to English pronunciation for certain words, leading to audible errors in your audiobook. Always verify the language code matches your source text.

  • Set language: es for Spanish text
  • Ensures consistent pronunciation
  • Prevents default English fallback

API Configuration

Sound wave illustration for: API Configuration

Accessing the VoceScribe API requires a valid authentication key to authorize your requests. Keys are generated directly on your dashboard after signing in via Google or email.

Once obtained, the key serves as your primary credential for all API interactions, ensuring secure access to the TTS engine for generating audiobook content.

Get Your Key

Navigate to the /get-api-key/ page on 69q.info to retrieve your unique API key. Each account is issued one active key; issuing a new one immediately invalidates the previous one.

  • Sign up via Google or email
  • One active key per account
  • Instant invalidation of old keys

Configure Base URL

Point your API client to the correct base endpoint: https://api.69q.info/v1. This URL is required for both the speech generation endpoint and voice listing.

Ensure your SDK or HTTP library is configured to use this base URL so all requests route correctly to the VoceScribe infrastructure.

  • Base URL: https://api.69q.info/v1
  • Use for all API calls
  • Compatible with OpenAI SDKs

Set Headers

Include the authentication header in every request: Authorization: Bearer tts-.... Replace tts-... with your actual key.

Without this header, the API will reject requests with a 401 Unauthorized error. Ensure no extra whitespace is included in the token.

  • Header: Authorization: Bearer <key>
  • Required for all requests
  • Exact token format needed

Sending the Request

Sound wave illustration for: Sending the Request

To generate audio, send a POST request to the speech endpoint with a JSON body. The structure mirrors standard TTS requests, requiring the model, input text, voice, and output format. You can also adjust speed and specify the language for accurate pronunciation.

JSON Body Structure

The request body must include the input string, the voice preset, and the model. You can optionally set response_format (mp3, wav, opus, flac, pcm) and speed (0.25–4.0). Include the language field (e.g., "es") to ensure correct Spanish pronunciation, as the default Latin script guess is English.

  • model: "tts-1" or "tts-1-hd"
  • input: your text string
  • voice: one of 8 presets
  • response_format: mp3, wav, opus, flac, or pcm

Input Text Limits

Each request accepts up to 4096 characters. Spaces and punctuation count toward this limit. For longer audiobooks, split your text into chunks of this size. You will need to concatenate the resulting audio files manually in your post-processing step.

Model Selection

Choose between "tts-1" and "tts-1-hd". Both use the same engine and price ($0.01 per 1,000 characters). Select "tts-1-hd" for high-definition audio.

Handling Responses

Sound wave illustration for: Handling Responses

Upon successful synthesis, the API returns the audio file directly in the response body. You receive raw binary data that you must save as the specified response_format (e.g., .mp3 or .wav). The file is generated instantly for short texts, though longer passages may require a few seconds depending on queue load.

Audio File Download

Save the returned binary stream to a local file with the correct extension. No intermediate storage is provided; the audio is returned immediately and not stored by the service. Ensure your client handles binary data correctly to avoid corruption.

Error Codes

If synthesis fails, you receive a JSON error object with a status code and message. Failed requests are free, and any prepaid credit is returned in full. Common errors include invalid voice IDs, model mismatches, or input text exceeding 4096 characters.

  • 400: Bad Request (invalid parameters)
  • 401: Unauthorized (invalid API key)
  • 429: Rate limit exceeded (60 req/min)

Retry Mechanism

Implement exponential backoff for 429 (Rate Limit) or 503 (Service Unavailable) errors. Since requests are processed sequentially, high load may cause temporary delays. Retry after a short pause, ensuring you do not exceed the 60 requests per minute limit per key.

Post-Processing

Sound wave illustration for: Post-Processing

After receiving audio chunks, concatenate them into a single file using tools like ffmpeg or your preferred audio library. This ensures continuous playback for your audiobook listeners.

Perform a quality check by listening to the joined file. Verify that transitions between segments are smooth and that no unexpected silence or audio artifacts were introduced during the synthesis process.

Add relevant metadata such as title, author, and chapter information to the final audio file. This helps organize your library and improves the user experience for listeners using audiobook apps.

File Concatenation

Use ffmpeg to join audio files efficiently. Ensure consistent formats (e.g., mp3) to avoid compatibility issues.

  • Use ffmpeg -f concat
  • Ensure consistent sample rates
  • Verify file integrity

Quality Check

Listen to the entire file to detect any discontinuities or errors. Check for consistent volume levels across segments.

  • Listen for gaps
  • Check volume consistency
  • Verify no artifacts

Metadata Addition

Embed metadata like title and author using tools like id3v2. This enhances organization and listener experience.

  • Use id3v2 for tagging
  • Include title and author
  • Add chapter markers

Best Practices

Sound wave illustration for: Best Practices

Generating audiobooks requires managing character limits and network constraints carefully. By splitting texts into 4096-character chunks and concatenating the results, you ensure consistent narration without hitting request boundaries. Explicit language tags prevent misidentification, especially for Spanish text that might otherwise default to English.

Rate limits are strict: 60 requests per minute per key, dropping to 10 before the first top-up. Monitoring these limits prevents wasted credits on failed or queued requests, ensuring your production pipeline remains predictable and cost-effective.

Split Long Texts

Each API request accepts up to 4096 characters. For longer novels, split the text programmatically, send each segment, and join the resulting audio files. This avoids truncation and maintains control over the output structure.

  • Max 4096 characters per request
  • Join audio files post-generation
  • Maintain chapter boundaries

Use Explicit Language Codes

Although the API guesses language from script, Spanish Latin text might default to English if not specified. Always set the language parameter to es to ensure correct pronunciation and voice behavior, avoiding awkward accents.

  • Set language: "es"
  • Prevent default English fallback
  • Ensure accurate accent

Monitor Rate Limits

You are limited to 60 requests per minute per key. Before your first top-up, this drops to 10 per minute. Queue your requests to avoid hitting the limit, which would delay production without extra cost.

  • 60 requests/minute after top-up
  • 10 requests/minute initially
  • Queue to prevent throttling

Common Issues

Sound wave illustration for: Common Issues

Generating audiobooks often reveals technical hurdles that can disrupt workflow if not anticipated. Understanding these common pitfalls ensures your final audio files meet professional standards without unexpected delays or quality degradation during the production process.

This section addresses three frequent issues: audio discontinuities when splitting long texts, errors from exceeding character limits, and voice mismatches when language tags are omitted.

Audio Discontinuities

When splitting text into 4096-character chunks, slight pauses may occur between concatenated files. This is expected behavior as each request generates a separate audio segment.

To minimize gaps, ensure your splitting logic preserves natural sentence boundaries where possible. The synthesis speed is roughly real-time, so long texts may queue, but the audio quality remains consistent across segments.

  • Split text at logical sentence breaks.
  • Concatenate files sequentially after generation.
  • Listen for abrupt cuts between segments.

Character Limit Errors

Each request accepts up to 4096 characters, including spaces and punctuation. Exceeding this limit causes the API to reject the request immediately.

Count characters carefully before sending. If your text exceeds the limit, split it manually or use a script to handle chunking automatically.

  • Limit: 4096 characters per request.
  • Spaces and punctuation count.
  • Failed requests are free.

Voice Mismatch

Voices are preset and do not change based on language. If you do not set the language field, Latin-script text defaults to English.

For Spanish narration, explicitly set language: 'es' to ensure correct pronunciation and intonation. Without this tag, the engine may guess incorrectly, leading to unnatural speech patterns.

  • Set language: 'es' for Spanish.
  • Voices are language-agnostic.
  • Default language is English for Latin text.
Common Issues

Cost Estimation

Sound wave illustration for: Cost Estimation

Understanding the cost structure ensures your audiobook project stays within budget. Our pricing is straightforward: $10 per 1 million characters, which equals $0.01 per 1,000 characters. Spaces and punctuation count toward this total, so accurate character counting is essential for precise financial planning.

Calculate Character Count

Before generating audio, count every character in your source text. Since the API charges per character, even small errors in estimation can affect your final bill. Use standard text analysis tools to get an exact count of your manuscript, including spaces.

  • Count all spaces, punctuation, and letters.
  • Ensure text is under 4,096 characters per request.
  • Verify character counts before splitting long chapters.

Estimate Total Cost

Multiply your total character count by $0.00001 to get the exact cost. For example, a 50,000-character audiobook costs $0.50. Failed requests are free, so you only pay for successful synthesis. This linear pricing model allows you to predict expenses for multi-language productions accurately.

  • $10 per 1 million characters.
  • Failed requests are free.
  • No minimum spend or monthly fees.

Budget for Trials

New accounts signed in with Google receive a $0.50 trial credit, valid for 7 days. This covers approximately 50,000 characters, enough to test voice quality and workflow. Accounts created with email and password start without this trial credit, so consider your initial budget accordingly.

  • $0.50 trial for Google sign-ups.
  • Valid for 7 days.
  • Covers ~50,000 characters.

Integration Examples

Sound wave illustration for: Integration Examples

Integrate VoceScribe into your audiobook production pipeline with minimal code. These examples demonstrate how to send text to the TTS API and retrieve audio files for Spanish narration, ensuring your self-publishing workflow remains efficient and reliable.

Python Script

Use the official OpenAI Python SDK, pointing it to our base URL. Pass the text and voice parameters, then save the binary response to a file. This approach handles authentication and stream processing automatically.

  • Install: pip install openai
  • Set: base_url=https://api.69q.info/v1
  • Use: os.environ['OPENAI_API_KEY']

Node.js Example

For JavaScript environments, use the OpenAI npm package. Configure the custom fetch agent to direct requests to our API. The code snippet below shows how to request MP3 output for a specific Spanish voice.

Curl Command

Test the endpoint directly from your terminal. Replace YOUR_API_KEY with your actual key from /get-api-key/. This command sends a simple text request and saves the resulting audio to speech.mp3.

  • curl -X POST https://api.69q.info/v1/audio/speech
  • -H "Authorization: Bearer YOUR_API_KEY"
  • -d '{"model": "tts-1", "voice": "nova", "input": "Hola mundo", "response_format": "mp3"}'

Voice Selection Guide

Sound wave illustration for: Voice Selection Guide

Selecting the right voice is critical for audiobook engagement. Our eight presets cover distinct tonal ranges, from warm narrators to deep documentary styles. Each voice is trained on licensed recordings, ensuring consistent, high-quality output for your self-published titles without complex licensing hurdles.

The choice depends on your genre. Use narrative voices for fiction, promotional tones for marketing, and neutral voices for non-fiction or news-style readings. All voices support Spanish and 22 other languages, allowing you to expand your library globally with a single API key.

Narrative Voices

Aria offers a warm, clear narrator tone ideal for fiction. Luna provides a soft, storytelling quality perfect for fantasy or romance. Nova brings a bright, upbeat energy suitable for light-hearted novels or young adult content.

These voices create emotional depth.

  • Aria: Warm, clear narrator
  • Luna: Soft, storytelling
  • Nova: Bright, upbeat

Promotional Voices

Felix delivers an energetic, promo-ready tone. This is best for audiobook trailers, marketing clips, or short-form content. His dynamic style grabs attention quickly, making it suitable for promotional materials accompanying your main book releases.

Use Felix when you need to convey urgency or excitement. His voice cuts through background noise effectively, ensuring your marketing messages are heard clearly across various playback devices.

  • Felix: Energetic, promo

Neutral Voices

Atlas provides a neutral, news-style tone for non-fiction. Milo offers a friendly, conversational style suitable for self-help or business books. Orion delivers a deep, documentary voice for historical or scientific content.

These voices prioritize clarity and neutrality. They avoid excessive emotional inflection, allowing the text to remain the focal point. This is ideal for educational materials or reference audiobooks where accuracy and calm delivery are paramount.

  • Atlas: Neutral, news
  • Milo: Friendly, conversational
  • Orion: Deep, documentary
  • Sage: Calm, instructional

Format Options

Sound wave illustration for: Format Options

Choose the output format that matches your distribution pipeline. The API supports MP3, WAV, Opus, FLAC, and PCM, allowing you to balance file size and quality according to your specific needs.

MP3 for Web

MP3 is a standard format for web delivery. It offers a good balance between file size and audio fidelity, making it ideal for streaming and downloads where storage efficiency matters.

  • Universal compatibility with players and devices
  • Smaller file sizes for faster downloads
  • Ideal for final published audiobooks

WAV for Editing

WAV provides uncompressed, high-quality audio suitable for post-production. Use this format if you need to apply additional effects, normalize volume, or edit the narration before finalizing the audiobook.

  • Lossless quality for professional editing
  • No compression artifacts
  • Larger file sizes

Opus for Efficiency

Opus delivers high-quality audio at significantly lower bitrates than MP3. This format is perfect for mobile applications or bandwidth-constrained environments where efficient data transfer is a priority.

  • High efficiency at low bitrates
  • Ideal for mobile streaming
  • Modern codec support

Support and Contact

Sound wave illustration for: Support and Contact

For technical issues or billing questions, our support team is available via email only. There is no phone number or live chat option, so please allow time for a written response.

Before reaching out, consult our documentation for immediate answers to common integration questions and API endpoint details.

Email Support

Contact us at [email protected] for any account or generation issues. We handle all inquiries asynchronously to ensure detailed responses.

  • Email only
  • No phone support
  • No live chat

Documentation Links

Visit /docs/ for the complete API reference, including request examples and error code explanations.

  • /docs/ for API reference
  • /pricing/ for cost details
  • /get-api-key/ for account setup

FAQ Section

Find quick answers to questions about voice selection, character limits, and format options in our dedicated FAQ section.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Failed requests are free, so you can test edge cases without risk.

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. Creative Commons Attribution 4.0
  4. Python documentation
  5. Node.js documentation
  6. MDN: Web Speech API
  7. curl documentation
  8. LibriVox public-domain audiobooks
  9. TRON developer hub: TRC-20
  10. openai-node on GitHub
  11. Tether (USDT)
  12. LibriTTS-R paper (arXiv 2305.18802)

More on this site