How Does Our Cloud Text-to-Speech API Generate Audio?

By LumeVoice editorial team · Updated 2026-11-19

This page explains how LumeVoice generates audio files for e-learning platforms and LMS providers. You will understand the technical workflow from text input to final delivery, including how our cloud API handles neural model inference and audio encoding. We detail the specific steps your integration must follow, ensuring your no-code course builders receive reliable, high-volume audio without unexpected delays.

Readers will learn how voice selection, language handling, and text splitting affect generation speed and quality. We cover practical aspects like the 4096-character limit, format conversion, and watermarking. This guide helps you optimize your API integration for efficiency, manage rate limits correctly, and ensure consistent audio clarity across your multi-language courses.

How Does Our Cloud Text-to-Speech API Generate Audio?

Frequently asked questions

What is Japanese text to speech?

LumeVoice generates Japanese audio using the tts-1 or tts-1-hd models. You can select from eight preset voices, such as the warm Aria or the deep Orion, which support Japanese natively. The API accepts text input and returns an audio file in formats like mp3 or wav. No custom voice cloning is available, but the preset voices deliver clear, synthetic speech suitable for e-learning content.

How fast is the TTS API?

Generation speed is roughly real-time, processing about 25 characters of text per second. Short phrases may take a few seconds to synthesize. Requests are processed sequentially, so under load, a request may wait in a queue. This ensures consistent quality for high-volume audio generation in your LMS workflows without requiring complex infrastructure.

Does the API support SSML?

No, the API does not support SSML. It accepts plain text input up to 4096 characters. You cannot use SSML tags to control pronunciation, pacing, or emphasis. For precise control, you must split text into shorter segments or adjust the speed parameter between 0.25 and 4.0 to modify the delivery rate of the audio.

Can I use custom voices?

No, custom voice cloning is not offered. You must choose from eight preset voices: Aria, Nova, Luna, Sage, Felix, Milo, Atlas, or Orion. These voices are based on licensed recordings from LibriTTS-R and LibriVox. You cannot upload your own voice or design a new voice profile; the selection is fixed for all accounts.

How is the language detected?

If you do not specify a language, the API guesses it from the script. Latin script text defaults to English. For non-English Latin-script text, you should explicitly set the language parameter. The API supports 23 languages, including Japanese, German, and Spanish, allowing any voice to speak any supported language correctly.

What is the character limit?

Each API request accepts up to 4096 characters of input text. Spaces and punctuation count toward this limit. If your text exceeds this length, you must split it into parts. The API does not automatically handle long texts; your application must manage the splitting and joining of the resulting audio files.

Is the audio stored?

No, generated audio is returned in the response and not stored by LumeVoice. Input text is used only to produce the audio and is not used for training. Request metadata, such as time, character count, and status, is kept for billing purposes. Your audio data remains transient unless you save it after retrieval.

How do I split long texts?

Split texts into parts of up to 4096 characters each. Send each part as a separate POST request to the speech endpoint. Once you receive all audio files, join them in your application. This manual splitting ensures compliance with the character limit and allows you to manage processing queues effectively for high-volume e-learning content.

What is the latency?

Latency depends on text length and server load. Short phrases take a few seconds. Longer texts process at roughly real-time speed. Since requests are processed sequentially, high load may cause queuing delays. There is no SLA or uptime guarantee, so latency can vary. Plan for potential delays during peak usage periods in your LMS.

Do I need a developer?

A developer is needed to integrate the API. The endpoint uses a standard JSON body similar to OpenAI’s speech endpoint. You must send a POST request with your API key, model, voice, and text. Direct integration requires handling HTTP requests, authentication, and audio file management via code or a script.

Can I generate audio in real-time?

No, the API does not support real-time streaming or WebSocket connections. Audio is generated fully and returned as a complete file. You cannot receive partial audio chunks. This batch processing model is suitable for pre-generated course audio but not for live interactive applications requiring immediate, streaming audio playback.

Is there a WebSocket option?

No, there is no WebSocket option. The API uses standard HTTP POST requests. You send text and receive a complete audio file. There are no streaming endpoints or real-time partial audio options. All interactions are request-response based, requiring your application to handle the full audio file after the synthesis is complete.

What happens if the server is slow?

Requests are processed sequentially. If the server is busy, your request may wait in a queue. This increases latency but does not incur additional costs. Failed requests are free, and charges are returned in full if synthesis fails. You do not need to pay for retries due to speed; you only pay for successful generations.

Are the voices realistic?

The voices are synthetic but based on licensed recordings from LibriTTS-R and LibriVox. They offer clear, distinct styles, such as warm narration or energetic promo. Each file carries an inaudible watermark marking it as synthetic. They are not perfect human replicas but provide consistent, high-quality audio suitable for educational content and e-learning platforms.

How do I test the API?

Use the provided curl example on the /get-api-key/ page. Sign in with Google to receive $0.50 in trial credit. Send a POST request to https://api.dopaminas.info/v1/audio/speech with your key. Check the response for the audio file. This allows you to verify integration and voice quality before committing to paid usage for your LMS.

Can I use the audio offline?

Yes, you can download and use the audio files offline. The API returns the audio file in the response, which you can save. There are no restrictions on offline usage. The audio files are standard formats like mp3 or wav, compatible with any media player or LMS that supports standard audio playback.

Is the watermark visible?

The watermark is inaudible. It is embedded in the audio file to mark it as synthetic speech. It does not affect the listening experience or audio quality. Users cannot easily detect it, but it serves as a marker for synthetic content. This is standard for the TTS engine and does not require any special player.

Do I need to pay for retries?

No, you do not pay for retries due to server slowness. Requests are processed sequentially, so delays are normal. If a synthesis fails, the charge is returned in full. You only pay for successful audio generation. Failed requests are free, so you can retry without incurring additional costs for the same text input.

Synthesis Process

Sound wave illustration for: Synthesis Process

Our API accepts plain text via a POST request and processes it through a neural model to generate audio. The system handles character encoding and normalizes input before synthesis begins.

Text Input Processing

Input text is validated for length and encoding. The API ensures the string meets the 4096-character limit per request, stripping unsupported characters while preserving spacing and punctuation for accurate billing.

Neural Model Inference

The text is passed to the tts-1 or tts-1-hd engine. The model generates audio waveforms based on the selected voice preset and language code, processing the phonetic sequence into sound data.

Audio Encoding

Generated audio is encoded into the requested format (mp3, wav, opus, flac, or pcm). The result is returned as an audio file in the response body, ready for immediate download or streaming by the client application.

Latency and Speed

Sound wave illustration for: Latency and Speed

Audio generation typically matches real-time duration for long texts, producing approximately 25 characters of text per second of audio. Short phrases may take a few seconds to complete, as the model processes input sequentially rather than in parallel streams.

This speed applies to standard synthesis workflows used by e-learning platforms to convert course scripts into audio files efficiently.

Real-Time Generation

For extended course content, the synthesis speed aligns closely with real-time playback, allowing for predictable audio lengths relative to text volume.

Character Per Second Rate

The system processes roughly 25 characters per second. This rate ensures that long-form educational material is converted at a consistent pace without significant deviation.

Queue Impact

Requests are processed sequentially. Under heavy load, a request may wait in a queue before synthesis begins, potentially increasing total latency beyond the standard generation time.

Voice Selection

Sound wave illustration for: Voice Selection

Select a voice preset to define the auditory character of your e-learning content. Each of the eight voices is engineered for specific pedagogical contexts, ensuring consistent audio quality across your course library.

8 Preset Voices

Choose from four female voices (Aria, Nova, Luna, Sage) and four male voices (Felix, Milo, Atlas, Orion). These presets cover narrative, instructional, and conversational styles suitable for various lesson types.

  • Aria: Warm, clear narrator
  • Nova: Bright, upbeat
  • Luna: Soft, storytelling
  • Sage: Calm, instructional
  • Felix: Energetic, promo
  • Milo: Friendly, conversational
  • Atlas: Neutral, news
  • Orion: Deep, documentary

Language Compatibility

Every voice supports all 23 available languages, including Japanese for anime-style narration. You may specify an ISO language code to override automatic detection, ensuring accurate pronunciation for non-English Latin-script texts.

Tone Characteristics

Voice selection directly impacts learner engagement. Use Sage for strict instructional modules or Luna for narrative-driven lessons. The neural models ensure consistent tone delivery across high-volume generation batches.

Language Handling

Sound wave illustration for: Language Handling

Language handling ensures accurate pronunciation by detecting the input script or applying explicit language codes. This prevents mispronunciation in mixed-language course content, which is critical for consistent e-learning delivery.

Script Detection

The API automatically detects the script of the input text to determine the primary language. This reduces manual configuration for standard language-specific courses.

Explicit Language Codes

For precision, send the language field with an ISO code. This is essential when the script is ambiguous or when generating content for languages that share scripts, such as Latin-script texts that are not English.

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

English Default

If no language code is provided, Latin-script text defaults to English. Set the language explicitly for other Latin-script languages to ensure correct voice selection and pronunciation.

Text Splitting

Sound wave illustration for: Text Splitting

To handle inputs exceeding the 4096-character limit, the API automatically splits long texts into manageable chunks. This ensures consistent synthesis quality regardless of input length, which is critical for generating full course modules or lengthy e-learning scripts without truncation.

4096 Character Limit

Each request accepts up to 4096 characters, including spaces and punctuation. Exceeding this limit triggers a split, ensuring the neural model processes text within optimal bounds for accurate pronunciation and pacing.

Chunk Processing

Longer texts are divided sequentially into segments of 4096 characters. Each chunk is processed independently through the synthesis engine, maintaining voice consistency across the entire document while respecting the per-request character constraint.

Audio Joining

Once individual audio files are generated for each chunk, you must join them into a single continuous file.

Watermarking

Sound wave illustration for: Watermarking

We generate synthetic speech with an inaudible digital signature embedded directly into the audio waveform. This marker is imperceptible to human listeners but allows automated systems to verify that the file originated from our TTS engine.

Inaudible Markers

Each audio file produced by the synthesis process contains a unique watermark. This data is woven into the audio spectrum without degrading the perceptual quality of the speech, ensuring compatibility with standard LMS players.

Synthetic Identification

The primary purpose of the watermark is to clearly identify the content as AI-generated. When distributing voiceovers for e-learning modules, platforms can automatically distinguish between human-recorded lessons and LumeVoice-generated narration.

Data Integrity

The watermark marks the file as synthetic; it does not guarantee that the file has not been altered. If the audio is edited or compressed by a third-party tool, the marker may remain intact even if the content changes.

Format Conversion

Sound wave illustration for: Format Conversion

The API returns audio in five supported formats: mp3, wav, opus, flac, and pcm. You select the desired format via the response_format field in your POST request body. The service handles all encoding internally, ensuring the output file matches your specification without requiring client-side conversion.

MP3 Compression

MP3 is the default format, offering a balance between file size and compatibility. It is ideal for web delivery and mobile applications where bandwidth efficiency matters. The generated file is ready for immediate playback in standard media players.

  • Best for general web integration

WAV Quality

WAV provides uncompressed audio, preserving the full fidelity of the synthesis engine. This format is suitable for professional editing workflows or when you need to apply further post-processing to the voice track without generational loss.

  • Uncompressed, high-fidelity output

Opus Efficiency

Opus offers superior compression efficiency, often resulting in smaller file sizes than MP3 at equivalent perceived quality. It is well-suited for low-bandwidth environments or when storing large volumes of generated audio for e-learning courses.

  • High compression, low bandwidth usage
Format Conversion

Request Lifecycle

Sound wave illustration for: Request Lifecycle

The request lifecycle begins when your application sends a POST request to the API endpoint with the JSON payload containing your text, voice selection, and format preferences. This initial submission triggers the validation of your authentication key and checks for available rate limits before the synthesis engine acknowledges the job.

Once processed, the system returns the generated audio file directly in the response body, allowing immediate storage by your LMS integration. The entire process is designed for high-volume e-learning content generation, ensuring that each request is handled sequentially to maintain consistent audio quality without requiring complex streaming setups.

Submission

Your application constructs a JSON body with the input text, model, voice, and response_format fields. The API validates the request against your active key and rate limits (60 requests per minute) before accepting the job for synthesis.

Authentication is handled via the Authorization: Bearer header. If the key is invalid or expired, the system returns an error immediately, preventing unnecessary processing charges.

  • JSON payload structure matches OpenAI speech endpoint standards.
  • Authentication via Bearer token in the header.
  • Immediate validation of character count and format support.

Processing

The synthesis engine processes the text, applying the selected voice’s characteristics and converting it to audio. For texts exceeding 4096 characters, the system automatically splits the input into chunks, synthesizes each part, and joins the resulting audio files.

Requests are processed sequentially. Under high load, a request may wait in a queue, affecting total latency but ensuring reliable output for every character processed.

  • Sequential processing ensures consistent output quality.
  • Automatic chunking for texts over 4096 characters.
  • Invisible watermarking applied to all generated audio.

Delivery

The generated audio file is returned in the HTTP response body in the specified format (mp3, wav, opus, flac, or pcm). Your application can then store the file.

Failed requests result in a full refund of the character credit, ensuring you only pay for successfully generated audio. The response includes metadata confirming the character count and status for billing accuracy.

  • Audio delivered directly in the response body.
  • Full refund for failed synthesis requests.
  • Metadata included for accurate billing and tracking.

Error Scenarios

Sound wave illustration for: Error Scenarios

Understanding failure modes ensures reliable audio generation for e-learning content. Errors are categorized by input validity, throughput limits, and infrastructure stability.

Invalid Input

Requests exceeding 4096 characters or containing unsupported format codes return immediately without charge. The API validates the JSON structure and voice identifiers before processing.

Rate Limit Exceeded

Keys are limited to 60 requests per minute. Exceeding this threshold returns a 429 error, pausing new requests until the window resets.

  • New keys start at 10 requests/minute.
  • Limits reset every 60 seconds.

Server Timeout

Long texts or high queue loads may cause delays. If the server does not respond within the client timeout, retry the request. Failed synthesis refunds the character credit automatically.

Integration Steps

Sound wave illustration for: Integration Steps

Integrating LumeVoice into your e-learning platform requires minimal code changes. The API mirrors the OpenAI speech endpoint structure, allowing you to reuse existing HTTP clients or SDKs by simply adjusting the base URL to https://api.dopaminas.info/v1.

API Key Setup

Generate your key on the /get-api-key/ dashboard. Use the Authorization: Bearer header in all requests. Note that issuing a new key immediately invalidates the previous one.

  • One active key per account
  • Immediate invalidation of old keys
  • No per-seat licensing required

Code Implementation

Send a POST request to /v1/audio/speech with the model, input text, voice preset, and desired response format. The system returns the audio file directly in the response body.

  • Standard JSON body structure
  • Supports MP3, WAV, OPUS, FLAC, PCM
  • Compatible with official OpenAI SDKs

Testing

Verify connectivity using the provided curl example on the dashboard. Test character limits (4096) and voice selection to ensure audio quality matches your course requirements before full deployment.

Volume Scaling

Sound wave illustration for: Volume Scaling

LumeVoice handles high-volume audio generation for e-learning platforms by processing requests sequentially within a strict rate limit of 60 requests per minute. This linear processing ensures consistent quality without the complexity of managing parallel streams, making it predictable for batch course audio creation.

Users can split longer texts into 4096-character chunks, which the API processes one after another. The resulting audio files are then joined, allowing no-code builders to generate complete lesson audio without manual intervention or complex orchestration logic.

Batch Processing

For large course libraries, split input text into 4096-character segments. Submit these as sequential requests; the API processes them in order and returns individual audio files. Your application then concatenates these files into a single cohesive lesson audio track.

This approach fits the sequential processing model, ensuring no voice drift between segments while maintaining a steady throughput of approximately 25 characters per second.

  • Split text into 4096-character chunks
  • Submit requests sequentially
  • Concatenate returned audio files

Concurrent Requests

Requests are processed sequentially within the rate limit. Even if multiple requests are submitted simultaneously, they queue and execute one by one. This simplifies integration for no-code tools that cannot handle complex parallel state management.

With a limit of 60 requests per minute, plan your batch sizes accordingly. Exceeding this limit before top-up results in a 10 requests/minute cap.

  • Sequential processing within limits
  • Queued under load
  • Simplified integration

Cost Implications

Pricing is $0.01 per 1,000 characters, regardless of batch size. Since failed requests are free, you only pay for successfully generated audio. This model allows predictable budgeting for large-scale e-learning content production.

No monthly fees or minimum spends. Top up with USDT (TRC-20) to increase your per-minute processing capacity effectively by removing the initial 10 requests/minute cap.

  • $0.01 per 1,000 characters
  • Pay only for success
  • No monthly fees

Quality Assurance

Sound wave illustration for: Quality Assurance

We ensure consistent audio quality across all generated files by maintaining strict standards for voice clarity and format compliance. Each synthesis undergoes automated validation to confirm that the output meets our technical specifications before delivery.

Voice Consistency

Every voice preset delivers uniform tone characteristics regardless of input text length or complexity. The neural model ensures stable audio generation across repeated requests, providing reliable results for e-learning content.

Audio Clarity

Generated audio maintains clear pronunciation and natural pacing, optimized for educational material. The system avoids artifacts common in lower-quality TTS, ensuring that learners can easily comprehend the spoken content without distraction.

Format Validation

We support multiple output formats including MP3, WAV, OPUS, FLAC, and PCM. Each file is validated upon generation to ensure compatibility with standard LMS players and no-code course builders, reducing integration errors.

  • MP3: Widely compatible, efficient compression.
  • WAV: Lossless quality for high-fidelity needs.
  • OPUS: Efficient for low-bandwidth environments.
  • FLAC: Lossless compression for archiving.
  • PCM: Raw audio data.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Its clear enunciation supports rapid back-and-forth exchanges typical in language learning apps or gamified course segments.

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 corpus (OpenSLR 141)
  3. FFmpeg documentation
  4. Tether (USDT)
  5. Python documentation
  6. Creative Commons Attribution 4.0
  7. curl documentation
  8. LibriTTS-R paper (arXiv 2305.18802)
  9. openai-python on GitHub
  10. Node.js documentation
  11. W3C WAI: making audio and video accessible
  12. TRON developer hub: TRC-20

More on this site