Frequently asked questions
What is a text-to-speech API?
It is a cloud service that converts text into audio files via a simple API call. You send text to the endpoint and receive an audio file in formats like MP3 or WAV. This allows government systems to programmatically generate speech for accessibility without managing complex infrastructure or hardware.
How does TTS help with accessibility?
TTS enables screen readers and audio outputs for users with visual impairments or reading difficulties. By converting public documents and web content into audio, agencies ensure inclusive access to information. The API supports 23 languages, allowing diverse populations to access government services in their preferred language.
Is this API suitable for government use?
Yes, it offers predictable costs and straightforward integration without enterprise overhead. The engineering-focused approach ensures reliable processing for large volumes of text. Input text is used only for generation, not training, and request metadata is retained solely for billing, aligning with standard data handling practices.
How do I handle long documents?
Split documents into parts of up to 4096 characters per request. Generate audio for each part, then join the files. This method ensures compatibility with the API limits while maintaining audio continuity. Typical speed is roughly real-time, processing about 25 characters per second of audio.
What languages are supported?
We support 23 languages including English, Spanish, French, German, Arabic, Chinese, and Hindi. Any voice can speak any supported language. If the language is not specified, it is guessed from the script, though setting it explicitly is recommended for non-English Latin-script text to ensure accuracy.
Can I use this for public announcements?
Yes, voices like Felix (energetic) or Atlas (neutral) are suitable for public information. Each generated file carries an inaudible watermark marking it as synthetic speech. This ensures transparency while providing clear, consistent audio for broadcasts, kiosks, or digital displays without requiring human voice actors for every update.
Is the voice realistic enough?
Voices are based on licensed recordings from LibriTTS-R and LibriVox public-domain audiobooks. They offer clear, natural speech patterns suitable for accessibility. While not indistinguishable from human recording, they provide high-quality synthetic speech that meets standard accessibility requirements for government digital content and audio publications.
Do I need technical expertise?
Basic technical knowledge is sufficient. The API uses standard JSON requests and supports OpenAI SDKs by changing the base URL. You can use ready-made curl examples or standard HTTP libraries. Integration is straightforward, requiring only an API key and understanding of standard RESTful request structures.
How much does it cost per page?
Pricing is based on characters, not pages. It costs $0.01 per 1,000 characters, including spaces and punctuation. A standard page of 2,500 characters costs $0.025. This model ensures predictable costs for large volumes, with failed requests refunded in full, eliminating waste on errors.
Can I customize the voice speed?
Yes, you can adjust the speed between 0.25 and 4.0. This allows optimization for different contexts, such as slower speeds for clarity or faster speeds for efficiency. The speed parameter is included in the JSON request body alongside the text, voice, and format specifications.
What happens if the internet goes down?
The API processes requests sequentially. If the network fails, the request does not complete, and no charge is incurred. Failed requests are free, with the charge returned in full. You can retry the request once connectivity is restored, ensuring no financial loss for connectivity issues.
Is the audio file downloadable?
Yes, the API returns the audio file directly in the response. You can save it locally or stream it if your infrastructure supports it. The response includes the audio data in the specified format (MP3, WAV, OPUS, FLAC, or PCM) for immediate use in applications.
Do I need to pay for storage?
No, generated audio is returned in the response and not stored by the API. You are responsible for storing the audio files if needed. Input text is also not stored long-term, used only for production. This reduces ongoing storage costs for your government infrastructure.
Can I use this for video dubbing?
The API generates audio files but does not include video editing or dubbing pipelines. You must integrate the generated audio with your video editing tools manually. It provides the voice track, but you handle the synchronization and visual components separately using your existing video workflows.
How do I authenticate my app?
Use a Bearer token in the Authorization header: Authorization: Bearer tts-.... Each account has one active key, which can be renewed instantly if needed. This standard authentication method ensures secure access to the API endpoints for generating speech from your government applications.
What is the difference between tts-1 and tts-1-hd?
Both models use the same engine and price ($10 per million characters). The distinction is purely naming convention for the single available engine. There is no functional difference in quality or cost between the two model identifiers when making requests to the API endpoint.
Why Choose a Dedicated API?
Government agencies require transparent cost structures for public budgeting. Our API charges $0.01 per 1,000 characters, with no monthly fees, seats, or minimum spend. This pay-per-use model ensures predictable expenses for high-volume accessibility projects without enterprise overhead.
The standard HTTP protocol eliminates proprietary lock-in. You can switch libraries or infrastructure without changing the core integration logic. This flexibility supports long-term system stability and reduces dependency on a single vendor's evolving ecosystem.
Predictable pricing for budgets
Costs scale linearly with usage. Failed requests are free, ensuring you pay only for successful audio generation. This transparency simplifies financial forecasting for annual government budgets.
- $10 per 1 million characters
- No monthly plans or subscriptions
- No minimum spend requirements
No vendor lock-in
The API follows standard RESTful conventions. Integration relies on common JSON bodies and HTTP methods, allowing easy migration or multi-vendor strategies if needed.
Standard HTTP protocol
Use standard POST requests to send text and receive audio. This compatibility extends to existing internal tools and scripts without requiring custom adapters.
The official OpenAI SDKs work by adjusting the base URL, leveraging familiar developer workflows already present in many agencies.
Authentication uses a simple Bearer token, making header management straightforward across different programming languages and frameworks.
- POST endpoint for speech synthesis
- JSON request body
- Bearer token authentication
Accessibility Compliance
Government digital services require accessible audio outputs for diverse user needs. Our API delivers standard audio files compatible with all major screen readers and accessibility tools, ensuring compliant public information delivery without requiring custom frontend implementations or proprietary plugins.
The lack of SSML does not impede basic accessibility; standard audio concatenation provides sufficient control for most public address and document-read-aloud use cases.
Support for screen readers
Generated audio files are standard media formats playable by any assistive technology. This ensures that citizens using screen readers can access government announcements, forms, and updates seamlessly. No special plugins or browser extensions are required on the client side, reducing friction for end-users.
The audio output is designed for linear playback, which aligns with the navigation patterns of most screen reader software. This simplicity ensures broad compatibility across devices used by the public.
- Compatible with JAWS, NVDA, VoiceOver, and TalkBack
- No custom JavaScript libraries required for playback
- Standard HTML5 audio element support
Multiple audio formats
We support MP3, WAV, OPUS, FLAC, and PCM, allowing agencies to balance bandwidth efficiency with quality requirements. MP3 and OPUS are ideal for web delivery and mobile apps, while WAV and FLAC serve archival or high-fidelity needs.
Choosing the right format helps manage data usage for citizens on limited mobile plans, a common consideration in public sector deployments.
- MP3 and OPUS for efficient web delivery
- WAV and FLAC for high-quality archival
- PCM for raw audio processing pipelines
Consistent voice quality
All 8 voice presets deliver uniform quality across all 23 supported languages. This consistency is critical for government services where users expect a predictable auditory experience regardless of the content language.
The same engine powers all voices, ensuring that the acoustic properties remain stable even when switching between languages like English, Spanish, or Arabic within the same application.
- Uniform engine across all 8 voices
- Consistent quality in all 23 supported languages
- No quality degradation between voice presets
Technical Integration
Integration follows standard HTTP protocols, allowing agencies to use existing infrastructure. The API accepts JSON payloads and returns audio files directly, simplifying deployment for public information systems.
Simple curl example
Use standard HTTP requests to generate speech. Send a POST request to the speech endpoint with your model, text, and voice parameters.
- Endpoint: POST https://api.6444.info/v1/audio/speech
- Method: JSON body with
model,input,voice - Response: Direct audio file download
OpenAI SDK compatibility
The request shape matches the OpenAI speech endpoint. You can use official OpenAI SDKs by simply changing the base_url to https://api.6444.info/v1.
Authentication setup
Include your API key in the Authorization header as a Bearer token. Each account holds one active key, which can be rotated instantly if needed.
Handling Long Documents
Government accessibility often requires processing lengthy public documents, such as annual reports or legislative texts. Since the API limits input to 4,000 characters per request, large files must be split into manageable segments. This ensures consistent synthesis quality and prevents request timeouts during high-volume processing.
Chunking strategy
Divide text into chunks of up to 4,096 characters, ensuring boundaries respect word integrity. Send each segment as a separate POST request to https://api.6444.info/v1/audio/speech. This approach maintains predictable costs and allows parallel processing if needed.
- Limit input to 4,096 characters per request.
- Split at sentence or paragraph breaks to preserve context.
- Process segments sequentially or in controlled batches to respect the 60 requests/minute rate limit.
Audio concatenation
Retrieve the audio file from each successful response and concatenate them in order. Supported formats like WAV or PCM are straightforward to merge using standard libraries. MP3 and OPUS files may require specific tools to join without introducing silence or artifacts.
- Maintain the original sequence of text segments.
- Use lossless formats (WAV, FLAC) for seamless joining.
- Verify the final audio length matches the total character count expectations.
Memory management
Stream audio data directly to disk or a buffer rather than holding all chunks in RAM. This is critical for documents exceeding several megabytes. Monitor system memory during batch jobs to prevent crashes during peak processing periods.
Language Support
Our API supports 23 languages, covering major populations served by government agencies and NGOs. This includes English, Spanish, Arabic, Chinese, Hindi, and others, ensuring broad accessibility for diverse public communications without requiring multiple vendor contracts.
23 languages for diverse populations
The supported languages are 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, allowing consistent audio quality across different content types.
- Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish
Automatic detection
If the language field is omitted, the system guesses the language from the text script. Text in Latin script defaults to English.
Manual override
For non-English Latin-script text, you must set the language parameter to ensure correct pronunciation. This prevents misinterpretation of text that might otherwise default to English.
- Supported: 23 languages listed above
- Not supported: Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali, and others
Cost Management
Government agencies often struggle with fixed SaaS contracts that charge for unused capacity. Our API uses a strict pay-per-use model, billing $0.01 per 1,000 characters. This ensures you only pay for the audio actually generated, providing predictable costs for budgeting without hidden fees or per-seat charges.
Pay-per-use model
The cost is calculated per character, including spaces and punctuation. With a rate of $10 per million characters, long documents for public information can be processed efficiently. Failed requests are free, ensuring you are not charged for unusable audio.
- $0.01 per 1,000 characters
No minimum spend
There are no monthly plans, no seats, and no minimum spend requirements. You can top up using USDT (TRC-20) with a minimum of $5. Balances do not expire, allowing agencies to process accessibility content on-demand without committing to annual contracts.
Trial for testing
New accounts signing in with Google receive $0.50 in trial credit, valid for 7 days. This allows technical teams to validate integration and voice quality before procurement. Accounts created via email/password start without trial credit.

Data Privacy
Government agencies often require strict data governance. Our TTS API is engineered to minimize data exposure by processing input text solely for audio synthesis without retaining it for model training. This ensures that sensitive public information or internal documents do not become part of a growing training dataset, maintaining clear separation between operational usage and model improvement.
Text not used for training
Input text is processed exclusively to generate the requested audio file. Unlike many consumer-grade services, we do not store or repurpose your submitted text for training our neural networks. This preserves the confidentiality of your source material, ensuring that public records or internal memos remain distinct from our core model data.
No audio storage
The synthesized audio is returned directly in the API response and is not persistently stored on our servers after delivery. This eliminates the need for managing long-term audio archives on our infrastructure, reducing liability and simplifying compliance audits where you retain full ownership and custody of the generated files.
Metadata retention
We retain request metadata—including timestamp, character count, and status—for billing and audit purposes only. This data supports transparent invoicing and usage tracking without storing the actual content of your texts or audio files. Retention is limited to what is necessary for operational transparency and dispute resolution.
Performance Considerations
Text-to-speech synthesis typically processes audio at a rate roughly equivalent to real-time, generating approximately 25 characters per second for standard texts. This baseline holds for most requests, though generation speed can vary based on system load and input complexity.
Short phrases may require a few seconds to process, while longer documents scale linearly with character count. This predictability allows government agencies to estimate processing times accurately for public information broadcasts and accessibility workflows.
Real-time generation
The API generates audio at approximately real-time speed, processing about 25 characters per second. This linear scaling means longer texts take proportionally longer, allowing agencies to estimate total generation time for large document batches without complex calculations.
Queue handling
Requests are processed sequentially. Under high load, your request may wait in a queue before synthesis begins. This ensures consistent resource allocation but means burst traffic could delay immediate delivery. Monitor your usage to maintain predictable throughput.
Since processing is single-threaded per request, simultaneous requests from multiple accounts or high-volume bursts may experience variable wait times depending on current server congestion.
- Requests are processed sequentially.
- Load affects queue position.
- Burst traffic may cause delays.
Latency expectations
Expect a few seconds of latency for short phrases. For long texts, the total time is dominated by the real-time generation factor rather than initial request processing. Plan your integration to handle these delays gracefully, especially for interactive accessibility features.
There is no streaming or WebSocket support; you must wait for the complete audio file to be generated and returned. This ensures file integrity but requires patience for large inputs.
Voice Selection
Our API provides eight distinct voice presets, each engineered for specific tonal requirements. These range from warm narrators to energetic promotional styles, ensuring your content matches the intended context without requiring manual tuning.
8 presets for different tones
Select from four female voices (Aria, Nova, Luna, Sage) and four male voices (Felix, Milo, Atlas, Orion). Each preset offers a consistent audio character suitable for various content types, from storytelling to instructional guides.
- 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 style options
Choose based on the desired auditory experience. Options span from deep, documentary-style narration to friendly, conversational tones. This allows agencies to maintain consistent branding across different accessibility channels, whether for public announcements or detailed service explanations.
Neutral options for news
For official government communications, Atlas provides a neutral, news-style voice suitable for clear, unbiased information delivery. Orion offers a deeper, documentary tone for more immersive content. These options ensure clarity and professionalism without distracting emotional inflections.
Error Handling
TTS Engineering ensures fiscal responsibility by guaranteeing that failed synthesis requests incur no charge. If a request fails, the character count is not deducted from your balance, and any pre-charged amount is returned in full. This protects government budgets from unpredictable costs during high-volume accessibility processing.
The API returns standard HTTP status codes to indicate success or failure. Clients should implement logic to interpret these codes, ensuring that transient network issues do not result in unnecessary billing or data loss during public information distribution.
Failed request refunds
Failed requests are free. If synthesis fails, the charge is returned in full. This applies to all billing cycles, ensuring that only successful audio generations impact your per-character usage.
You do not need to submit a manual refund request. The system automatically adjusts your balance when a non-200 response is received for a charged request.
- No charge for failed synthesis.
- Automatic balance adjustment.
- Applies to all account types.
Status codes
The API uses standard HTTP status codes. A 200 OK response indicates successful audio generation. Other codes, such as 400 for invalid input or 429 for rate limits, signal specific issues.
Clients should monitor these codes to trigger appropriate internal logging or user notifications in government accessibility portals.
- 200: Success.
- 400: Bad Request.
- 429: Rate Limit Exceeded.
Retry logic
Implement exponential backoff for transient errors. The rate limit is 60 requests per minute per key. Exceeding this triggers a 429 response.
Retry failed requests after a short delay. Since requests are processed sequentially, waiting prevents queue saturation and ensures eventual delivery of audio files.
- Rate limit: 60 req/min.
- Exponential backoff recommended.
- Retry on 429 or 500 errors.
Testing Strategy
The free trial provides $0.50 of credit, valid for seven days upon Google sign-in, which covers approximately 50,000 characters. This allows agencies to validate API integration without financial commitment or waiting for billing cycles.
Use free trial credit
Sign up via /get-api-key/ to receive immediate trial credit. Verify that the balance displays correctly and that requests deduct from this initial pool before any top-up is required.
- Valid for 7 days
- Covers ~50,000 characters
- No credit card required
Test with short phrases
Send concise test strings to confirm latency and voice clarity. Short phrases help isolate generation time, which typically takes a few seconds, ensuring the queue processing meets accessibility timing requirements.
Validate formats
Test all supported output formats (mp3, wav, opus, flac, pcm) against your specific screen reader or playback infrastructure. Verify that the audio files are playable and that metadata is preserved correctly.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. There are no monthly plans, seats, or minimum spend requirements.
23 languages
Any voice speaks any of these languages.
