How Does a Text-to-Speech API Convert Text into Audio?

By Audo editorial team · Updated 2026-11-19

This page explains how the Audo API converts text into audio using a simple cloud endpoint. You send a JSON payload containing your script, and we return a synthesized audio file. This automated process handles the entire synthesis pipeline, allowing your team to focus on content rather than infrastructure. It is designed for engineering teams managing accessibility workflows and dyslexia support at scale.

Readers will learn the technical specifics of our request format, voice selection, and language handling. We cover data flow, integration with standard SDKs, and how billing works per character. This guide helps you integrate speech synthesis into your existing tools without enterprise overhead, ensuring consistent output for large volumes of text.

How Does a Text-to-Speech API Convert Text into Audio?

Frequently asked questions

Is the API suitable for dyslexic users?

Yes. Our API converts text into clear audio, supporting accessibility workflows. Voices like Luna offer soft, storytelling tones. You can adjust speed from 0.25x to 4.0x to match user comfort. The API handles up to 4096 characters per request, making it easy to integrate into existing dyslexia support tools without complex setup.

Can I use the API for commercial projects?

Yes. You pay $0.01 per 1,000 characters with no minimum spend or monthly plans. Voices are based on licensed recordings (LibriTTS-R) and public-domain audiobook readings. There are no enterprise contracts or usage restrictions beyond the standard rate limits and character pricing.

How accurate is the speech synthesis?

The engine uses licensed recordings from LibriTTS-R, from LibriVox public-domain audiobook readings. It supports 23 languages, guessing the language from script if not specified. You can explicitly set the language code for accuracy. Voices include clear narrators like Aria and calm instructors like Sage, ensuring consistent, high-quality output for professional use.

Does the API support multiple speakers?

Yes. You can choose from eight distinct voices: Aria, Nova, Luna, Sage, Felix, Milo, Atlas, and Orion. Each voice has a unique tone, from warm narrators to deep documentary styles. You select the voice per request, allowing you to generate audio with different speakers for varied content needs.

What is the latency of the API?

Processing is roughly real-time, generating about 25 characters per second. Short phrases take a few seconds. Requests are processed sequentially, so under load, you may experience queue delays. For long texts, split into 4096-character parts and join the resulting audio files for seamless playback.

Can I control the speed of speech?

Yes. The API accepts a speed parameter ranging from 0.25 to 4.0. This allows you to slow down audio for better comprehension or speed it up for quick reviews. Adjusting speed is done directly in the request body alongside the text, voice, and format parameters.

Is the API available 24/7?

The API is a cloud service accessible via standard HTTP requests. There is no SLA or uptime guarantee, so availability is not formally guaranteed. Support is available via email only. You can monitor usage and status through your account dashboard to ensure consistent delivery for your workflows.

Do I need a developer to use the API?

A developer is helpful but not strictly required. The endpoint matches the OpenAI speech format, so existing OpenAI SDKs work by changing the base URL. You can also use plain HTTP or tools like cURL. The /get-api-key/ page provides ready-to-use examples to help you get started quickly.

Can I use the API on mobile devices?

Yes. Since the API uses standard HTTP requests, it works on any device capable of making web requests. You can integrate it into mobile apps or use it via mobile browsers. There is no dedicated mobile SDK, but the standard JSON format ensures broad compatibility across platforms.

Does the API store my text data?

No. Input text is used only to produce the audio and is not used for training. Generated audio is returned in the response and not stored. Request metadata (time, characters, status) is kept for billing purposes. Your content remains private and is not retained after synthesis.

What happens if I exceed the rate limit?

The limit is 60 requests per minute per key (10 before top-up). Exceeding this may result in delayed processing or errors. Failed requests are free, so you are not charged for errors. You can monitor your usage in the dashboard and issue a new key if needed.

Can I use the API for podcasts?

Yes. The API generates high-quality audio files in formats like MP3, WAV, or FLAC. You can select voices like Felix for energetic promo content or Orion for deep documentary styles. Simply split long scripts into 4096-character chunks and join the audio files for seamless podcast production.

Is the audio copyright-free?

The voices are based on licensed recordings (LibriTTS-R, CC BY 4.0) and public-domain readings. Generated files carry an inaudible watermark marking them as synthetic.

How do I troubleshoot API errors?

Check your authentication key and request format. Ensure text is under 4096 characters and speed is between 0.25 and 4.0. Failed requests are free. For support, contact us via email. Use the /docs/ page for detailed parameter explanations and cURL examples to verify your integration.

Definition

Sound wave illustration for: Definition

A text-to-speech API is a cloud service that converts written text into audio files. It automates speech synthesis, allowing teams to process large volumes of content without manual recording. This engine-driven approach ensures consistent output for accessibility workflows and dyslexia support across large organizations.

Cloud API for text conversion

The service operates as a standard cloud API. Teams send text data to a remote endpoint and receive synthesized audio. This model removes the need for local infrastructure, enabling scalable processing for accessibility initiatives and content generation without managing hardware.

Send text, receive audio

The workflow is simple: input text and receive an audio file. Users send a POST request with the text payload. The system processes the request and returns the audio in formats like mp3, wav, opus, flac, or pcm. This direct exchange supports efficient integration into existing digital platforms.

Automated speech synthesis

Synthesis is fully automated. The engine uses licensed voice presets to generate speech without human intervention. Each file includes an inaudible watermark marking it as synthetic. This consistency is critical for large teams managing high-volume accessibility content, ensuring uniform audio quality across all generated materials.

How It Works

Sound wave illustration for: How It Works

The API accepts text via a standard POST request to the speech endpoint, formatted as a JSON body containing the model, input string, voice, and format parameters. This structure aligns with common SDK expectations, allowing teams to integrate synthesis directly into existing accessibility pipelines without custom adapters.

POST request with JSON

Send your text payload to POST https://api.jjj2.info/v1/audio/speech with a Bearer token. The request body specifies the model (tts-1 or tts-1-hd), the text input (up to 4096 characters), the desired voice preset, and the output format (mp3, wav, opus, flac, or pcm). Optional fields like speed (0.25–4.0) and language allow precise control over the synthesis parameters.

Engine generates audio

Upon receiving the request, the server processes the text through our synthesis engine. The engine converts the characters into audio waves, respecting the specified voice and speed settings. Requests are processed one after another, so under load a request may wait in a queue. Typical generation speed is roughly real-time (25 characters per second). Failed requests incur no charge.

Returns binary audio file

The API returns the synthesized audio as a binary file in the response body, ready for immediate playback or storage. Each file contains an inaudible watermark indicating synthetic origin. For texts exceeding 4096 characters, your client should split the input, generate segments, and join the resulting audio files to ensure complete output.

Use Cases

Sound wave illustration for: Use Cases

A text-to-speech API automates speech synthesis, converting written text into audio files via cloud endpoints. Teams send text input and receive generated audio, enabling scalable audio production without manual recording.

Accessibility for dyslexia

Text-to-speech APIs support dyslexia workflows by converting large documents into audible format instantly. This allows users to consume written content without visual strain, improving comprehension and retention for diverse reading profiles.

Audio content generation

Generate consistent voiceovers for training materials, e-learning modules, or internal communications. The API handles up to 4096 characters per request, ensuring standardized audio output across all generated content.

Large team workflows

Engineering teams integrate the API into existing pipelines using standard HTTP requests. The dashboard tracks character consumption, while instant key rotation ensures secure access for multiple developers without service interruption.

Voice Selection

Sound wave illustration for: Voice Selection

Our API provides eight distinct voice presets engineered for clarity and consistency. Each voice is selected for clarity and consistency.

8 distinct voice presets

We offer eight specific voices: Aria, Nova, Luna, and Sage for female tones; Felix, Milo, Atlas, and Orion for male tones. These are not generic samples but licensed recordings from LibriVox, providing a stable baseline for your TTS integration.

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

The selection covers a spectrum from neutral news delivery to energetic promotions. Teams can choose a tone that matches their content’s intent without needing to adjust parameters for every request.

Consistent voice output

Each voice delivers consistent synthesis across all 23 supported languages. Since voices are based on licensed recordings, the output remains uniform regardless of the input language, simplifying quality control for large teams.

Language Handling

Sound wave illustration for: Language Handling

The API supports 23 languages, enabling consistent audio synthesis across diverse linguistic workflows. This coverage ensures that large accessibility teams can generate content for a broad user base without needing separate language-specific models or infrastructure adjustments.

Accurate language handling is critical for proper pronunciation and prosody. The system provides both automatic detection and explicit overrides, giving engineering teams precise control over how text is converted into speech.

For teams managing dyslexia support or accessibility tools, knowing exactly which language model processes the input prevents mispronunciations that could hinder comprehension. The API’s approach minimizes configuration errors while maintaining high output quality.

23 supported languages

The service supports Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. Any voice can speak any of these languages, ensuring consistent quality regardless of the target audience.

This range covers the primary languages needed for most international accessibility and educational workflows. Teams do not need to manage multiple voice providers or deal with inconsistent quality across different language modules.

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

Auto-detection from script

If the language field is not set, the API guesses the language from the script. Latin script text defaults to English. This simplifies integration for teams where the input language is consistently English or easily identifiable.

Auto-detection reduces the need for additional configuration in standard workflows. However, it relies on visible script cues, so it may not always be accurate for mixed-language content.

For non-English Latin-script text, you should set the language explicitly. Teams should verify the output if the input language is not obviously English.

Explicit language override

For non-English Latin-script text, you must set the language field to the correct ISO code. This ensures the engine uses the proper pronunciation rules and prosody for the target language.

Explicit overrides are essential for accurate accessibility outputs. They prevent the default English pronunciation from being applied to words like 'naïve' or 'café', ensuring clear and correct speech for users.

This control allows teams to handle mixed-language content or specific dialects accurately. It is a critical feature for maintaining high-quality audio in diverse linguistic environments.

Technical Requirements

Sound wave illustration for: Technical Requirements

The API requires a stable internet connection to transmit text payloads and receive audio responses. Requests are processed sequentially, meaning under load, synthesis may queue behind other tasks. A consistent connection ensures reliable delivery of the generated audio files without interruption.

All requests use JSON bodies with standard fields like model, input, and voice. The endpoint expects specific character limits and format options. Properly structured JSON ensures the engine can parse instructions accurately and return binary audio data without errors.

Internet connection required

A stable internet connection is necessary to send text and receive audio. Requests are processed sequentially, so under load, synthesis may queue. Consistent connectivity ensures reliable delivery of generated audio files without interruption or timeout errors.

  • Stable connection required for transmission
  • Sequential processing may cause queuing
  • Reliable delivery of audio files

JSON format for requests

Requests use JSON bodies with fields like model, input, and voice. The endpoint expects specific character limits (max 4096) and format options. Properly structured JSON ensures the engine parses instructions accurately and returns binary audio data without errors.

You can use the OpenAI SDK by changing the base_url to https://api.jjj2.info/v1. This allows teams to leverage existing codebases with minimal adjustments, ensuring compatibility with standard TTS workflows.

  • JSON body with model, input, voice
  • Max 4096 characters per request
  • Compatible with OpenAI SDK

Bearer token authentication

Authentication uses a Bearer token in the Authorization header. Each account holds one active key; issuing a new key immediately invalidates the old one. This ensures secure access to synthesis resources without complex credential management.

Keys are issued per site, so teams managing accessibility workflows can rotate keys instantly if needed. The dashboard displays the key, balance, trial, characters left, usage and a ready curl example.

  • Authorization: Bearer <key>
  • One active key per account
  • Instant invalidation on rotation

Data Flow

Sound wave illustration for: Data Flow

The data flow begins when your client application sends a POST request to the endpoint with a JSON body containing the input text, voice selection, and optional parameters like language or speed. The input text is transmitted directly to our cloud infrastructure for processing.

Once the request reaches the server, the TTS engine synthesizes the audio using the specified model and voice presets. The resulting binary audio file is then returned in the HTTP response, allowing your system to immediately play or store the generated speech.

Input text sent to API

Your application constructs a JSON payload with the text to convert, up to 4096 characters per request. This payload is sent via HTTPS to the API endpoint, authenticated with your Bearer token.

The API validates the request structure and character count before passing the text to the synthesis engine. Only the text needed for audio generation is processed; it is not stored for training purposes.

  • JSON payload with text and parameters
  • HTTPS POST to /v1/audio/speech
  • Validates character limit (4096 chars)
  • No text storage for training

Audio generated on server

The server processes the text using the selected model (tts-1 or tts-1-hd) and voice preset. The synthesis engine converts the text into audio samples, applying the specified speed and format settings.

The audio is generated in the requested format (mp3, wav, opus, flac, or pcm). The process typically takes time proportional to the text length, roughly 25 characters per second for long texts.

  • Uses tts-1 or tts-1-hd model
  • Applies voice preset and speed
  • Generates in requested format
  • Processing time varies with text length

Audio returned to client

The generated audio file is returned in the HTTP response body as binary data. Your client can then save this file or stream it for playback.

The response includes the audio file. If synthesis fails, the response indicates the error without charging the account.

  • Binary audio in response body
  • Supports mp3, wav, opus, flac, pcm
  • Returns usage metadata
  • Failed requests return zero charge
Data Flow

Limitations

Sound wave illustration for: Limitations

The API enforces a strict 4096-character limit per request. For longer texts, your system must split the input into chunks and join the resulting audio files. This ensures consistent synthesis quality but requires basic client-side logic to handle concatenation.

Unlike human reading, the service does not stream audio in real-time. You receive the complete file after processing. Under load, requests may queue, so plan for slight delays during peak usage periods.

4096 character limit per request

Each API call accepts up to 4096 characters. Spaces and punctuation count toward this limit. If your text exceeds this, split it and merge the outputs.

Failed requests incur no charge, but successful synthesis consumes your character balance immediately. Ensure your client handles the splitting logic efficiently to avoid unnecessary API calls.

  • Max 4096 characters per POST request
  • Spaces and punctuation count as characters
  • Client-side chunking required for longer texts

No real-time streaming

The API returns a complete binary audio file, not a stream. You cannot play partial audio while synthesis continues. This design simplifies integration but means you cannot achieve true zero-latency playback for live text.

Processing time depends on text length and current queue load. Typical generation is roughly real-time, but short phrases may take a few seconds. Plan your UI accordingly to show loading states.

  • Returns full file, not a stream
  • No WebSocket or partial audio support
  • Processing time varies with queue load

No custom voice cloning

You cannot upload your own voice samples to create a custom clone. The API uses eight fixed presets based on licensed recordings. This ensures consistent quality and legal compliance but limits brand-specific voice customization.

All generated audio carries an inaudible watermark marking it as synthetic. This is automatic and cannot be disabled. It serves as a clear indicator of synthetic origin without affecting playback quality.

  • Eight fixed voice presets only
  • No custom voice cloning or uploading
  • Inaudible watermark added to all files

Integration

Sound wave illustration for: Integration

Integration is straightforward because the API endpoint mirrors the OpenAI speech structure. Teams can reuse existing codebases by simply changing the base URL to https://api.jjj2.info/v1 and updating the Bearer token. This allows large accessibility teams to adopt the service without rewriting their synthesis logic.

OpenAI SDK compatible

Use the official OpenAI SDK by pointing base_url to https://api.jjj2.info/v1. Pass your tts-... key as the API token. This ensures consistent behavior with standard TTS clients while leveraging our engine.

Curl command ready

The /get-api-key/ dashboard provides a ready-to-use curl example. Copy the command, paste your key, and execute. This is ideal for quick validation or scripting batch conversions for dyslexia support materials.

Simple HTTP requests

Send a POST request to /v1/audio/speech with a JSON body containing model, input, voice, and response_format. The server returns the audio file directly. No complex authentication flows or custom headers are required beyond the Bearer token.

Billing Impact

Sound wave illustration for: Billing Impact

Cost is strictly proportional to input length, charged at $0.01 per 1,000 characters, including spaces and punctuation. Long texts process at roughly real-time speeds (25 characters per second), making character counting a reliable predictor of expense.

Cost per character

Each request consumes credits based on the exact character count of the input field. For large accessibility workflows, splitting texts into 4096-character chunks allows for predictable billing and easier error handling without unexpected overages.

Failed requests are free

If synthesis fails due to server errors or invalid parameters, the charge is returned in full. This ensures that retries or debugging cycles do not inflate your monthly API costs, protecting your budget during integration testing.

USDT payment only

Tops-up are processed exclusively via USDT on the TRON network (TRC-20), with a $5 minimum. There are no credit card fees, no VAT invoices, and no monthly subscriptions. Balance never expires, allowing teams to top up only when needed.

Audio Quality

Sound wave illustration for: Audio Quality

The API returns audio files in standard formats such as mp3, wav, opus, flac, or pcm. These formats ensure compatibility with most accessibility tools and media players used in dyslexia support workflows.

Inaudible watermark

Every generated file carries an inaudible watermark that marks it as synthetic speech. This allows for easy identification of AI-generated content without affecting playback quality or comprehension for end users.

Synthetic speech detection

The presence of the watermark enables downstream systems to verify that the audio was produced by the API rather than recorded by a human. This is useful for auditing large accessibility datasets.

Standard audio formats

Users can select the output format via the response_format field. Common choices include mp3 for efficient storage, wav for high-fidelity playback, and opus for low-bandwidth transmission.

Formats like flac and pcm are also available for specialized engineering pipelines requiring lossless or raw audio data.

  • mp3, wav, opus, flac, pcm

Team Usage

Sound wave illustration for: Team Usage

A single API key serves your entire organization, simplifying access control and billing. All usage metrics are aggregated under one account.

One key per account

Unlike enterprise models requiring multiple seats, our structure uses one active key per account. This eliminates per-seat overhead and keeps integration simple for large teams managing accessibility workflows or bulk audio generation.

Shared usage dashboard

The dashboard displays total characters used, remaining balance, and key status. Team members share this single resource, allowing centralized monitoring of API consumption and ensuring consistent budget visibility across all departments.

Instant key rotation

If a key is compromised or you wish to reset access, issuing a new key instantly invalidates the old one. There is no waiting period, ensuring immediate security updates without disrupting ongoing synthesis jobs.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Uniform voice characteristics across requests ensure a predictable listening experience.

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. OpenAI API reference: create speech
  3. ISO 639 language codes
  4. W3C WAI: making audio and video accessible
  5. openai-python on GitHub
  6. Node.js documentation
  7. Creative Commons Attribution 4.0
  8. Python documentation
  9. LibriVox public-domain audiobooks
  10. MDN: Web Speech API
  11. Tether (USDT)
  12. FFmpeg documentation

More on this site