Text to Speech for Reading: API Integration Guide for Mobile Teams

By VoxaFlow editorial team · Updated 2026-11-18

This guide helps mobile product teams integrate natural speech synthesis directly into their apps. You will find concrete steps for connecting the VoxaFlow REST API, managing audio generation, and handling character limits without managing infrastructure.

The page covers practical integration details for iOS and Android developers, including supported languages, voice presets, and audio formats. You will also see how to use the OpenAI SDK with our endpoint, manage API keys, and understand the per-character pricing model.

Text to Speech for Reading: API Integration Guide for Mobile Teams

Frequently asked questions

What is VoxaFlow?

VoxaFlow is a cloud text-to-speech API designed for mobile applications. You send text via a POST request and receive an audio file. It uses the same request shape as the OpenAI speech endpoint, allowing product teams to integrate high-quality voice features without managing infrastructure.

Which languages are supported?

We support 23 languages: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. Any voice can speak any of these languages. If the language is not set, it is guessed from the script, defaulting to English for Latin text.

How many voices are available?

There are 8 voice presets available. Female voices include Aria, Nova, Luna, and Sage. Male voices include Felix, Milo, Atlas, and Orion. These voices are based on licensed recordings from LibriTTS-R and LibriVox public-domain audiobook readings. Each generated file carries an inaudible watermark marking it as synthetic speech.

What audio formats can I receive?

You can receive audio in mp3, wav, opus, flac, or pcm formats. Specify the desired format in the response_format field of your request. These options allow you to choose the best balance between file size and quality for your mobile application's specific requirements and bandwidth constraints.

How is pricing calculated?

Pricing is $10 per 1 million characters, which equals $0.01 per 1,000 characters. Spaces and punctuation count as characters. Failed requests are free, with the charge returned in full if synthesis fails. There are no monthly plans, seats, or minimum spend requirements, and your balance does not expire.

Is there a free trial?

Yes, signing in with Google provides $0.50 of credit, valid for 7 days. This covers approximately 50,000 characters. Accounts created with an email and password start without trial credit. You can top up your balance using USDT on the TRON network (TRC-20) with a minimum of $5.

Can I use the OpenAI SDK?

Yes, the API uses the same request shape as the OpenAI speech endpoint. You can use the official OpenAI SDKs by changing the base_url to https://api.xx66ok.com/v1 and using your site's key. We do not provide an official SDK of our own, so standard HTTP requests also work perfectly.

How fast is the synthesis?

Typical speed is roughly real time on long texts, generating about 25 characters of text per second of audio. Short phrases may take a few seconds. Requests are processed sequentially, so under load, a request may wait in a queue. Rate limits are 60 requests per minute per key.

Is my text used for training?

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. We keep request metadata, such as time, characters, and status, strictly for billing purposes. Your data privacy is maintained without unnecessary retention.

Do you store generated audio?

Generated audio is returned in the response and is not stored by our servers. Only request metadata (time, characters, status) is kept for billing purposes. This ensures that your specific audio outputs are transient and do not accumulate in our storage, reducing potential data exposure for your users.

What happens if a request fails?

If synthesis fails, the charge is returned in full. You are not billed for failed requests. This ensures you only pay for successful audio generation. You can retry the request or split your text into smaller parts if you encounter issues, as there is no penalty for failed attempts.

How do I top up my balance?

Top up using USDT on the TRON network (TRC-20). The minimum top-up amount is $5. Credits are automatically added within minutes after the transfer is confirmed. We do not accept cards, PayPal, or subscriptions. There are no invoices with VAT, and the balance never expires.

What is the character limit?

Each request supports up to 4,096 characters in the input field. For longer texts, you should split them into parts of this size and join the resulting audio files. This limit applies per request, ensuring consistent processing times and manageable payload sizes for your mobile application's API calls.

How do I contact support?

Support is available by email only. We do not offer a phone number, live chat, or SLA. You can find contact details on our /contact/ page. Since we are an independent storefront, our support team handles inquiries via email, providing practical assistance for your integration needs.

First request

curl

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

Why Mobile Teams Choose VoxaFlow

Sound wave illustration for: Why Mobile Teams Choose VoxaFlow

VoxaFlow delivers a straightforward REST API designed for mobile product teams who need reliable speech synthesis without operational overhead. By sending text via standard HTTP requests, your app receives audio files ready for playback.

The pricing model is strictly pay-per-character at $0.01 per 1,000 characters, with failed requests refunded immediately. This transparency eliminates surprise costs and simplifies budget forecasting for variable usage patterns.

Simple REST API

Integration requires only a POST request to /v1/audio/speech. You can use the official OpenAI SDKs by adjusting the base URL, or send plain HTTP requests with a Bearer token. This compatibility reduces the learning curve for existing mobile developers.

The endpoint accepts JSON bodies with fields for model, input text, voice selection, response format, and speed. This structure mirrors industry standards, making documentation familiar and implementation quick.

  • Standard HTTP POST endpoint
  • Compatible with OpenAI SDKs
  • JSON request body
  • No proprietary client libraries required

Predictable Pricing

Costs are calculated per character, including spaces and punctuation, at a flat rate of $10 per million characters. There are no monthly plans, seats, or minimum spend requirements.

A free trial provides $0.50 credit (approx. 50,000 characters) valid for 7 days when signing in with Google. This allows immediate testing without financial commitment.

  • $0.01 per 1,000 characters
  • No monthly subscriptions
  • Refunds for failed requests
  • Transparent character counting

No Infrastructure Management

VoxaFlow handles all server-side processing, eliminating the need for your team to manage voice servers or scale infrastructure for traffic spikes. You simply integrate the API and focus on app features.

Audio generation typically takes roughly 25 characters per second for long texts. Requests are processed sequentially, so heavy loads may enter a queue, but the service remains fully managed for you.

  • Fully cloud-managed
  • Automatic scaling
  • No server maintenance
  • Focus on app development

Supported Languages and Voices

Sound wave illustration for: Supported Languages and Voices

VoxaFlow supports 23 languages, including English, Spanish, Japanese, and Arabic. Any voice can speak any supported language, with automatic detection for Latin-script defaults to English.

23 Languages Supported

The API covers major global markets with full voice coverage for 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 the language parameter is omitted, the system guesses the script, defaulting to English for Latin text.

  • Full coverage across 23 distinct languages
  • Automatic language detection for Latin scripts
  • Explicit language code recommended for non-English Latin text

8 Distinct Voice Presets

Choose from eight licensed presets derived from LibriTTS-R and LibriVox public-domain recordings. Options include female voices like Aria (warm narrator) and Nova (bright), or male voices like Felix (energetic) and Atlas (neutral news).

  • Female: Aria, Nova, Luna, Sage
  • Male: Felix, Milo, Atlas, Orion

Natural Speech Synthesis

Generated audio files contain an inaudible watermark marking them as synthetic speech. This ensures transparency for mobile app users without affecting the listening experience.

Supported Languages and Voices

Audio Formats and Compatibility

Sound wave illustration for: Audio Formats and Compatibility

VoxaFlow outputs audio in MP3, WAV, OPUS, FLAC, and PCM formats, ensuring compatibility with diverse mobile app architectures. These standard formats allow seamless integration into existing media pipelines without requiring complex conversion steps.

The API mimics the OpenAI speech endpoint shape, enabling teams to use official OpenAI SDKs by simply adjusting the base URL. This reduces integration friction for mobile developers already familiar with standard TTS workflows.

MP3, WAV, OPUS, FLAC, PCM

Choose the format that best balances file size and quality for your app’s bandwidth constraints. MP3 and OPUS offer efficient compression, while WAV and FLAC provide uncompressed clarity for local playback.

PCM is available for raw audio processing needs. Each format is generated directly from the synthesis engine, ensuring consistent audio fidelity regardless of the selected output type.

  • MP3 for general streaming
  • WAV for high-quality local storage
  • OPUS for efficient bandwidth usage
  • FLAC for lossless archival
  • PCM for raw data processing

OpenAI SDK Compatibility

Leverage existing OpenAI SDKs by pointing them to https://api.xx66ok.com/v1. This allows mobile teams to reuse familiar code structures and authentication methods without learning a new proprietary client.

The request body structure matches the OpenAI standard, supporting the same fields for model, voice, and speed adjustments. This similarity simplifies migration or A/B testing between different TTS providers.

Standard HTTP Requests

All requests are standard POST calls to /v1/audio/speech, making them easy to implement in any mobile programming language. Authentication is handled via a simple Bearer token in the header.

No custom SDK of our own is required. Developers can use standard HTTP libraries to send JSON bodies and receive binary audio responses, ensuring broad compatibility across iOS, Android, and cross-platform frameworks.

Performance and Speed

Sound wave illustration for: Performance and Speed

VoxaFlow generates audio at roughly real-time speed, processing approximately 25 characters of text per second for long passages. Short phrases typically require a few seconds to synthesize. This predictable latency allows mobile teams to estimate buffering times accurately without managing complex streaming infrastructure or WebSocket connections.

Requests are processed sequentially. Under high load, a request may wait in a queue before synthesis begins. This ensures consistent delivery and prevents resource contention, though it means generation time can increase during peak usage periods. Teams should account for potential queue delays when designing user flows for time-sensitive features.

Real-Time Generation

Long texts generate at approximately real-time speed, producing about 25 characters of text per second of audio. Short phrases take a few seconds to complete. This consistent pace helps developers predict audio buffer requirements for playback interfaces.

  • Roughly 25 characters generated per second for long texts
  • Short phrases require a few seconds to process
  • Consistent generation speed simplifies UI buffering logic

Queue Processing

Requests are processed one after another. Under load, a request may wait in a queue before synthesis begins. This sequential processing ensures stable performance but means generation times can extend during peak usage periods.

  • Requests are processed sequentially
  • Queuing may occur under high load
  • No real-time partial audio streaming

Character Limits

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

  • Maximum 4096 characters per request
  • Split longer texts into multiple requests
  • Spaces and punctuation count as characters

Developer Experience

Sound wave illustration for: Developer Experience

VoxaFlow streamlines integration by allowing you to manage API keys directly through your dashboard. You can issue a new key at any time, ensuring the previous one stops immediately. This simple mechanism reduces the risk of leaked credentials without requiring complex rotation logic in your mobile app's backend.

Easy Key Management

Each account holds one active key, visible on the /get-api-key/ page alongside usage stats. Generating a new key invalidates the old one instantly, simplifying security audits and team handoffs.

  • Single active key per account
  • Instant invalidation on new issuance
  • Visible usage and balance metrics

Clear Error Codes

API responses include standard HTTP status codes and specific error messages for issues like rate limits or invalid input. This clarity helps your development team quickly diagnose and resolve integration hiccups without guesswork.

No Custom SDK Needed

You can use the official OpenAI SDKs by simply changing the base_url to https://api.xx66ok.com/v1. This leverages existing libraries you already know, avoiding the need to learn a new proprietary client or manage additional dependencies.

Developer Experience

Pricing Model

Sound wave illustration for: Pricing Model

VoxaFlow charges $10 per 1 million characters, equating to $0.01 per 1,000 characters. Spaces and punctuation count toward this total. Failed requests are free, with the charge returned in full if synthesis fails.

Pay Per Character

Billing is strictly usage-based. There are no monthly plans, seats, or minimum spend requirements. This model allows mobile teams to scale costs directly with user engagement without worrying about unused capacity.

  • $0.01 per 1,000 characters
  • No monthly subscriptions
  • No minimum spend

Free Trial Credit

Signing in with Google provides $0.50 of credit, valid for 7 days. This covers approximately 50,000 characters for initial testing. Accounts created with email and password do not receive this trial credit.

USDT Payments

Top-ups are processed via USDT on the TRON network (TRC-20). The minimum deposit is $5. Funds are credited automatically within minutes of transfer. The balance does not expire.

  • USDT (TRC-20) only
  • Minimum $5 top-up
  • Automatic credit within minutes

Data Privacy and Security

Sound wave illustration for: Data Privacy and Security

VoxaFlow processes your text solely to generate the requested audio file. We do not use your input data to train or improve our speech models, ensuring your content remains private and distinct from our training set.

No Training on Input

The text you send via the API is used exclusively for synthesis. Once the audio is generated, the input text is not stored for future model training, keeping your specific content separate from our general data pool.

No Audio Storage

Generated audio files are returned directly in the response and are not stored on our servers after delivery. This ensures that your final voice assets remain under your control, reducing your storage overhead and data exposure.

Metadata Retention

We retain request metadata, including timestamp, character count, and status, strictly for billing and usage verification. This minimal data allows us to accurately charge your account and manage rate limits without retaining the actual audio content.

Use Cases in Mobile Apps

Sound wave illustration for: Use Cases in Mobile Apps

VoxaFlow enables mobile product teams to embed high-quality voice synthesis directly into their applications without managing infrastructure. By converting text into natural speech, teams can enhance user engagement through audio features that work seamlessly across iOS and Android devices.

Audiobook Features

Publishers can offer users a built-in listening experience for digital content. By sending text to the TTS endpoint, apps can generate audio files instantly, allowing readers to switch between reading and listening without leaving the app.

  • Support for 23 languages including English, Spanish, and Japanese.
  • Voice presets like Luna for soft storytelling or Aria for clear narration.
  • No need for pre-recorded audio files; generate on demand.

Accessibility Options

Improve accessibility by providing text-to-speech for visually impaired users or those who prefer audio consumption. The API handles input up to 4096 characters, ensuring consistent output quality for articles, notifications, or UI text.

  • Voices are based on licensed recordings, reducing cognitive load compared to robotic TTS.
  • Adjustable speed (0.25–4.0) suits different listening preferences.
  • Standard formats like MP3 and OPUS ensure broad device compatibility.

Interactive Storytelling

Game developers and educational apps can use dynamic voice synthesis for character dialogue or instructional prompts. Since each request returns an audio file, you can integrate voice assets into your game engine or app flow with minimal latency.

  • Generation takes roughly real time for long texts, but short phrases may take a few seconds.
  • Distinct voices (e.g., Felix for energetic promo, Milo for conversational) add character.
  • Simple JSON integration works with existing mobile development stacks.
Use Cases in Mobile Apps

Getting Started

Sound wave illustration for: Getting Started

Start by creating an account on the /get-api-key/ page using your Google account or an email and password. This step grants you immediate access to a unique API key and a $0.50 trial credit valid for seven days, allowing you to test synthesis without payment details.

Sign Up for API Key

Your account page displays your active key, current balance, and usage metrics. You can generate a new key at any time, which instantly invalidates the previous one, ensuring secure credential management for your mobile app environment.

  • Google or email/password sign-in
  • $0.50 free trial credit
  • Instant key generation

First API Request

Send a POST request to https://api.xx66ok.com/v1/audio/speech with your text and voice selection. The API returns an audio file in your chosen format, such as MP3 or WAV, ready for playback in your app.

  • POST /v1/audio/speech
  • JSON body with 'input' and 'voice'
  • Bearer token authentication

Integration Steps

Use the standard OpenAI SDK by setting the base_url to https://api.xx66ok.com/v1. This allows you to leverage existing client libraries for seamless integration into your iOS or Android codebase without learning a new protocol.

  • Set base_url
  • Use OpenAI SDK
  • Handle 60 req/min limit

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Design intuitive interfaces that delight users and drive engagement across all mobile devices.

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. FFmpeg documentation
  3. openai-python on GitHub
  4. MDN: Web Speech API
  5. curl documentation
  6. LibriTTS-R corpus (OpenSLR 141)
  7. LibriTTS-R paper (arXiv 2305.18802)
  8. ISO 639 language codes
  9. Tether (USDT)
  10. LibriVox public-domain audiobooks
  11. IETF RFC 7845: Ogg Opus
  12. OpenAI API reference: create speech

More on this site