What is the TTS API and how does it work?

By CashBlox editorial team · Updated 2026-11-19

This page explains how the ScriptRead Text-to-Speech API converts text into audio files for your online courses and LMS platforms. We cover the technical workflow, from sending JSON requests to receiving synthesized audio, ensuring your engineering team understands the integration process. You will find specific details on voice selection, language handling, and rate limits relevant to large-scale content production.

Designed for LMS administrators and content teams, this guide details the practical aspects of using our cloud API. You will learn about character limits, pricing structures, and data handling policies. The information provided is strictly factual, helping you evaluate whether this solution fits your existing infrastructure without unnecessary marketing noise.

What is the TTS API and how does it work?

Frequently asked questions

What is a TTS API?

ScriptRead is a cloud text-to-speech API that converts text into audio files. Send a JSON request to POST /v1/audio/speech and receive synthesized audio. It follows the OpenAI request shape, allowing teams to integrate TTS into their LMS workflows using standard HTTP clients or the official OpenAI SDK by adjusting the base URL to https://api.cashblox.info/v1.

How is it different from local TTS?

Unlike local TTS, our service runs on cloud servers, eliminating the need for local hardware maintenance or software updates. It handles scaling automatically for large teams generating audio at volume. You simply send text via API and receive audio files, ensuring consistent quality without managing infrastructure or licensing for multiple workstations.

Is it cloud-based?

Yes, ScriptRead is a fully cloud-based API. All processing occurs on our servers, allowing your team to generate audio from any location with internet access. Input text is used only for synthesis, and generated audio is returned in the response without being stored, ensuring data privacy for your course content.

What is the input format?

Input is plain text sent in the JSON body under the field input. The text must not exceed 4096 characters per request. For longer texts, split the content into parts and join the resulting audio files. The API does not support SSML or phoneme dictionaries, so only raw text is accepted.

What is the output format?

The API returns audio files in MP3, WAV, OPUS, FLAC, or PCM formats, specified via the response_format field. Each generated file contains an inaudible watermark marking it as synthetic speech. The audio is delivered directly in the API response, allowing immediate playback or storage in your LMS media library.

Does it support streaming?

No, the API does not support streaming, WebSockets, or real-time partial audio. It processes requests synchronously, returning the complete audio file upon completion. This ensures reliable delivery for bulk generation tasks, though requests are processed sequentially, so high volume may introduce queue delays during peak usage periods.

Is SSML supported?

No, the API does not support SSML (Speech Synthesis Markup Language). You must send plain text in the input field. There are no emotion tags or custom pronunciation lexicons available. For precise control, split text into segments and adjust the speed parameter between 0.25 and 4.0 to modify pacing.

How many voices are available?

There are 8 voice presets: Aria, Nova, Luna, and Sage (female); Felix, Milo, Atlas, and Orion (male). Each voice has a distinct tone, from warm narration to deep documentary styles. All voices can speak any of the 23 supported languages, allowing consistent audio production across diverse course materials without switching engines.

Can I customize voices?

No, custom voice cloning or uploading your own voice is not offered. The 8 presets are based on licensed recordings from LibriTTS-R and LibriVox. You cannot design new voices or adjust emotional tones. The voices remain fixed, ensuring consistent quality and licensing compliance for all generated audio files delivered to your LMS.

What languages are supported?

The API supports 23 languages, including English, Spanish, German, French, Chinese, Japanese, and Arabic. Any voice can speak any supported language. If the language field is omitted, the system guesses the language from the script, defaulting to English for Latin text. Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali and all others not in the list are not supported.

Is there a character limit?

Yes, each API request accepts up to 4096 characters in the input field. Spaces and punctuation count toward this limit. For longer course content, split the text into multiple requests and join the resulting audio files. This ensures efficient processing and prevents timeouts, maintaining reliable delivery for large-scale audio generation tasks.

How are errors handled?

If synthesis fails, the request is free, and the charge is returned in full. Failed requests do not deduct from your balance. You can retry requests programmatically. The API provides clear status codes, allowing your LMS integration to handle retries or notifications efficiently without incurring unnecessary costs for unsuccessful audio generations.

Is there an SLA?

No, there is no SLA, no uptime guarantee, no enterprise contract, no on-premise install, no data-center choice, no certifications (SOC 2, HIPAA, GDPR certificate). The service is provided as-is without enterprise contracts or on-premise options. Support is available via email only, with no phone number or live chat. Requests are processed sequentially, so under heavy load, generation may take longer than typical real-time speeds.

How do I get started?

Sign up on /get-api-key/ using Google or email. You receive an API key and $0.50 trial credit for 7 days. Use the key to send POST requests to https://api.cashblox.info/v1/audio/speech. Top up with USDT (TRC-20) for ongoing use. The base URL is https://api.cashblox.info/v1, compatible with standard OpenAI SDKs.

Definition of TTS API

Sound wave illustration for: Definition of TTS API

ScriptRead is a cloud text-to-speech API designed for LMS administrators and online course teams. It converts written course content into audio files via a standardized API endpoint, enabling scalable narration without operational overhead.

The service operates entirely in the cloud, requiring no on-premise infrastructure. No on-premise install is available. This ensures consistent performance for large teams generating audio at scale.

Text-to-speech conversion

The API accepts raw text and returns synthesized audio. Users send a JSON payload containing the text, voice selection, and format preferences. The system processes the request and returns the generated audio file directly in the response.

  • Converts up to 4,096 characters per request
  • Returns audio in MP3, WAV, Opus, FLAC, or PCM
  • Applies voice presets and speed adjustments automatically

API endpoint structure

The primary endpoint is POST https://api.cashblox.info/v1/audio/speech. It mirrors the OpenAI speech endpoint structure, allowing teams to use existing OpenAI SDKs by simply changing the base_url to https://api.cashblox.info/v1. A separate GET /v1/voices endpoint provides metadata on available voices, languages, and formats.

  • Primary endpoint: POST /v1/audio/speech
  • Voice metadata: GET /v1/voices
  • Model listing: GET /v1/models

How It Works

Sound wave illustration for: How It Works

The core workflow begins by sending text to the API endpoint. You submit your content via a standard HTTP POST request to https://api.cashblox.info/v1/audio/speech. This method ensures compatibility with existing infrastructure used by LMS administrators and large educational teams.

Once the server processes the request, it returns the generated audio file directly in the response. The service handles the synthesis in the cloud, delivering a ready-to-use audio asset without requiring local processing power or specialized hardware on the client side.

Send text via POST

Initiate synthesis by posting your text payload to the designated endpoint. The system accepts standard HTTP POST requests, allowing seamless integration with your current content management or automation pipelines used by course providers.

  • Endpoint: POST https://api.cashblox.info/v1/audio/speech
  • Method: HTTP POST
  • Input: Text string (up to 4096 characters)

Receive audio file

The API returns the synthesized audio immediately upon completion. You receive the file in the requested format, ready for embedding into your online courses or LMS modules without additional conversion steps.

Note that requests are processed sequentially; under high load, a queue may form, but the response structure remains consistent regardless of wait time.

JSON request body

Construct your request using a JSON body that mirrors the standard OpenAI speech endpoint structure. This design allows you to use official OpenAI SDKs by simply updating the base_url to https://api.cashblox.info/v1, reducing development overhead for teams already familiar with that ecosystem.

Required fields include model (tts-1 or tts-1-hd), input (your text), and voice (one of the eight presets). Optional parameters allow you to specify response_format, speed, and language for precise control over the output.

Integration Methods

Sound wave illustration for: Integration Methods

Integration is straightforward for teams already using standard tools. The API mirrors the OpenAI speech endpoint structure, allowing you to switch providers by changing a single base URL configuration without rewriting your core logic.

You can integrate via the official OpenAI SDKs, direct HTTP requests, or Python libraries. For Python developers, the standard OpenAI Python library works by pointing it to https://api.cashblox.info/v1. No official SDK of our own is provided.

OpenAI SDK compatibility

The request shape matches the OpenAI speech endpoint exactly. This allows teams to reuse existing authentication and request handling code by simply updating the base URL to https://api.cashblox.info/v1.

This compatibility reduces integration time for LMS administrators who already have scripts configured for OpenAI-compatible services.

  • Same JSON body structure as OpenAI
  • Supports standard Bearer token auth
  • Compatible with official OpenAI SDKs

Direct HTTP requests

Send a POST request to https://api.cashblox.info/v1/audio/speech with a JSON body. Include your Authorization: Bearer key, the model, input text, voice, and response_format.

The API returns the audio file directly in the response, eliminating the need for polling or secondary download endpoints.

  • POST https://api.cashblox.info/v1/audio/speech
  • JSON body with model, input, voice
  • Returns audio file directly

Python library usage

Python developers can use the standard OpenAI Python library by pointing it to the ScriptRead base URL. No official SDK of our own is provided. This ensures you stay current with SDK updates without waiting for a proprietary wrapper.

Configure the client with base_url="https://api.cashblox.info/v1" and your API key to generate audio synchronously.

  • Use standard OpenAI Python library
  • Set base_url to api.cashblox.info
  • No proprietary wrapper needed

Voice Selection Process

Sound wave illustration for: Voice Selection Process

ScriptRead provides eight distinct voice presets, each engineered for specific narration styles. Teams can select from four female voices—Aria, Nova, Luna, and Sage—and four male voices—Felix, Milo, Atlas, and Orion—to match their course content’s tone.

These presets cover a range of delivery styles, from warm narration to energetic promos. Each voice is derived from licensed recordings, ensuring consistent quality across all generated audio files without requiring manual tuning.

8 preset voices

The API offers eight distinct voice presets. Female options include Aria (warm narrator), Nova (upbeat), Luna (storytelling), and Sage (instructional). Male options include Felix (energetic), Milo (conversational), Atlas (neutral news), and Orion (deep documentary).

Each voice is based on licensed recordings from LibriTTS-R (CC BY 4.0), from LibriVox public-domain audiobook readings.

  • 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

Gender and tone options

Select voices based on the required tone for your course modules. Use Atlas for neutral, factual content or Orion for in-depth documentary-style lessons. Choose Nova or Felix for high-energy promotional segments.

The distinction between voices allows LMS administrators to maintain auditory variety across different course sections without needing multiple voice actors.

Voice consistency

Each generated audio file carries an inaudible watermark, marking it as synthetic speech. This ensures consistent branding across all produced content.

Voices remain stable across requests, allowing teams to generate thousands of hours of course audio with uniform voice characteristics.

Language Processing

Sound wave illustration for: Language Processing

The API supports 23 languages, allowing LMS administrators to generate narration for diverse international course libraries. Any voice can speak any supported language, ensuring consistent brand audio across modules regardless of the learner's region.

23 languages supported

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. Languages such as Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, and Bengali are not supported.

Auto-detection logic

If the language parameter is omitted, the system guesses the language from the text script. Latin script text defaults to English, which may cause errors for other Latin-based languages like Spanish or French if not explicitly specified.

Explicit language codes

For non-English Latin-script text, set the language parameter to the correct ISO code. This ensures accurate pronunciation and prevents the default English voice from reading foreign text with an English accent.

Audio Generation

Sound wave illustration for: Audio Generation

Audio generation converts your input text into synthetic speech files. The system processes requests sequentially, so under load a request may wait in a queue. Typical speed is roughly real time on long texts, approximately 25 characters of text per second of generation, though short phrases take a few seconds.

Real-time synthesis

Requests are processed one after another. While long texts generate at approximately real-time speed, shorter inputs require a few seconds per synthesis. Under heavy load, your request may wait in a queue before processing begins.

Format selection

Specify the output format using the response_format field. Supported formats include mp3, wav, opus, flac, and pcm. Choose the format that best fits your LMS player’s capabilities and your team’s storage requirements.

Quality options

Select between two model tiers: tts-1 for standard generation or tts-1-hd for higher fidelity. Both models use the same engine and carry identical pricing. Every generated file includes an inaudible watermark marking it as synthetic speech.

Audio Generation

Character Limits

Sound wave illustration for: Character Limits

The API enforces a strict limit of 4,096 characters per request. This constraint applies to the total length of the input text, including all spaces and punctuation marks.

Longer course modules or lecture scripts exceed this boundary and must be processed in sequential segments to ensure reliable synthesis.

4096 characters max

Each individual API call accepts a maximum of 4,096 characters for the input field. Exceeding this limit results in a request error, ensuring consistent processing behavior for all LMS content.

Splitting long texts

Administrators should divide lengthy scripts into chunks of up to 4,096 characters before sending them to the endpoint. This ensures that each segment is processed independently without truncation or data loss.

Joining audio files

The client-side application receives separate audio files for each segment. Your infrastructure must concatenate these files sequentially to reconstruct the full narration for the course module.

Rate Limiting

Sound wave illustration for: Rate Limiting

ScriptRead enforces a standard rate limit of 60 requests per minute for each API key. This limit applies uniformly across all accounts, ensuring consistent performance for large teams generating audio narrations for online courses without requiring complex tiered infrastructure.

60 requests per minute

Each active API key is capped at 60 requests per minute. This threshold is designed to accommodate the typical throughput needs of LMS administrators generating batch audio files for course modules. Requests are processed one after another. Exceeding this limit will result in standard HTTP 429 errors until the window resets.

Initial limit of 10

New accounts begin with a lower limit of 10 requests per minute. This applies until the first top-up is processed. Once a minimum $5 USDT transfer is confirmed on the TRON network, the standard 60 requests per minute limit is immediately activated.

Queue processing

Requests are processed sequentially. Under heavy load, a request may wait in a queue before synthesis begins. This ensures orderly processing but means that during peak usage, generation times may extend beyond the typical real-time speed, particularly for longer texts.

Cost Structure

Sound wave illustration for: Cost Structure

The API charges $0.01 per 1,000 characters, including spaces and punctuation. This flat rate applies uniformly across all models and voices, ensuring predictable cost calculation for large-scale course narration.

There is no minimum spend or required monthly commitment. Accounts created with Google sign-in start with a $0.50 trial valid for 7 days. Accounts created with email and password start without trial credit. Additional funds are added via USDT (TRC-20) on the TRON network only, with a minimum of $5. No cards, no PayPal, no subscriptions, no invoices with VAT. Balance does not expire.

Pay per character ['Billing is strictly proportional to input length. Each request, regardless of voice or speed, incurs a charge based on the character count of the input field. Failed requests incur zero cost, with the charge returned in full if synthesis fails.'] ['$0.01 per 1,000 characters', 'Spaces and punctuation count', 'Failed requests are free']

No minimum spend ['No monthly plans or subscription tiers exist. You pay only for what you generate. The balance never expires, allowing teams to top up via TRON network transfers as needed without administrative overhead.', 'Initial accounts created via email/password do not receive trial credit. Google sign-in provides $0.50 (approx. 50,000 characters) for 7 days. Minimum top-up is $5.']

Free failures ['If the synthesis engine returns an error, the character count is not deducted. This ensures that temporary processing issues do not impact your budget for production audio generation.']

Data Handling

Sound wave illustration for: Data Handling

Input text is used exclusively for the immediate production of the requested audio file. We do not use your course content or narration scripts to train our underlying models, ensuring your proprietary educational material remains distinct from our engine’s development.

Generated audio files are returned directly in the API response and are not stored on our servers after delivery. This minimizes data residency concerns for large teams managing sensitive curriculum assets.

Request metadata, including timestamps, character counts, and status codes, is retained solely for billing verification and usage tracking. This data supports transparent invoicing without retaining the actual audio or text content.

No training data

Your input text serves only to generate the specific audio file requested. It is not ingested into our training datasets, ensuring that your unique course scripts do not influence future model iterations or become part of our base model’s knowledge.

This separation guarantees that your proprietary educational content remains private and does not contribute to the general pool of data used to improve the TTS engine’s voice characteristics or language handling.

  • Input text is ephemeral and purpose-specific
  • Proprietary course scripts remain isolated

No audio storage

Once the audio file is generated and delivered in the response, it is not persisted in our long-term storage systems. Each request is a discrete transaction where the output is transmitted and then discarded.

This approach reduces storage costs and ensures that large batches of audio files for your online courses are not accumulating on our servers, keeping your data footprint minimal and your audit trails clean.

  • Audio files are returned in the response
  • No long-term persistence of generated audio
  • Reduced storage overhead for large teams

Metadata retention

We retain request metadata, including the time of the request, character count, and status code. This information is strictly used for billing accuracy and usage monitoring.

These records allow us to verify charges and troubleshoot issues without retaining the actual content of your text or the resulting audio files, aligning with standard corporate data governance practices.

  • Timestamps and character counts kept
  • Used for billing and status verification
  • No retention of audio or text content

Support Model

Sound wave illustration for: Support Model

Our support operates exclusively through email, ensuring that all inquiries are logged and addressed systematically. This model allows our technical team to provide detailed, written responses that can be easily referenced by LMS administrators and large teams managing complex integration workflows.

We maintain a streamlined communication channel to avoid the overhead of real-time availability while ensuring every ticket receives a thorough review.

Email only

All support requests are handled via email. This ensures a clear audit trail for your team’s inquiries and allows our engineers to attach relevant technical details or code snippets to their responses. You can expect detailed, written explanations rather than brief verbal answers.

No live chat

We do not offer a live chat widget on our website. This eliminates the uncertainty of waiting for an available agent and ensures that your question is processed in our queue alongside other technical tickets, guaranteeing consistent response times regardless of traffic volume.

No phone support

There is no phone number for customer inquiries. We avoid phone support to keep operational costs low, which directly contributes to our competitive pricing model. If you require immediate assistance, email remains our primary and only channel for technical and billing support.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. We prioritize email communication to handle detailed technical queries and billing questions efficiently.

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. LibriVox public-domain audiobooks
  3. ISO 639 language codes
  4. FFmpeg documentation
  5. LibriTTS-R paper (arXiv 2305.18802)
  6. Tether (USDT)
  7. openai-python on GitHub
  8. Python documentation
  9. LibriTTS-R corpus (OpenSLR 141)
  10. openai-node on GitHub
  11. IETF RFC 7845: Ogg Opus
  12. Creative Commons Attribution 4.0

More on this site