Text-to-Speech API for Audiobooks and Language Learning

By VoxLingua editorial team · Updated 2026-11-19

The VoxLingua API provides a reliable cloud endpoint for converting extensive texts into high-quality audio files. Designed specifically for language learning platforms and content aggregators, our infrastructure handles the technical complexity of volume processing so you can focus on your educational curriculum. We offer a standard JSON request structure compatible with the OpenAI SDK, allowing integration into your existing workflow using the official OpenAI SDKs or plain HTTP.

This page outlines the technical specifications, supported languages, and voice presets available for your integration. You will find details on character limits, audio formats, and rate limits relevant to indie developers building scalable educational tools. All input text is used exclusively for synthesis and is not used for training, ensuring your content remains private while you generate clear, synthetic speech for your users.

Text-to-Speech API for Audiobooks and Language Learning

Frequently asked questions

What is the maximum character limit per API request?

The API accepts up to 4096 characters per request. For texts exceeding this limit, you must split the input into multiple requests and join the resulting audio files. Requests are processed one after another, so under load a request may wait in a queue.

Which languages are supported for language learning?

We support 23 languages: 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, making them suitable for diverse educational curricula.

Can the API handle long textbooks without crashing?

Yes. You split long texts into parts of up to 4096 characters and join the audio files. The system processes requests sequentially, so under load a request may wait in a queue. Typical speed is roughly real time, generating about 25 characters per second.

Is the audio generated in real-time or streamed?

The API does not support streaming or WebSocket connections. You send a POST request and receive the complete audio file in the response. Short phrases take a few seconds to generate, while longer texts process at roughly real-time speed, depending on queue status.

Do the voices sound like specific celebrities?

No. Voices are based on licensed recordings: LibriTTS-R (CC BY 4.0), from LibriVox public-domain audiobook readings. They are distinct presets like Aria, Nova, or Atlas, but they do not imitate real people, celebrities, or politicians.

How are failures handled in the API?

Failed requests are free. If synthesis fails, the charge is returned in full. This ensures you only pay for successful audio generation. You can monitor status via the API response to determine if a retry is necessary for your specific request.

What formats are available for download?

You can choose from mp3, wav, opus, flac, or pcm formats. These options allow flexibility for different language learning platforms and aggregation systems. Specify the desired format in the response_format field of your JSON request body to receive the audio in your preferred codec.

Is there a limit on how many accounts a company can have?

Accounts are created per site. Each account is associated with one active API key. You can issue a new key at any time, which stops the old one immediately.

Does the API support SSML for better pronunciation?

No. The API does not support SSML, phoneme dictionaries, or custom pronunciation lexicons. It uses standard text input up to 4096 characters. For precise control, you must manage pronunciation through the text input itself, as no additional markup or voice design features are available.

Can I clone a specific teacher's voice?

No. We do not offer custom voice cloning, uploading your own voice, or voice design. The eight presets (Aria, Nova, Luna, Sage, Felix, Milo, Atlas, Orion) are fixed. Each generated file carries an inaudible watermark marking it as synthetic speech from our licensed recordings.

What is the cost per character for large volumes?

The price is $10 per 1 million characters, or $0.01 per 1,000 characters. Spaces and punctuation count as characters. Failed requests are free, with charges returned in full. There are no monthly plans, seats, or minimum spend requirements, making it scalable for volume processing.

How does the API handle non-English Latin script?

If the language field is not set, the system guesses the language, defaulting to English for Latin script. For non-English Latin-script text, you must explicitly set the language parameter to the appropriate ISO code to ensure accurate synthesis and avoid misinterpretation by the engine.

Is there a guarantee that the service will be 99.9% available?

No. We do not provide an SLA, uptime guarantee, or enterprise contract. Requests are processed sequentially and may queue under load. Support is by email only. We do not offer certifications like SOC 2 or HIPAA for this service.

Who owns the rights to the generated audio files?

Input text is used only to produce audio and is not used for training. Generated audio is returned in the response and not stored. The voices are based on LibriTTS-R (CC BY 4.0) and LibriVox public-domain readings.

First request

curl

curl https://api.rm9.info/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

API Overview

Sound wave illustration for: API Overview

VoxLingua provides a cloud-based text-to-speech API designed for high-volume audio generation in language learning and content aggregation workflows. The service operates via a single synthesis endpoint, accepting standard JSON payloads to convert extensive texts into audio files without requiring complex infrastructure management on the client side.

Cloud-based synthesis endpoint

Cloud-based synthesis endpoint

The core functionality is delivered through the POST https://api.rm9.info/v1/audio/speech endpoint. Clients send text input and receive an audio file directly in the response, streamlining the integration process for developers building educational platforms or audiobook aggregators.

Standard JSON request structure

Requests utilize a standard JSON body containing fields such as model, input, voice, response_format, and speed. This structure ensures predictable data handling and simplifies the mapping of text content to audio output parameters for consistent generation results.

  • model: "tts-1" or "tts-1-hd"
  • input: Text string (max 4096 characters)
  • voice: One of 8 available presets
  • response_format: mp3, wav, opus, flac, or pcm
  • speed: Float between 0.25 and 4.0

OpenAI SDK compatibility

The API endpoint shape mirrors the OpenAI speech endpoint, allowing developers to use official OpenAI SDKs by simply changing the base_url to https://api.rm9.info/v1. This compatibility reduces integration time and leverages existing client-side libraries for authentication and request handling.

Use Cases for Language Learning

Sound wave illustration for: Use Cases for Language Learning

VoxLingua enables language learning platforms to convert extensive textbook content into accessible audio formats. By sending text via our standard JSON endpoint, developers can generate audiobooks without managing infrastructure complexity. This workflow supports curriculum development for educational apps, allowing students to listen to course materials on demand.

Converting textbooks to audio

Textbooks can be processed in segments up to 4096 characters. The API returns audio files that can be downloaded by learners. This approach reduces the need for manual voice acting, enabling rapid scaling of reading materials across different levels.

  • Convert static text to spoken audio for mobile or web apps
  • Process large documents by splitting into manageable 4096-character chunks
  • Maintain consistent voice quality across entire chapters

Generating practice listening material

Educators can generate specific listening exercises by inputting targeted phrases or dialogue. The API supports speed adjustment from 0.25x to 4.0x, allowing learners to adjust difficulty levels. This flexibility supports pronunciation drills and comprehension testing without requiring new recordings.

  • Create variable-speed audio for adaptive learning
  • Generate unique audio instances for quiz questions
  • Support auditory discrimination exercises with precise timing

Supporting 23 distinct languages

Our API supports 23 languages, including major European, Asian, and Middle Eastern options. Voices are designed to handle diverse phonetic structures accurately. This allows language schools to offer multilingual content without hiring native speakers for every language variant.

  • Support for Chinese, Japanese, Korean, Arabic, Hindi, and Turkish
  • Consistent voice presets across all supported languages
  • Automatic language detection or explicit ISO code specification

Voice Selection

Sound wave illustration for: Voice Selection

VoxLingua provides eight distinct voice presets, all engineered from licensed recordings to ensure consistent quality across language learning materials. Each voice supports all 23 available languages, allowing you to maintain audio consistency while expanding your curriculum's linguistic scope.

Female presets: Aria, Nova, Luna, Sage

Aria offers a warm, clear narration style ideal for standard textbook readings. Nova provides a bright, upbeat tone suitable for engaging introductory modules. Luna delivers a soft, storytelling voice for narrative exercises, while Sage presents a calm, instructional tone for structured lessons.

Male presets: Felix, Milo, Atlas, Orion

Felix brings an energetic, promotional quality, useful for dynamic content. Milo offers a friendly, conversational style for dialogue practice. Atlas serves as a neutral, news-style voice for clear exposition. Orion provides a deep, documentary tone for more formal or historical content.

Neutral and documentary tones

Selecting the appropriate voice depends on the pedagogical goal of your content. Neutral voices like Atlas ensure clarity for pronunciation drills, while deeper tones like Orion support immersive listening exercises. All voices carry an inaudible synthetic watermark, distinguishing AI-generated audio from human recordings.

Supported Languages

Sound wave illustration for: Supported Languages

VoxLingua supports 23 languages, enabling educators to generate consistent audio assets for diverse curricula. The API automatically detects language from Latin script, defaulting to English if unspecified, though explicit language codes are recommended for non-English texts to ensure accuracy.

Major European languages

We cover the primary languages of European education markets, including English, French, German, Spanish, Italian, Portuguese, Dutch, Polish, Russian, Swedish, Danish, Norwegian, Finnish, Greek, and Turkish. Each voice renders these languages accurately, suitable for classroom listening exercises.

Asian languages: Chinese, Japanese, Korean

Support for Chinese, Japanese, and Korean allows institutions to build multilingual libraries without external dependencies. These languages are fully integrated into the same voice presets, ensuring tonal consistency across your audio catalog.

Additional options: Arabic, Hindi, Turkish

For broader linguistic reach, we also provide Arabic, Hindi, and Turkish. All 8 voices are capable of speaking any of the 23 supported languages, allowing you to maintain a uniform brand voice across different linguistic materials.

Technical Specifications

Sound wave illustration for: Technical Specifications

VoxLingua processes text inputs up to 4,096 characters per request. For extensive materials, split longer texts into segments and concatenate the resulting audio files. This approach ensures stable generation for textbooks and course materials.

Character limit: 4096 per request

Each API call accepts a maximum of 4,096 characters. Requests exceeding this limit must be segmented by the client. Generated audio files are returned directly in the response and are not stored, minimizing data retention overhead for educational platforms.

Audio formats: MP3, WAV, FLAC, OPUS, PCM

Select the output format via the response_format parameter. Options include MP3, WAV, OPUS, FLAC, and PCM. Choose compressed formats like MP3 or OPUS for efficient bandwidth usage, or lossless WAV/FLAC for high-fidelity language learning exercises.

Speed adjustment: 0.25x to 4.0x

Adjust playback speed between 0.25x and 4.0x using the speed field. Slower speeds aid comprehension for beginners, while faster speeds support advanced listening practice. Adjustments apply during generation, altering the final audio duration accordingly.

Technical Specifications

Data Privacy

Sound wave illustration for: Data Privacy

The API treats input text as transient data. We use your text solely to generate the requested audio file and do not retain it for any other purpose. This ensures that your educational content remains confined to the immediate synthesis cycle.

Input text used only for synthesis

Your submitted text is processed exclusively to create the audio output. We do not store or repurpose the textual content beyond this single generation task, ensuring that your specific curriculum materials remain private and isolated from other uses.

No training on input data

The text you send is not used to train or improve our models. Unlike some platforms that may use customer data to refine voice synthesis algorithms, VoxLingua keeps your input distinct from our training datasets, preserving the integrity of your proprietary content.

Generated audio returned in response

The resulting audio file is delivered directly in the API response and is not stored on our servers after delivery. Only request metadata, such as timestamp, character count, and status, is retained for billing purposes, ensuring minimal data footprint and clear audit trails for your accounting needs.

Rate Limits and Performance

Sound wave illustration for: Rate Limits and Performance

VoxLingua enforces a strict rate limit of 60 requests per minute per API key, with a lower threshold of 10 requests per minute for new accounts prior to their first top-up. This structure ensures consistent performance for language learning platforms integrating audio synthesis into their curriculum delivery systems.

60 requests per minute per key

Each API key is capped at 60 requests per minute. New accounts begin with a limit of 10 requests per minute until the first top-up is processed. This limit applies to all synthesis requests, regardless of text length or audio format selected.

Processing queue during high load

Real-time approximation on long texts

Generation speed approximates real-time for extended texts, processing roughly 25 characters of text per second of audio output. Short phrases may take a few seconds to synthesize due to initialization overhead. Developers should account for queue wait times when designing synchronous user interfaces.

Audio Watermarking

Sound wave illustration for: Audio Watermarking

Every audio file generated by the VoxLingua API contains an inaudible digital watermark that identifies the content as synthetic speech. This watermark is embedded directly into the audio stream during the synthesis process, ensuring that the metadata is preserved within the final output file regardless of the selected format or speed setting.

This feature provides a reliable method for distinguishing AI-generated voiceovers from human-recorded narration, which is particularly useful for content aggregators managing mixed media libraries.

Inaudible synthetic markers

The watermark is imperceptible to the human ear and does not affect audio quality or playback performance. It is embedded at the signal level, ensuring compatibility with all supported output formats including MP3, WAV, OPUS, FLAC, and PCM.

Distinguishes AI-generated audio

The watermark marks the audio as synthetic speech. This helps maintain transparency in educational content where listeners need to know if they are listening to a human instructor or a synthesized voice.

Standard across all voices

All eight voice presets—Aria, Nova, Luna, Sage, Felix, Milo, Atlas, and Orion—include the same watermarking standard. Whether you are using the warm narration of Aria or the deep documentary tone of Orion, the synthetic marker remains consistent.

Integration Requirements

Sound wave illustration for: Integration Requirements

Authentication requires a Bearer token passed in the HTTP header. Each account holds one active key; issuing a new key immediately invalidates the previous one.

Requests are submitted via HTTPS POST to the /v1/audio/speech endpoint. The API expects a standard JSON body compatible with OpenAI SDKs, allowing seamless integration for indie developers building language learning platforms.

Bearer token authentication

Include your API key in the Authorization header as Bearer tts-.... This single key controls access and billing. You may regenerate it at any time, but the old key stops working immediately upon creation of the new one.

HTTPS POST requests

Send requests to POST https://api.rm9.info/v1/audio/speech. The endpoint accepts JSON payloads and returns the audio file directly in the response body. Use standard HTTP clients or the OpenAI SDK with the custom base URL.

JSON body structure

The request body must include model, input, and voice. Optional fields allow response_format, speed, and language. Ensure text does not exceed 4096 characters per request to avoid truncation.

  • model: "tts-1" or "tts-1-hd"
  • input: string, max 4096 characters
  • voice: one of 8 presets
  • response_format: mp3, wav, opus, flac, or pcm
  • speed: 0.25 to 4.0
  • language: optional ISO code

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Selecting the appropriate voice preset ensures that the audio remains engaging without demanding excessive cognitive effort from the audience.

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. Tether (USDT)
  3. MDN: Web Speech API
  4. ISO 639 language codes
  5. LibriVox public-domain audiobooks
  6. LibriTTS-R corpus (OpenSLR 141)
  7. openai-node on GitHub
  8. TRON developer hub: TRC-20
  9. Creative Commons Attribution 4.0
  10. Node.js documentation
  11. openai-python on GitHub
  12. curl documentation

More on this site