How Does This Text-to-Speech API Convert Your Text Into Audio Files?

By VoiceClip editorial team · Updated 2026-11-18

This page explains how VoiceClip converts your scripts into ready-to-use audio files for TikTok, Reels, and Shorts. You will learn the technical workflow: from submitting text via a simple REST API to receiving encoded audio. We detail how neural synthesis handles tone, how the system detects language, and why you should specify explicit language codes for non-English Latin text. You will also see how our 8 voice presets and multiple formats (MP3, WAV, FLAC) fit your editing pipeline.

Designed for freelance video editors and content creators, this guide covers practical integration steps. We explain character limits, speed expectations, and error handling so you can automate narration without guesswork. You will understand the pricing model, data retention policies, and voice licensing. Whether you are building a custom workflow or using the OpenAI SDK, this page provides the exact technical details needed to generate reliable, synthetic speech at scale.

How Does This Text-to-Speech API Convert Your Text Into Audio Files?

Frequently asked questions

What is text-to-speech technology?

Text-to-speech converts written text into audio files. You send a POST request with your script to the API endpoint and receive an audio file in return. This allows you to automate narration for videos without recording human voiceovers manually.

How accurate is the narration?

The voices are based on licensed recordings from LibriTTS-R and LibriVox public-domain audiobook readings. The engine handles standard text accurately, though specific pronunciation may require manual adjustment or language specification. It does not support SSML or custom pronunciation lexicons.

Can the API read any language?

It supports 23 languages, including English, Spanish, Chinese, and Arabic. Any voice can speak any supported language. If the language is not set, the system guesses it from the script, defaulting to English for Latin text. Vietnamese and Thai are not supported.

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

Both models use the same engine and price. The only difference is the model identifier in the request. You can use either "tts-1" or "tts-1-hd" without any change in cost or generation speed for your social media content.

Do I need to know how to code?

No, but the API is designed for developers. You can use the official OpenAI SDKs by changing the base URL, or use plain HTTP requests. The /get-api-key/ page provides a ready curl example for immediate testing without writing code.

Can I use the API for commercial projects?

Yes, you can use the generated audio for commercial projects like TikTok, Reels, and Shorts. The audio files are returned in the response and not stored. Input text is used only for synthesis and not for training the model.

Are the voices robotic or natural?

The voices are based on licensed recordings from LibriVox public-domain audiobook readings. They are natural-sounding presets like Aria, Nova, and Felix. Every generated file carries an inaudible watermark that marks it as synthetic speech, distinguishing it from human recordings.

How long do the audio files last?

The audio files are generated on demand and returned in the API response. They are not stored on our servers after delivery. You receive the file directly, so you can save it to your local device or cloud storage indefinitely.

Can I edit the generated audio?

Yes, you receive standard audio formats like MP3, WAV, OPUS, FLAC, or PCM. You can edit these files in any standard audio editor. The API does not provide built-in editing features, so you handle post-production separately.

Is there a character limit?

Each request accepts up to 4096 characters. For longer scripts, split the text into parts of this size and join the resulting audio files. Spaces and punctuation count toward the character limit and the billing calculation.

What happens if I exceed the rate limit?

The limit is 60 requests per minute per key. If you exceed this, requests may wait in a queue or fail. Failed requests are free, so you are not charged for audio that fails to generate due to limits.

Can I use the API on mobile devices?

Yes, you can use the API from any device with internet access. You can make HTTP requests from mobile apps or scripts. There is no official SDK of our own, but the standard OpenAI SDK works by changing the base URL.

Is the API reliable?

There is no SLA or uptime guarantee. Requests are processed sequentially, so under load, a request may wait in a queue. Typical speed is roughly real time, but short phrases may take a few seconds to generate.

How do I choose the right voice?

Choose from 8 presets based on your content style. Use Aria for clear narration, Nova for upbeat content, or Felix for energetic promos. Test different voices with short scripts to find a fit for your specific video style.

Definition

Sound wave illustration for: Definition

This API converts written text into spoken audio via a simple POST request. You send a script, and the system returns an audio file ready for use in videos or apps. It is not a real-time streaming service but a batch processing tool designed for content creation workflows.

Text-to-speech conversion

The process takes your input text, processes it through neural networks, and synthesizes it into a digital audio file. You specify the model, voice, and format in the JSON body.

Automated voice generation

Unlike manual recording, this service generates speech automatically from your script. You choose from eight distinct voice presets to match the tone of your content, ensuring consistent narration without hiring voice actors.

Digital audio synthesis

The output is a standard audio file (MP3, WAV, etc.) generated from your text. The system handles the acoustic modeling internally, delivering a clean file that you can download or stream directly in your editor.

Technical process

Sound wave illustration for: Technical process

The API accepts your script as plain text and processes it through a neural network to generate speech. Each request is limited to 4096 characters, ensuring consistent processing times and predictable latency for social media workflows.

The synthesis engine converts text into audio in roughly real-time, processing about 25 characters per second. Requests are handled sequentially, so high volume may introduce brief queue delays.

Input text processing

Send your script as a JSON body with the input field. The system validates character counts and language codes before synthesis begins.

None

  • Maximum 4096 characters per request
  • Plain text input, no SSML required

Neural network synthesis

The model generates audio using licensed voice data. It processes requests sequentially, meaning load can affect speed.

None

  • Real-time generation (~25 chars/sec)
  • Sequential processing queue

Audio file encoding

Output is returned as a downloadable audio file in your chosen format (mp3, wav, opus, flac, pcm).

None

  • Multiple format support
  • Immediate download response

Voice selection

Sound wave illustration for: Voice selection

Choose from eight distinct voice presets tailored for social media content. Each voice offers a specific tonal quality, from warm narration to energetic promos, allowing precise control over your video's audio identity without requiring custom voice cloning services.

The system does not offer custom cloning or voice design. You select from the provided presets, which are based on licensed recordings from LibriVox public-domain audiobooks. This ensures consistent, high-quality narration suitable for TikTok, Reels, and Shorts workflows.

Presets vs custom cloning

We provide eight fixed voice presets rather than custom cloning options. You cannot upload a reference voice to create a unique clone. The presets are designed to cover common content creator needs, from storytelling to instructional delivery.

This approach keeps the API simple and reliable. There is no need for complex training processes or additional fees for unique voices. The voices are based on licensed recordings, ensuring clear and consistent audio output for every request.

Tone and style differences

Each voice carries a distinct personality. Some are warm and clear, ideal for narrative content, while others are bright and upbeat, suitable for fast-paced social media clips. Others offer a neutral or deep tone for news-style or documentary content.

Selecting the right voice depends on your content type. For example, use a calm voice for instructional videos or an energetic one for promotional reels. The tone directly impacts how your audience perceives the message.

8 voice presets

The available voices are:

Female: aria (warm, clear narrator), nova (bright, upbeat), luna (soft, storytelling), sage (calm, instructional). Male: felix (energetic, promo), milo (friendly, conversational), atlas (neutral, news), orion (deep, documentary).

All voices can speak any of the 23 supported languages. You can mix voices across different requests to create varied content for different platforms.

  • 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 support

Sound wave illustration for: Language support

The API supports 23 languages, allowing any of the 8 voice presets to speak any supported language. This flexibility ensures consistent audio quality regardless of the source text's origin, catering to the diverse needs of freelance video editors creating content for global audiences on TikTok, Reels, and Shorts.

23 supported languages

Supported languages include Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. If a language is not listed, such as Vietnamese or Ukrainian, it is not supported.

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

Script-based detection

When the language field is omitted, the system guesses the language from the script. Latin script defaults to English, which can cause issues if the text is in another Latin-based language like Spanish or French.

Explicit language codes

For non-English Latin-script text, you must set the language parameter to the correct ISO code. This prevents mispronunciation and ensures the voice model applies the correct phonetic rules for the intended language.

Audio formats

Sound wave illustration for: Audio formats

The API returns synthesized audio in multiple container and codec combinations to match different social media workflows. You specify the output type via the response_format parameter in your JSON payload, choosing between compressed, uncompressed, or raw data streams.

MP3 compression

MP3 is the default format, offering high compression with acceptable quality for web delivery. It reduces file size significantly, making it ideal for uploading directly to TikTok, Instagram Reels, or YouTube Shorts where bandwidth and storage matter.

  • Default output format
  • Optimized for social media uploads
  • Small file size

WAV lossless quality

WAV provides uncompressed PCM audio. This format is preferred for professional editing workflows where you need to apply effects, normalize volume, or mix multiple tracks without generational loss.

  • Uncompressed PCM audio
  • Ideal for professional editing
  • Highest fidelity output

FLAC and OPUS options

FLAC offers lossless compression, reducing file size while maintaining exact audio quality. OPUS provides efficient compression suitable for voice-heavy applications, balancing quality and bandwidth usage for efficient storage or transmission.

  • FLAC: Lossless compression
  • OPUS: Efficient voice compression
  • Flexible storage options

Use cases

Sound wave illustration for: Use cases

The API generates clean audio files ideal for automating voice-overs for TikTok, Reels, and Shorts. Freelance editors can pipe script text directly into the endpoint, receiving ready-to-edit MP3 or WAV files that match the rhythm of short-form content without manual recording sessions.

This workflow reduces production time significantly, allowing creators to focus on visual editing while the API handles narration generation at scale.

Social media voice-overs

Generate consistent narration for viral-style videos. Use preset voices like 'Nova' for upbeat reels or 'Atlas' for neutral updates. The 4096-character limit per request covers most short scripts, and speed adjustments (0.25–4.0) help sync audio to fast-paced cuts.

Split longer scripts into chunks to stay within limits. Receive audio files ready for direct import into editing software.

  • Ideal for TikTok and Shorts voice-overs
  • Fast turnaround for high-volume content
  • Consistent tone across multiple videos

E-learning narration

Convert educational text into clear audio for online courses. Voices like 'Sage' provide calm, instructional tones suitable for tutorials. Support for 23 languages allows global reach, with explicit ISO codes ensuring accurate pronunciation for non-English content.

Generate MP3 or WAV files that are easy to embed in learning management systems. No SSML needed; simple text input suffices.

  • Clear, instructional narration
  • Multi-language support
  • Easy integration with LMS

Podcast generation

Automate podcast narration for news or documentary-style shows. Use 'Orion' for deep, documentary tones or 'Felix' for energetic promo episodes. The API handles character limits by splitting text, ensuring continuous audio output for longer episodes.

No need for studio time or voice actors. Generate audio files directly from your script, saving on production costs.

  • Automated podcast narration
  • Support for long-form content
  • Cost-effective alternative to voice actors

Limitations

Sound wave illustration for: Limitations

The API enforces a strict 4096-character limit per request. Texts exceeding this threshold must be split into chunks by the client, which are then synthesized individually and joined. This requires basic logic in your automation scripts to handle long-form content like full video scripts.

Unlike premium voice engines, this API does not support SSML markup. You cannot adjust prosody, pause duration, or pronunciation via XML tags. Tone and pacing are determined solely by the selected voice preset and the speed parameter (0.25–4.0).

Character limit per request

Each API call accepts up to 4096 characters, including spaces and punctuation. For longer scripts, your code must split the input, send multiple requests, and concatenate the resulting audio files. This ensures consistent generation quality and avoids timeout issues during peak load.

If you send text longer than 4096 characters, the request will fail. There is no automatic chunking on the server side, so the burden of splitting lies with the integrator.

  • Maximum input: 4096 characters per request
  • Spaces and punctuation count toward the limit
  • Client-side splitting required for longer content

No SSML support

The API does not process SSML tags. You cannot insert explicit pauses, change emphasis, or specify phoneme pronunciations. Style adjustments are limited to the speed multiplier and voice selection.

This simplifies the integration but removes fine-grained control over delivery. For social media voice-overs, the default pacing of presets like nova or felix is usually sufficient.

  • No XML/SSML markup support
  • No custom pause or emphasis tags
  • Pacing controlled only by speed (0.25–4.0)

No real-time streaming

Audio is generated synchronously and returned as a complete file. There is no WebSocket or streaming endpoint for partial audio chunks. You must wait for the full synthesis to complete before receiving the response.

Latency depends on queue load. While generation is roughly real-time (25 characters/second), requests are processed sequentially, so under high load, you may experience delays before synthesis begins.

  • Synchronous file delivery only
  • No WebSocket or streaming support
  • Latency varies with queue depth

Data usage

Sound wave illustration for: Data usage

Your input text is used solely to generate the audio file and is not used for training the model. The API does not consume your scripts to improve the underlying neural network, ensuring your content remains proprietary. Once the audio is returned in the response, the original text is not stored on our servers.

Generated audio files are returned in the HTTP response and are not persisted in our storage systems. You are responsible for downloading and saving the audio to your own infrastructure or cloud storage. This ensures you maintain full control over your content assets without dependency on our storage duration policies.

Input text not trained on

The text you send in the input field is processed exclusively for synthesis. It is not retained for model improvement or reused in future training datasets. This separation ensures that your specific scripts, whether for TikTok voiceovers or e-learning modules, remain distinct from the general training data used to build the voice models.

  • Text is used only for immediate synthesis
  • No secondary use for model training
  • Content remains proprietary to you

No audio storage

The API returns the audio file directly in the response body. We do not store the generated MP3, WAV, or OPUS files on our servers after the request completes. You must download and save the audio to your local machine or cloud storage immediately. This prevents long-term data accumulation on our end and reduces storage costs.

  • Audio returned in response body
  • No long-term storage on our servers
  • You manage your own audio archives

Metadata retention

We retain request metadata strictly for billing and usage verification. This includes the timestamp, character count, voice selected, and request status. This data is kept to ensure accurate charging based on the per-character model and to help debug any issues with your API calls. No other personal or content data is stored.

  • Timestamp and character count
  • Voice and format details
  • Status code for billing verification

Integration

Sound wave illustration for: Integration

The API uses a standard REST architecture, accepting JSON payloads via POST requests to generate audio files. This design allows seamless integration into existing pipelines without requiring custom middleware or complex protocol handling for basic synthesis tasks.

Compatibility with official OpenAI SDKs simplifies adoption. Developers only need to update the base URL and supply their unique API key, leveraging familiar methods for authentication and request handling without learning a new client library.

REST API design

Endpoints follow a predictable structure, accepting standard JSON bodies with model, input, voice, and format parameters. The response returns the audio file directly, enabling straightforward parsing in any language that supports HTTP POST requests.

Error handling returns standard HTTP status codes, allowing scripts to detect rate limits or invalid inputs immediately and adjust retry logic accordingly without guessing response structures.

  • Standard JSON request/response format
  • Predictable endpoint structure
  • Standard HTTP status codes for errors

SDK compatibility

By mirroring the OpenAI speech endpoint shape, the service works with existing OpenAI SDKs. You simply change the base_url to https://api.qq333casino.com/v1 and inject your site-specific key.

This approach eliminates the need for a proprietary client library. Developers can reuse existing authentication and retry logic from their current integrations, reducing boilerplate code in Python, JavaScript, or Go.

Automation workflows

Ideal for headless video editing pipelines. Scripts can process a list of subtitles, generate audio files sequentially, and merge them into final video exports for TikTok or Reels without manual intervention.

Rate limits of 60 requests per minute allow steady batch processing. Scripts should implement exponential backoff to handle queue delays during high traffic, ensuring reliable delivery of audio assets.

Pricing model

Sound wave illustration for: Pricing model

Billing is strictly per character, charged at $10 per million characters. Spaces and punctuation count toward the total. Failed requests are refunded in full, ensuring you only pay for successful synthesis.

The free trial provides $0.50 credit (approx. 50,000 characters) valid for 7 days when signing in with Google. Email-based accounts start without trial credit. Balance never expires.

Per character billing

You pay $0.01 per 1,000 characters. This flat rate applies regardless of voice or format chosen. Requests are processed sequentially, so high volume may queue but incurs no extra fee.

  • $10 per 1,000,000 characters
  • $0.01 per 1,000 characters
  • Spaces and punctuation count

Free trial availability

Google sign-ups receive $0.50 credit valid for 7 days. This covers roughly 50,000 characters. Email-only accounts do not receive trial credit upon creation.

  • $0.50 initial credit
  • Valid for 7 days
  • Google sign-up only

USDT payment only

Top-ups use USDT on the TRON network (TRC-20) exclusively. Minimum top-up is $5. Credits appear automatically within minutes. No credit cards, PayPal, or VAT invoices.

  • USDT (TRC-20) only
  • Minimum $5 top-up
  • No cards or PayPal

Voice licensing

Sound wave illustration for: Voice licensing

The voices powering this API are derived from licensed recordings sourced from LibriTTS-R, a dataset built from LibriVox public-domain audiobook readings. This foundation ensures that the synthetic output retains the natural prosody and tonal qualities of human narration without relying on proprietary celebrity voices.

LibriTTS-R source

Our engine uses the LibriTTS-R dataset as its primary training source.

CC BY 4.0 license

The underlying voice data operates under the Creative Commons Attribution 4.0 International (CC BY 4.0) license. This allows us to train our neural networks on these recordings while maintaining transparency about the source material used in your generated audio.

Public domain recordings

Many of the source recordings originate from LibriVox, where volunteers read works in the public domain.

Watermarking

Sound wave illustration for: Watermarking

Every generated audio file carries an inaudible watermark that marks it as synthetic speech. This digital signature is embedded directly into the audio data during synthesis, ensuring that AI-generated content is distinguishable from human recordings without affecting playback quality.

The watermark serves as a consistent identifier across all outputs, regardless of the voice preset or language used. It provides a transparent marker for content creators who need to disclose the use of automated narration in their social media videos.

Inaudible synthetic mark

The watermark is embedded at a level that does not alter the perceptual quality of the voice. It remains consistent across all formats, including MP3, WAV, OPUS, and FLAC, ensuring that the synthetic nature of the audio is preserved even after compression.

  • Embedded during synthesis
  • Format-agnostic
  • No quality loss

Detection of AI speech

Every generated file carries an inaudible watermark that marks it as synthetic speech. This detection works independently of the voice model or speed settings used during generation.

  • Reliable detection
  • Model-independent
  • Format-agnostic

Transparency in content

For freelance editors and content creators, the watermark offers a clear way to identify AI-generated narration. This transparency helps maintain trust with audiences, especially when using synthetic voices for TikTok, Reels, or Shorts content.

  • Clear identification
  • Audience trust
  • Compliance support

Speed and latency

Sound wave illustration for: Speed and latency

Generation speed closely mirrors real-time playback, processing approximately 25 characters of text per second. Short phrases require a few seconds to synthesize, while longer scripts scale linearly with duration.

Real-time generation

The API produces audio files at a rate that matches natural speech tempo. This consistency allows creators to estimate generation time accurately based on script length, ensuring predictable turnaround for social media clips.

Queue processing

Requests are processed sequentially. Under heavy load, your synthesis job may wait in a queue before processing begins. This linear processing ensures stability but means concurrent requests will not run in parallel.

25 characters per second

The standard throughput is roughly 25 characters per second of generated audio. For a 100-character script, expect approximately 4 seconds of processing time, excluding queue wait time.

Error handling

Sound wave illustration for: Error handling

The API handles errors by ensuring you only pay for successful synthesis. If a request fails due to server issues, the charge is returned in full, so your balance remains accurate regardless of transient network or processing errors.

Proper error handling also involves respecting rate limits. You receive clear feedback when limits are exceeded, allowing you to adjust your automation scripts or top up your account to resume service without losing data.

Failed request refunds

Synthesis failures trigger an automatic refund. The API returns the full credit to your account balance, ensuring you are not charged for audio files that were not generated successfully.

Rate limit errors

Accounts are limited to 60 requests per minute. If you exceed this, the API returns a 429 error. New accounts start with a 10 requests per minute limit until the first top-up is processed.

  • 60 requests/minute per key after top-up
  • 10 requests/minute for new accounts
  • Automatic balance refund on failure

Input validation

The API validates input text length and format before processing. Text exceeding 4096 characters per request will result in an error. Ensure your automation splits long scripts to avoid rejection.

Ensure the input field is a valid string and the voice parameter matches one of the 8 presets. Invalid models or voices return immediate errors without consuming character credits.

  • Max 4096 characters per request
  • Validate voice presets before sending
  • Check character count in automation

Best practices

Sound wave illustration for: Best practices

Optimizing your TTS workflow ensures reliable audio generation and accurate billing. By understanding the technical constraints of the API, you can avoid failed requests and unexpected delays during high-volume content creation.

Implementing these practices simplifies integration for freelance editors managing TikTok, Reels, and Shorts scripts, ensuring consistent output quality without manual intervention.

Split long texts

Send up to 4096 characters per request. Split longer scripts into smaller parts and join the resulting audio files for seamless playback.

4096 character limit

Each API call processes a maximum of 4096 characters. Exceeding this limit returns an error, so always validate input length before sending.

Short phrases may take a few seconds to generate, while longer texts process at roughly real-time speed.

Use explicit language codes

Set the language field explicitly for non-English Latin-script text. Without it, the system guesses English, which may mispronounce other languages.

Monitor character counts

Billing is based on character count, including spaces and punctuation. Track usage to stay within your balance and avoid service interruption.

  • 60 requests per minute per key
  • 10 requests per minute before first top-up

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Send multiple requests simultaneously to speed up production.

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

More on this site