Cloud TTS API: Reliable Audio for Accessible Publishing

By LexiFlow Team · Updated 2026-11-19

This page explains how LexiFlow’s Cloud TTS API replaces unreliable browser-based speech synthesis for accessible publishing. We address the limitations of Mozilla Web Speech and similar web APIs, such as inconsistent voice quality and offline dependency, which hinder comprehension for dyslexic readers. By moving audio generation to a cloud endpoint, publishers ensure consistent audio delivery across all devices and contexts.

Designed for publishers managing large text catalogs, this API provides precise, compliant audio conversion. You receive stable, high-quality voice outputs via a simple REST endpoint compatible with standard SDKs. This solution bridges the gap between browser limitations and cloud audio generation, ensuring consistent narration regardless of their device or network conditions.

Cloud TTS API: Reliable Audio for Accessible Publishing

Frequently asked questions

How does Mozilla's Web Speech API differ from a cloud API?

Mozilla’s Web Speech API runs locally in the browser, limiting quality and requiring constant internet for online voices. Our cloud API delivers audio files via a standard HTTP endpoint. This ensures reliable playback across all devices and allows you to store generated audio for offline accessibility workflows without relying on the user’s device capabilities.

Is the cloud TTS API suitable for offline reading apps?

Yes. The API returns standard audio files (mp3, wav, opus, flac, pcm) that you can cache locally. Since the audio is generated server-side, it does not depend on the user’s browser supporting specific speech engines. This allows your offline reading app to deliver consistent audio to readers regardless of their device’s native speech capabilities.

Which voices are best for dyslexic readers?

For accessibility, clear articulation is key. Aria (warm, clear narrator) and Luna (soft, storytelling) are often preferred for long-form reading. Sage (calm, instructional) is also suitable for educational content. You can adjust the speed between 0.25 and 4.0 to accommodate individual reading paces, ensuring the audio remains comprehensible and reduces cognitive load for dyslexic users.

Does the API support multiple languages simultaneously?

The API supports 23 languages, including English, Spanish, German, French, and Japanese. You can specify the language via the language parameter. If not set, the system guesses the language from the script, defaulting to English for Latin text. Each request processes one language; you must manage multi-language content by sending separate requests for each language segment.

What happens if the API request fails?

If synthesis fails, the charge is returned in full. You are not billed for failed requests. This ensures that your budget is only consumed by successful audio generation. You should implement retry logic in your workflow to handle transient errors, as the API processes requests sequentially and may queue them under load.

Can I use the API for audiobook generation?

Yes. The API supports texts up to 4096 characters per request. For longer audiobooks, you can split the text into parts, generate each segment, and join the audio files. The voices are based on licensed recordings from LibriVox, making them suitable for public domain audiobook distribution, provided you comply with the CC BY 4.0 license terms.

Is there a limit on characters per request?

Yes, each request accepts up to 4096 characters of input text. Spaces and punctuation count toward this limit. For longer texts, you must split the content into chunks of 4096 characters or less, generate audio for each chunk, and concatenate the resulting audio files to create a complete audio file for your readers.

Do I need to pay for voice licensing?

The voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and LibriVox public-domain readings. The API pricing covers the processing and delivery of the audio. You do not pay extra per voice or per generation for licensing fees. However, you must ensure your final use case complies with the underlying CC BY 4.0 attribution requirements if applicable.

How is the language detected if not specified?

If the language parameter is omitted, the system guesses the language from the script. For text in Latin script, it defaults to English. For non-English Latin-script text, you should explicitly set the language parameter to ensure accurate pronunciation. The API supports 23 languages, so specifying the correct code prevents mispronunciation of proper nouns or mixed-language content.

Are the voices synthetic or human-recorded?

The voices are based on licensed human recordings from LibriVox and LibriTTS-R. However, every generated file carries an inaudible watermark that marks it as synthetic speech. This distinguishes AI-generated audio from direct human recordings, which is important for transparency in accessibility workflows where readers need to know the source of the audio content.

What audio formats are supported?

The API supports mp3, wav, opus, flac, and pcm formats. You can specify the desired format using the response_format parameter. MP3 and Opus are efficient for web delivery, while WAV and FLAC offer lossless quality. PCM is available for raw audio processing. Choose the format that best fits your storage and playback requirements for accessible content.

Is there a free trial available?

Yes, signing in with Google provides $0.50 of credit, valid for 7 days, which covers about 50,000 characters. Accounts created with email and password do not receive trial credit. You can test the API with this credit before committing to a top-up. The credit is deducted from your balance upon successful generation.

How long does audio generation take?

Generation speed is roughly real-time for long texts, averaging 25 characters per second. Short phrases may take a few seconds. Requests are processed sequentially, so under load, your request may wait in a queue. For time-sensitive applications, consider pre-generating audio for static content or accounting for potential queue delays in your workflow.

Can I store the generated audio files?

The API returns the audio file in the response but does not store it on our servers. You are responsible for storing the generated audio files in your own infrastructure. Request metadata (time, characters, status) is kept for billing purposes. You can cache these files for offline access, ensuring consistent playback for your readers across sessions.

First request

curl

curl https://api.ar777.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

The Accessibility Gap in Browser Audio

Sound wave illustration for: The Accessibility Gap in Browser Audio

Browser-based speech synthesis relies on the user’s device environment, creating inconsistent accessibility experiences across different readers. Offline access is limited by browser availability, while voice quality variance directly impacts comprehension for dyslexic users who require consistent auditory cues.

The Mozilla Web Speech API introduces additional constraints, including limited voice control and lack of deterministic output generation. These limitations hinder publishers from delivering a uniform reading experience essential for accessible content distribution.

Browser dependency limits offline access

Browser dependency limits offline access

Browser-dependent TTS requires an active internet connection and compatible engine, restricting offline reading scenarios. Publishers cannot guarantee audio availability if the user’s browser lacks support or if connectivity drops during playback.

  • Requires active browser environment
  • No guaranteed offline playback
  • Dependent on device capabilities

Voice quality variance affects comprehension

Inconsistent voice synthesis across browsers leads to varying clarity, pitch, and pacing. Dyslexic readers often rely on specific auditory patterns to aid decoding, making standardized audio critical for comprehension accuracy.

Mozilla Web Speech API constraints

The Mozilla Web Speech API offers limited control over voice parameters and lacks deterministic output. This variability makes it difficult for publishers to ensure consistent accessibility standards across their digital platforms.

Cloud TTS for Consistent Reader Experience

Sound wave illustration for: Cloud TTS for Consistent Reader Experience

Browser-based speech synthesis relies on client-side engines that vary by operating system and device, creating inconsistent reader experiences. Our cloud API ensures deterministic audio generation, delivering identical output for identical inputs regardless of the user's browser. This consistency is critical for dyslexic readers who rely on predictable pacing and tone to maintain comprehension during long-form content consumption.

Deterministic audio generation

Unlike variable browser engines, our API processes requests sequentially with predictable latency. Text is converted to audio files with precise control over speed (0.25–4.0) and format, ensuring that the auditory experience remains stable across all devices. This reliability eliminates the distraction of shifting voice qualities, allowing readers to focus entirely on the content.

8 distinct voice presets

We provide eight distinct voice presets derived from licensed LibriTTS-R recordings, offering clear, professional tones suitable for accessibility workflows. Voices like Aria provide a warm, clear narration ideal for standard publishing, while Sage offers a calm, instructional tone perfect for educational materials. Each voice is optimized for clarity, reducing cognitive load for readers with dyslexia.

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

Support for 23 languages

The API supports 23 languages, including English, Spanish, German, and French, allowing publishers to reach diverse audiences with consistent quality. Any voice can speak any supported language, and the system automatically guesses the language from the script if not specified. This broad support ensures that accessibility extends beyond English-only markets.

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

Voice Selection for Dyslexic Readers

Sound wave illustration for: Voice Selection for Dyslexic Readers

Selecting the correct voice profile is critical for readers with dyslexia, who often benefit from consistent, predictable speech patterns. Our API provides eight distinct presets designed to reduce cognitive load and improve comprehension during audio consumption.

Clear narrator voices (Aria, Sage)

Aria offers a warm, clear narration style ideal for standard literary content. Sage provides a calm, instructional tone that helps guide readers through complex texts without unnecessary emotional inflection.

Calm instructional tones

Luna’s soft storytelling and Nova’s bright, upbeat delivery allow publishers to match the audio to the content’s intensity. These options help maintain reader engagement without causing auditory fatigue during long sessions.

Neutral news-style delivery

Atlas delivers a neutral, news-style voice suitable for factual reporting. Orion provides a deep, documentary tone for serious subjects. Both ensure clarity and neutrality, preventing voice characteristics from distracting the reader.

Technical Infrastructure

Sound wave illustration for: Technical Infrastructure

The API exposes a standard REST endpoint at https://api.ar777.cc/v1/audio/speech for synchronous audio generation. Publishers integrate this endpoint directly into their content management systems to convert text articles into audio files on demand, ensuring consistent delivery without relying on client-side browser capabilities.

REST API integration

Integration requires a simple HTTP POST request with a JSON body. The service authenticates via a Bearer token, allowing seamless connection to existing publishing pipelines. This method ensures that audio generation occurs server-side, providing reliable performance regardless of the end-user's device or browser version.

  • Endpoint: POST /v1/audio/speech
  • Authentication: Authorization: Bearer <key>
  • Method: Standard HTTP POST

OpenAI SDK compatibility

The request structure mirrors the OpenAI speech endpoint, enabling direct use of official OpenAI SDKs. Developers only need to adjust the base_url to https://api.ar777.cc/v1. This compatibility reduces implementation time for teams already familiar with OpenAI’s interface, allowing for rapid deployment in accessible reading workflows.

  • Compatible with official OpenAI SDKs
  • Adjust base_url to api.ar777.cc/v1
  • Identical request shape

JSON request structure

Requests utilize a JSON payload containing the input text, model selection, voice preset, and optional parameters like speed and response_format. The API processes the text up to 4096 characters per request, returning the generated audio file directly in the response. This structured approach simplifies error handling and data parsing for developers.

The language field allows explicit specification of the ISO code, preventing automatic detection errors for non-English Latin text. This precision ensures that the correct voice preset is applied to each language variant, maintaining audio quality across diverse content types.

Audio Formats and Standards

Sound wave illustration for: Audio Formats and Standards

The API supports multiple audio formats to meet varying accessibility standards. MP3 provides universal compatibility for web players, while WAV provides uncompressed audio for archival needs. FLAC and Opus offer efficient compression.

These options allow publishers to balance file size and sound clarity. Each format is generated via the same engine, ensuring consistent output quality across all delivery methods.

MP3 compatibility

MP3 is the default format for broad browser support. It ensures reliable playback across legacy and modern assistive technologies used by dyslexic readers.

The format is widely supported by screen readers and text-to-speech tools, reducing friction in user workflows.

  • Universal browser support
  • Small file size
  • Standard accessibility compliance

WAV lossless quality

WAV provides uncompressed audio. This is ideal for high-fidelity archival storage.

Uncompressed audio ensures no degradation occurs during storage or subsequent processing by downstream accessibility tools.

  • Uncompressed audio
  • Perfect fidelity
  • Archival standard

FLAC and Opus options

FLAC offers lossless compression for smaller storage. Opus provides high-quality audio at lower bitrates.

These formats are suitable for bandwidth-constrained environments or mobile accessibility applications where efficient delivery is critical.

  • Efficient compression
  • Low bandwidth usage
  • High quality retention
Audio Formats and Standards

Language Support Scope

Sound wave illustration for: Language Support Scope

Browser-based TTS engines often default to English for Latin-script text, causing comprehension errors for non-English publishers. Our API allows explicit language specification, ensuring accurate pronunciation regardless of the input script’s visual appearance. This precision is critical for accessibility workflows where mispronunciation disrupts reading flow for dyslexic users.

Latin script default behavior

By default, Latin characters are interpreted as English. If your content is in French, German, or Spanish but uses standard Latin alphabet, you must explicitly set the language field in the JSON request. Without this instruction, the engine generates English audio, which fails to meet accessibility standards for non-English readers.

Non-English language setting

Any voice can speak any of the supported 23 languages. By setting the ISO code, you ensure the synthetic speech matches the linguistic requirements of your audience. This removes the need for multiple browser-dependent engine configurations, providing a consistent experience across all devices.

Supported and excluded languages

The API 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. Publishers targeting audiences in Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, or Bengali should note these are not supported.

  • Supported: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish.
  • Excluded: Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali, and all others.

Pricing Structure

Sound wave illustration for: Pricing Structure

The API charges $0.01 per 1,000 characters, including spaces and punctuation. A free trial provides $0.50 credit (approximately 50,000 characters) for 7 days when signing in with Google. Accounts created via email do not receive this trial credit.

Per-character billing

Costs are calculated based on the exact character count of the input text. This model ensures predictable expenses for publishing workflows, with no hidden fees for longer articles or multiple voice generations.

  • $10 per 1 million characters ($0.01 per 1,000 characters)

Failed request credit

If synthesis fails, the charge is returned in full. This ensures you only pay for successfully generated audio files, reducing risk during integration testing or high-volume processing.

No monthly subscriptions

There are no monthly plans, seats, or minimum spend requirements. You can top up via USDT (TRC-20) with a minimum of $5. Balance does not expire.

Data Privacy and Storage

Sound wave illustration for: Data Privacy and Storage

Our API processes input text exclusively for the purpose of generating the requested audio file. We do not repurpose your published content for training our neural models, ensuring that your intellectual property remains distinct from our algorithmic development.

Input text usage policy

The text sent to the endpoint is used solely to produce the audio output and is not retained for model training. This ensures that your specific publishing content remains private and is not used to improve our voice synthesis engines.

Audio file retention

Generated audio files are returned directly in the API response and are not stored on our servers after delivery. You retain full control over the archival and distribution of your audio assets.

Metadata logging

We retain request metadata, including timestamp, character count, and status, strictly for billing and usage verification purposes. This data supports accurate invoicing and does not contain the content of your published text.

  • Timestamp of request
  • Character count processed
  • Request status (success/failure)

Implementation Timeline

Sound wave illustration for: Implementation Timeline

Integration begins by obtaining an API key via the /get-api-key/ dashboard. Developers configure their OpenAI SDK or HTTP client to point at the base URL, enabling immediate deployment of audio synthesis into existing publishing pipelines.

The REST API accepts standard JSON payloads, allowing seamless integration with content management systems. Developers can begin generating audio for accessibility workflows within hours of account creation, with no custom SDK required.

Quick integration steps

Obtain your API key from the dashboard. Update the base URL in your preferred HTTP library or SDK. Send a POST request to /v1/audio/speech with the desired text and voice parameters.

  • Configure base_url to https://api.ar777.cc/v1
  • Use standard Bearer token authentication
  • Send JSON body with model, input, and voice

Developer resources

Full documentation is available at /docs/. The API mirrors the OpenAI speech endpoint structure, allowing direct use of official SDKs with a simple base URL change. Ready-to-use cURL examples are provided in the dashboard.

Support channels

Technical support is available exclusively via email. There is no live chat or phone support. Response times depend on volume.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. This energy helps prevent listener fatigue during repetitive ad rotations.

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. Creative Commons Attribution 4.0
  4. W3C WAI: making audio and video accessible
  5. MDN: Web Speech API
  6. IETF RFC 7845: Ogg Opus
  7. Tether (USDT)
  8. openai-node on GitHub
  9. openai-python on GitHub
  10. Node.js documentation
  11. LibriTTS-R paper (arXiv 2305.18802)
  12. TRON developer hub: TRC-20

More on this site