Frequently asked questions
What is a TTS API?
A TTS API is a cloud service that converts text into audio files. You send text via a POST request and receive an audio file in return. Vocalia provides a straightforward API for developers building educational tools and accessibility readers, requiring no complex enterprise contracts to get started.
How does a TTS API work?
Send a POST request to the /v1/audio/speech endpoint with your text, voice selection, and format. The API processes the request and returns the generated audio file. For texts over 4096 characters, split the input, generate parts, and join the resulting audio files manually.
What is the difference between TTS and STT?
TTS (Text-to-Speech) converts written text into spoken audio, while STT (Speech-to-Text) converts spoken audio into written text. Vocalia’s API handles TTS only. It does not perform speech recognition, translation, or dubbing, focusing solely on generating audio from text input.
Can TTS APIs be used for accessibility?
Yes. TTS APIs are ideal for accessibility readers and educational tools. Vocalia’s synthetic voices provide reliable audio output for text content. The generated audio files can be integrated into web or mobile applications to make text content accessible to users with visual impairments or reading difficulties.
How do I choose the right voice?
Choose from eight presets: Aria, Nova, Luna, Sage, Felix, Milo, Atlas, or Orion. Each has a distinct tone, from warm narration to deep documentary styles. All voices support all 23 languages. Select the voice that best matches the tone of your educational or accessibility content.
What is the cost of a TTS API?
Pricing is $10 per 1 million characters, or $0.01 per 1,000 characters. Failed requests are free. You can start with a $0.50 free trial via Google sign-in. Top-ups are accepted via USDT on TRON, with no monthly plans or minimum spend requirements.
Do TTS APIs support all languages?
Vocalia supports 23 languages, including English, Spanish, French, German, Japanese, and Arabic. Any voice can speak any supported language. If the language is not specified, it defaults to English for Latin script. Vietnamese, Thai, and Ukrainian are not supported.
Is real-time TTS available?
No streaming or real-time partial audio is available. Requests are processed sequentially, so longer texts may queue. Typical speed is roughly real-time for long texts, but short phrases may take a few seconds. You receive the complete audio file after processing.
What is SSML?
SSML (Speech Synthesis Markup Language) is a markup language for controlling speech synthesis, such as pauses or emphasis. Vocalia’s API does not support SSML. You control tone by selecting a specific voice preset and adjusting the speed parameter between 0.25 and 4.0.
Can I clone my own voice?
No custom voice cloning is offered. You cannot upload your own voice or design a custom voice. The API uses eight licensed presets based on LibriTTS-R recordings. Generated files include an inaudible watermark marking them as synthetic speech.
What is the difference between tts-1 and tts-1-hd?
Both models use the same engine and price. The only difference is the model identifier in your request. Select 'tts-1' or 'tts-1-hd' based on your preference, but the output quality and cost remain identical for both options.
How do I handle rate limits?
Limits are 60 requests per minute per key (10 before first top-up). Requests are processed sequentially. If you exceed the limit, wait for the queue to clear. Monitor your usage via the dashboard and split long texts into smaller chunks to manage flow.
What audio formats are best?
Choose from mp3, wav, opus, flac, or pcm. MP3 is efficient for web delivery. WAV and FLAC offer lossless quality. PCM is raw data. Select the format that best fits your application’s storage and playback requirements without additional conversion steps.
Do I need an API key?
Yes. Authentication requires an Authorization header with a Bearer token starting with 'tts-'. Generate your key on the /get-api-key/ page. You can issue a new key at any time, which immediately invalidates the old one. One active key per account.
What is a TTS API
Text-to-Speech (TTS) technology converts written text into audible speech. For developers, this means transforming static content into audio files. The process involves processing text input through a synthesis engine that generates human-like voice output, enabling applications to read content aloud without pre-recorded tracks.
Definition of TTS
TTS APIs provide a programmatic interface to generate audio from text. Instead of manually recording voiceovers, you send text to an endpoint and receive an audio file. This allows for on-demand synthesis, supporting variable content lengths and dynamic updates in educational or accessibility tools.
Cloud-based synthesis
Vocalia processes speech in the cloud, eliminating the need for local hardware. You send a JSON payload via HTTP, and the server returns the audio file. This model supports rapid scaling and ensures consistent voice quality across different devices without managing complex audio rendering engines locally.
- Send text via POST requests
- Receive MP3, WAV, or OPUS files
- No local installation required
API vs Software
Unlike standalone TTS software, an API integrates directly into your codebase. You control the voice, speed, and format programmatically. This approach offers precise integration for web apps and mobile tools, allowing you to trigger speech generation exactly when needed, rather than relying on a separate desktop application.
Key Features to Look For
To evaluate a TTS API, prioritize voice diversity, language coverage, and output flexibility. These core features determine how well the service integrates into educational tools and accessibility readers without requiring complex custom configurations.
Voice variety
Select from eight distinct presets ranging from warm narrators to upbeat conversational styles. Each voice is trained on licensed recordings, ensuring consistent quality across different content types.
Language support
The API supports 23 languages, allowing any voice to speak any supported language. This flexibility is essential for global educational platforms requiring multilingual content generation.
Audio formats
Choose between MP3, WAV, Opus, FLAC, or PCM to match your storage and playback requirements. This ensures compatibility with various learning management systems and accessibility devices.
Pricing Models
Vocalia uses a straightforward pay-per-character model, charging $10 per million characters. This approach ensures you only pay for actual usage, with no monthly commitments or minimum spend requirements.
Unlike subscription models that lock you into fixed tiers, our pricing scales linearly with your volume. Failed requests are free, so you are never charged for unsuccessful synthesis attempts.
Pay per character
The cost is $0.01 per 1,000 characters, including spaces and punctuation. This transparent structure eliminates hidden fees, making budget forecasting simple for educational tools and accessibility readers.
- $10 per 1 million characters
- $0.01 per 1,000 characters
- Spaces and punctuation count
Subscription models
We do not offer subscriptions, seats, or enterprise contracts. There are no monthly plans to manage or expire, allowing you to focus on development rather than account administration.
Free tiers
Sign in with Google to receive $0.50 in free trial credit, valid for 7 days. This provides approximately 50,000 characters for testing integration without immediate payment details.
- $0.50 trial credit
- Valid for 7 days
- Google sign-in required
Integration Methods
Vocalia provides a standard REST API compatible with the OpenAI speech endpoint structure. Developers send POST requests to the speech endpoint with JSON payloads containing model, input, voice, and format parameters. The service returns the generated audio file directly in the response, simplifying integration for backend services and client applications.
REST API calls
Send a POST request to https://api.aq777play.com/v1/audio/speech with your API key in the Authorization header. The JSON body requires model (tts-1 or tts-1-hd), input (text up to 4096 characters), voice, and response_format. This direct HTTP method ensures compatibility with any language capable of making REST calls.
SDK usage
Use the official OpenAI SDKs by setting the base_url to https://api.aq777play.com/v1. Pass your site-specific key as the API credential. This allows you to use familiar method signatures like client.audio.speech.create() without rewriting network logic, leveraging existing SDK features for retries.
- OpenAI SDK compatible via base_url override
- Supports Python, Node.js, Go, and cURL
- No custom SDK required for basic usage
Webhooks
Vocalia does not currently offer webhooks for asynchronous notifications. Since requests are processed synchronously, the audio file is returned directly in the HTTP response. For long texts, split the input into chunks of 4096 characters and join the resulting audio files client-side.
Voice Selection Guide
Selecting the right voice preset depends on your content’s context. Vocalia offers eight distinct voices, each optimized for specific use cases, from educational narration to conversational dialogue.
All voices support 23 languages and can speak any listed language regardless of the preset. Use the language parameter to ensure correct pronunciation for non-English Latin script text.
Narrator voices
Aria, Luna, and Sage provide clear, steady tones ideal for e-learning modules, audiobooks, and instructional content. Aria’s warm clarity suits general narration, while Luna’s soft tone is suitable for storytelling.
These presets maintain consistent pacing, making them suitable for long-form text where listener fatigue is a concern. They do not convey emotion tags but offer reliable synthetic speech for structured content.
- Aria: warm, clear narrator
- Luna: soft, storytelling
- Sage: calm, instructional
Conversational voices
Nova, Felix, and Milo deliver energetic or friendly tones suitable for dynamic content, promotional material, or interactive applications. Felix’s energy works well for promos, while Milo’s conversational style suits chat interfaces.
Nova’s bright tone engages users in short phrases. These voices lack custom pronunciation lexicons, so verify output for specific proper nouns.
- Nova: bright, upbeat
- Felix: energetic, promo
- Milo: friendly, conversational
Neutral voices
Atlas and Orion provide neutral or deep tones for news, documentation, or documentary-style content. Atlas offers a neutral news style, while Orion’s deep tone suits serious topics.
These voices minimize stylistic bias, making them ideal for accessibility readers where clarity outweighs expressive character. All voices carry an inaudible watermark marking them as synthetic speech.
- Atlas: neutral, news
- Orion: deep, documentary
Performance Considerations
Synthesis latency varies with input length. Short phrases require a few seconds to generate, while longer texts process at roughly real-time speed, approximately 25 characters per second. This consistency ensures predictable playback timing for educational tools.
Rate limits apply per API key. New accounts start with 10 requests per minute, increasing to 60 requests per minute after the first top-up. Exceeding these limits returns an error.
Latency
Generation time scales with text length. Short phrases take a few seconds, while longer texts process at roughly real-time speed (25 characters per second). Requests are processed sequentially, so under load, a request may wait in a queue before synthesis begins.
- - Short phrases: a few seconds
- - Long texts: ~25 chars/sec
- - Sequential processing may cause queue delays
Rate limits
Each API key is limited to 60 requests per minute. New accounts begin with a lower limit of 10 requests per minute. Limits reset every minute. Failed requests do not consume your character quota or incur charges, ensuring efficient debugging.
- - Standard limit: 60 req/min
- - New account limit: 10 req/min
- - Failed requests are free
Queue management
Requests are processed one after another. Under heavy load, subsequent requests may experience delays as they wait in the processing queue. For time-sensitive applications, consider implementing retry logic with exponential backoff to handle temporary queue saturation gracefully.
- - Sequential processing model
- - Implement retry logic for delays
- - Monitor queue status for long texts
Error Handling
Robust error handling ensures your application remains stable when the TTS service encounters issues. Understanding common failure modes allows for quicker debugging and smoother user experiences in production environments.
This guide covers input validation, rate limit handling, and network resilience specific to the Vocalia API architecture.
Input validation
Ensure your input field does not exceed 4096 characters per request. The API rejects payloads containing invalid character encodings or unsupported control characters. Validate your text before sending to avoid wasted character credits on failed synthesis jobs.
- Max 4096 characters per request
- Rejects invalid UTF-8 sequences
- Validates
voiceandmodelparameters
Rate limit errors
The API enforces a limit of 60 requests per minute per key. If you exceed this, you receive a 429 status code. New accounts start with a stricter limit of 10 requests per minute until the first top-up is processed. Implement exponential backoff in your client logic to handle these bursts gracefully without dropping audio generation tasks.
- 60 requests/minute after top-up
- 10 requests/minute for new accounts
- 429 status code on overflow
Network issues
Network timeouts can occur during synthesis, especially for longer texts. Ensure your HTTP client handles retries for transient errors (5xx status codes). Since requests are processed sequentially, high load may increase latency. Monitor response times and adjust your concurrency limits accordingly to prevent queue buildup.
- Handle 5xx server errors
- Implement retry logic for timeouts
- Monitor latency for queue depth
Security and Privacy
Vocalia prioritizes developer trust through straightforward data handling. Your input text is used solely for synthesis and is not used for training. We retain only request metadata—such as timestamp, character count, and status—for accurate billing purposes. This minimal data footprint ensures your content remains private without unnecessary retention overhead.
API key security
Each account holds a single active Bearer token. You can rotate your key at any time via the dashboard, causing the previous key to stop immediately. This ensures that if a key is exposed, you can invalidate it instantly without waiting for a cycle.
- Use HTTPS for all requests
- Rotate keys immediately upon suspected exposure
- One active key per account
Data usage policies
Generated audio is returned in the response and not stored. Only the metadata required for billing and rate-limiting (60 requests per minute) is kept. This ensures that your voice inputs and outputs remain transient and secure.
No training data
Unlike many consumer TTS services, we do not use your input text to train our models. Your data is strictly processed for immediate audio generation and is not repurposed for algorithmic improvement or third-party sharing.
Use Case Examples
Vocalia’s API integrates seamlessly into educational and accessibility workflows, providing reliable synthetic speech without enterprise complexity. Developers can generate audio files from text inputs to enhance content delivery.
E-learning platforms
Use the API to convert lesson text into audio for language learning apps. With support for 23 languages, you can generate pronunciation guides or reading exercises. The 4096-character limit per request allows for concise module generation.
- Convert text lessons to MP3 or WAV
- Support for multiple languages including English, Spanish, and Japanese
- Cost-effective at $0.01 per 1,000 characters
Accessibility tools
Provide screen reader alternatives for users with visual impairments. Send text via POST request and receive audio instantly. Voices like Aria and Luna offer clear narration suitable for long-form content.
- Instant audio generation for static text
- No custom voice cloning needed
- Supports standard formats like MP3 and PCM
News readers
Automate daily news briefings using neutral voices like Atlas. The API processes requests sequentially, ensuring consistent output. Ideal for podcasts or audio summaries where real-time streaming is not required.
- Neutral voices for news content
- Simple REST API integration
- Rate limit of 60 requests per minute
Comparison Factors
Choosing a TTS API requires comparing core metrics against your specific project needs. Vocalia offers transparent pricing and broad language support, making it suitable for educational tools and accessibility readers.
The following factors help you evaluate whether this API fits your development workflow.
Price per character
Vocalia charges $10 per 1 million characters, equivalent to $0.01 per 1,000 characters. Failed requests incur no charge, ensuring you only pay for successful synthesis.
Unlike subscription models, there are no monthly fees or minimum spends. You top up with USDT (TRC-20) and pay only for what you use.
- Flat rate: $10 / 1M characters
- No monthly subscriptions
- Free retries for failures
Voice quality
Eight distinct presets cover various tones, from warm narrators to deep documentary voices. All voices are based on licensed recordings from LibriTTS-R and LibriVox.
Generated audio includes an inaudible watermark to identify synthetic speech, aiding in content transparency without affecting listener experience.
Language coverage
Support spans 23 languages, including English, Chinese, Spanish, and Hindi. Any voice can speak any supported language, allowing flexible voice selection regardless of source text.
Note that Vietnamese, Indonesian, and Thai are not supported. For non-English Latin text, explicitly set the language parameter to ensure correct pronunciation.
Getting Started Checklist
Setting up the API is straightforward. Create an account via Google or email, retrieve your key, and verify functionality with a simple command. This minimal setup lets you start generating audio immediately without complex configuration.
The process is designed for speed. You can test voice synthesis in minutes using standard tools, ensuring the service fits your workflow before committing to larger volumes.
Sign up for account
Visit the /get-api-key/ page. Choose Google sign-in for instant trial credit ($0.50) or use email/password. Accounts are site-specific.
No credit card is required. You receive immediate access to the dashboard to view your balance and usage metrics.
- Google SSO for instant trial credit
- Email/password option available
- No credit card needed
Get API key
Your dashboard displays a unique Bearer token starting with 'tts-'. This key authenticates all requests.
Generate a new key anytime; the old one stops immediately. One active key per account keeps security simple.
Test with curl
Use this command to verify your setup. Replace 'YOUR_API_KEY' with your actual token.
The response returns the audio file directly. Check the status code to confirm success.
- POST to https://api.aq777play.com/v1/audio/speech
- Include Authorization: Bearer YOUR_API_KEY
- Set model to tts-1 or tts-1-hd
- Provide input text and voice preset
Future Updates
We plan incremental model updates to refine naturalness and reduce generation latency without changing the underlying pricing or endpoint structure. These improvements focus on existing voices rather than introducing entirely new engine architectures.
Future enhancements will likely include additional audio formats or expanded speed ranges, but core features like SSML or voice cloning remain outside our current scope. We will announce significant changes via the /docs/ page.
Model improvements
We prioritize reducing latency and improving clarity in existing voices. Updates are rolled out silently to the tts-1 and tts-1-hd endpoints, ensuring backward compatibility for all current integrations.
New voices
New voice presets may be added to the eight available options. These will be released via the /v1/voices endpoint, allowing developers to integrate them immediately without code changes.
Feature additions
We may introduce new response formats or extended character limits in future releases. SSML and custom voice cloning are not supported.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Mastering a new language unlocks global opportunities and deepens cultural connections for modern content creators.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- W3C WAI: making audio and video accessible
- TRON developer hub: TRC-20
- IETF RFC 7845: Ogg Opus
- LibriTTS-R corpus (OpenSLR 141)
- LibriTTS-R paper (arXiv 2305.18802)
- MDN: Web Speech API
- Python documentation
- FFmpeg documentation
- Creative Commons Attribution 4.0
- Tether (USDT)
- LibriVox public-domain audiobooks
