Cloud TTS API for Synthetic Speech Data Generation

By VoxMold editorial team · Updated 2026-11-19

VoxMold provides a deterministic text-to-speech API designed for startups generating synthetic speech datasets for machine learning. By sending text via a standard JSON request, you receive a consistent audio file in formats like MP3, WAV, or FLAC. This predictable output streamlines your data pipelines, ensuring uniform quality across thousands of generated samples without the variance of real human recordings.

This page outlines the technical specifications for integrating our API into your training workflows. We cover the request structure, voice presets, language support, and pricing models relevant to high-volume data generation. Use this information to evaluate how VoxMold fits into your infrastructure for model training, data augmentation, and baseline voice synthesis.

Cloud TTS API for Synthetic Speech Data Generation

Frequently asked questions

How does the API handle long texts for training data?

Split input text into segments of up to 4096 characters. Generate audio for each segment individually. Join the resulting audio files to create a continuous output. This ensures stable processing within the character limit per request while maintaining data integrity for your synthetic speech datasets.

What audio formats are supported for ML datasets?

The API supports mp3, wav, opus, flac, and pcm formats. These standard formats ensure compatibility with most machine learning pipelines. You can select the appropriate format via the response_format parameter in your request to match your dataset requirements.

Does the API support streaming for real-time applications?

No, the API does not support streaming, WebSocket connections, or real-time partial audio delivery. It returns complete audio files upon request completion. This design prioritizes deterministic generation for batch processing rather than low-latency interactive use cases.

How many characters can be processed in one request?

Each request accepts up to 4096 characters of input text. For longer texts, you must split the content into smaller chunks. Each chunk is processed separately, and the resulting audio files are joined to form the final output.

Is the generated audio suitable for commercial use?

The voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and public-domain LibriVox audiobooks. The generated audio includes an inaudible watermark identifying it as synthetic speech. This makes it suitable for commercial ML training data generation, subject to the CC BY 4.0 license terms.

Can I control the speaking speed for consistency?

Yes, you can adjust the speaking speed using the speed parameter. The acceptable range is 0.25 to 4.0. This allows you to standardize the tempo across your synthetic speech dataset, ensuring consistency for machine learning model training.

What happens if a request fails during generation?

If synthesis fails, the charge is returned in full. You are not billed for failed requests. This ensures that your billing reflects only successful audio generation, maintaining cost efficiency for your data pipeline operations.

Are the voices based on real human recordings?

Yes, the eight voice presets are based on licensed recordings from LibriTTS-R and public-domain LibriVox audiobooks. Each generated file carries an inaudible watermark that marks it as synthetic speech, distinguishing it from original human recordings.

How is the language detected if not specified?

If the language parameter is not set, the system 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 synthesis.

Is there a limit to the number of voices available?

There are eight preset voices available: four female (aria, nova, luna, sage) and four male (felix, milo, atlas, orion). Each voice can speak any of the 23 supported languages, providing variety for your synthetic speech datasets.

Does the API support SSML for pronunciation control?

No, the API does not support SSML or custom pronunciation lexicons. You control output through standard text input, voice selection, and speed parameters. This keeps the integration simple for automated data generation pipelines without complex markup handling.

Can I use the API to generate voice clones?

No, the API does not offer custom voice cloning or the ability to upload your own voice. It provides eight fixed presets. If you need specific voice characteristics, you must select from the available licensed voice options.

What is the typical latency for short phrases?

Short phrases typically take a few seconds to generate. Requests are processed sequentially, so under load, a request may wait in a queue. This ensures deterministic output but may introduce delays during high-volume data generation periods.

How are characters counted for billing purposes?

Billing is based on the number of characters processed, including spaces and punctuation. The rate is $0.01 per 1,000 characters. Failed requests are free, so you only pay for successfully generated audio segments.

First request

curl

curl https://api.xxx444.cc/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 Architecture

Sound wave illustration for: API Architecture

VoxMold provides a deterministic text-to-speech API designed for synthetic speech dataset generation. The endpoint accepts standard JSON payloads, ensuring compatibility with existing machine learning pipelines and data collection workflows.

The architecture mirrors the OpenAI speech endpoint, allowing startups to use official SDKs by simply adjusting the base URL. This reduces integration friction for engineering teams building voice models.

JSON Request Format

JSON Request Format

Requests are submitted via POST to the speech endpoint with a JSON body containing the text input, voice preset, and output format. Fields include model selection, input text (up to 4096 characters), voice identifier, response format, and optional speed adjustment.

The system processes these parameters to generate audio files, returning the binary data or a download link depending on the client implementation. All fields are strictly validated to ensure consistent output for training data.

OpenAI SDK Compatibility

By changing the base URL to the API domain, standard OpenAI SDKs function correctly without modification. This leverages existing client libraries for authentication and request handling, streamlining the integration process for developers already familiar with the OpenAI ecosystem.

This compatibility extends to Python, JavaScript, and other languages supported by the official SDKs, ensuring consistent behavior across different development environments.

Endpoint Structure

The API exposes three primary endpoints: POST for audio generation, GET for voice listing, and GET for model information. The speech endpoint handles the core synthesis task, while the others provide metadata about available voices and formats.

This structure allows for efficient batch processing and monitoring of generation jobs, critical for maintaining throughput in large-scale data generation scenarios.

Data Generation

Sound wave illustration for: Data Generation

VoxMold’s API accepts text inputs up to 4,096 characters per request. For longer corpora, split the input into sequential chunks and join the resulting audio files. This approach ensures deterministic output suitable for machine learning pipelines without requiring custom segmentation logic on the client side.

Audio is generated in standard formats: mp3, wav, opus, flac, or pcm. Each file includes an inaudible watermark identifying the speech as synthetic. Use wav or flac for lossless archival in training datasets, or mp3 for bandwidth-efficient storage during preliminary model iterations.

Character Limit Handling

The API enforces a strict 4,096-character limit per request. Text exceeding this threshold must be segmented by the client before submission. Concatenate the returned audio files in order to reconstruct the full sequence. This method maintains audio continuity while respecting the engine’s processing constraints.

Audio Format Options

Select from mp3, wav, opus, flac, or pcm via the response_format parameter. Lossless formats like wav and flac preserve maximum fidelity for training data. Compressed formats reduce storage costs for large-scale dataset generation.

  • Wav: Uncompressed, ideal for high-fidelity training sets.
  • Flac: Lossless compression, smaller file size than wav.
  • Mp3: Compressed, suitable for preliminary model testing.

Speed Adjustment

Adjust generation speed between 0.25 and 4.0 using the speed parameter. Slower speeds may improve clarity for low-resource languages, while faster speeds reduce processing time for large volumes. The API processes requests sequentially, so queue times may vary under load.

Voice Selection

Sound wave illustration for: Voice Selection

VoxMold offers eight distinct voice presets optimized for synthetic speech datasets, ensuring consistent audio quality across diverse linguistic contexts. Each voice is engineered to provide clear, structured audio suitable for machine learning model training, with deterministic output characteristics.

Female Presets

Aria delivers a warm, clear narration style ideal for general-purpose datasets. Nova provides a bright, upbeat tone for dynamic content. Luna offers a soft, storytelling voice, while Sage presents a calm, instructional tone for educational or technical material.

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

Male Presets

Felix provides an energetic voice suitable for promotional or fast-paced data. Milo offers a friendly, conversational tone for natural dialogue datasets. Atlas ensures a neutral, news-style delivery, while Orion delivers a deep, documentary voice for authoritative content.

  • Felix: Energetic, promo
  • Milo: Friendly, conversational
  • Atlas: Neutral, news
  • Orion: Deep, documentary

Voice Characteristics

All voices are derived from licensed LibriTTS-R recordings (CC BY 4.0) and public-domain LibriVox readings, ensuring legal clarity for commercial datasets. Each generated audio file contains an inaudible watermark to identify synthetic speech, aiding in dataset curation and model training verification.

Language Support

Sound wave illustration for: Language Support

VoxMold supports 23 languages including English, Chinese, Spanish, German, French, Arabic, and Japanese. Any voice can generate audio in any supported language, ensuring consistent quality across your synthetic dataset.

Primary Languages

The API covers major global 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.

Script Detection

If the language field is omitted, the system guesses the language from the text script. Latin script defaults to English. For non-English text using Latin characters, explicitly set the language parameter to ensure accurate synthesis.

Language Codes

Pass the ISO language code in the request body. Unsupported languages include Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, and Bengali. Using an unsupported code may result in default English synthesis.

Pricing Model

Sound wave illustration for: Pricing Model

VoxMold charges $0.01 per 1,000 characters, with a flat rate of $10 per million characters. Spaces and punctuation count toward the total, providing predictable costs for large-scale dataset generation. Failed requests incur no charge, ensuring you pay only for successful synthesis.

Per Character Cost

The standard rate is $10 per million characters. This linear pricing model eliminates complex tier structures, making budget forecasting straightforward for startups generating terabytes of audio data. Every character, including spaces, is counted.

  • $0.01 per 1,000 characters
  • Failed requests are free
  • Spaces and punctuation count

Volume Efficiency

Billing is proportional to usage with no minimum spend or monthly subscriptions. Accounts start with a $0.50 trial credit (approx. 50,000 characters) valid for 7 days upon Google sign-in. Top-ups via USDT (TRC-20) are processed automatically.

Trial Credit

New accounts created via Google authentication receive an initial $0.50 credit. Email-based accounts begin with zero balance. Credits do not expire, allowing flexible testing of voice presets and language variations before committing to bulk top-ups.

Pricing Model

Technical Limits

Sound wave illustration for: Technical Limits

Understand the operational boundaries of the API to plan your data generation pipelines effectively. Our infrastructure handles requests sequentially, meaning concurrent jobs may experience delays depending on system load.

Rate Limits

Each API key is limited to 60 requests per minute. New accounts start with a lower threshold of 10 requests per minute until the first top-up is processed.

Processing Time

Generation speed averages roughly 25 characters per second for long texts, approximating real-time audio duration. Short phrases typically require a few seconds to synthesize and return.

Queue Management

Requests are processed in the order they are received. Under high load, incoming requests may wait in a queue before synthesis begins, potentially increasing total latency for bulk jobs.

Integration

Sound wave illustration for: Integration

VoxMold integrates seamlessly into existing data pipelines via standard HTTP requests. The API adheres to the OpenAI speech endpoint structure, allowing teams to utilize familiar SDKs by simply adjusting the base URL to https://api.xxx444.cc/v1. This compatibility ensures minimal friction when migrating or implementing synthetic speech generation for machine learning datasets.

Python Requests

Integration begins with a standard POST request to the speech endpoint. Send text in JSON format and receive an audio file. The response contains the audio file, enabling immediate storage or processing within your data augmentation scripts.

  • POST https://api.xxx444.cc/v1/audio/speech
  • JSON body with model, input, voice, and format

Authentication

Secure access is managed through a single active API key issued per account. Include the key in the HTTP header as Authorization: Bearer tts-.... If a new key is issued, the previous one becomes invalid immediately, ensuring tight control over access credentials for your ML infrastructure.

Error Handling

The API returns standard HTTP status codes. Failed synthesis requests result in a full credit refund, ensuring accurate billing for your dataset production costs. Monitor response codes to handle rate limits or invalid parameters programmatically within your generation pipeline.

Use Cases

Sound wave illustration for: Use Cases

VoxMold’s deterministic audio generation streamlines the creation of large-scale synthetic speech datasets required for training robust machine learning models. By leveraging standard audio formats and predictable character-to-audio ratios, engineering teams can automate data pipeline construction without manual curation overhead.

Model Training

Generate consistent synthetic voices across multiple languages to train speech recognition and synthesis models. The API’s deterministic output ensures reproducible results for model evaluation and hyperparameter tuning.

  • Support for 23 languages enables multi-lingual model training.
  • Standard formats (mp3, wav, flac) integrate directly into ML pipelines.
  • Deterministic generation ensures reproducible dataset samples.

Data Augmentation

Expand limited training corpora by generating varied speech samples with different speeds and voices. This increases dataset diversity and improves model generalization without the cost of manual recording.

  • Adjust speed from 0.25x to 4.0x for temporal variation.
  • Switch between 8 distinct voice presets for acoustic diversity.
  • Up to 4096 characters per request allows batched generation.

Voice Cloning Base

Produce high-quality reference samples for voice cloning applications. Note that custom voice cloning is not offered.

Infrastructure

Sound wave illustration for: Infrastructure

VoxMold operates as a cloud-native API, ensuring scalable infrastructure for high-volume synthetic speech generation. Requests are processed sequentially, allowing predictable throughput for dataset construction without complex self-hosting overhead.

Cloud Deployment

The service is hosted entirely in the cloud, accessible via standard HTTP endpoints. This eliminates the need for local GPU resources or custom infrastructure management, allowing startups to focus on model training rather than server maintenance.

  • No on-premise installation required
  • Standard HTTP/HTTPS connectivity
  • No data-center choice constraints

Data Privacy

Input text is used exclusively for synthesis and is not retained for model training. Generated audio files are returned in the response stream and are not stored on our servers after delivery. Only request metadata, including timestamp, character count, and status, is kept for billing purposes.

  • Input text not used for training
  • Generated audio not stored
  • Metadata retained only for billing

Watermarking

Every generated audio file contains an inaudible watermark identifying the speech as synthetic. This allows downstream ML models and verification pipelines to distinguish generated data from human-recorded corpus, ensuring data provenance and integrity for training sets.

  • Inaudible synthetic watermark
  • Automated in every file
  • Supports data provenance verification

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. The response headers may contain metadata about the character count processed.

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. FFmpeg documentation
  4. LibriTTS-R corpus (OpenSLR 141)
  5. curl documentation
  6. TRON developer hub: TRC-20
  7. MDN: Web Speech API
  8. LibriVox public-domain audiobooks
  9. OpenAI API reference: create speech
  10. LibriTTS-R paper (arXiv 2305.18802)
  11. openai-node on GitHub
  12. openai-python on GitHub

More on this site