Cloud Text-to-Speech API for Government & NGOs

By VoxCivic editorial team · Updated 2026-11-18

This page outlines the VoxCivic cloud Text-to-Speech API, engineered for government agencies and NGOs requiring reliable audio generation from large document volumes. You will find specific details on integration via the OpenAI-compatible SDK, supported voice presets, and language coverage across 23 languages.

Use this guide to configure your API key, understand the character-based pricing model, and review technical limits such as rate constraints and supported audio formats. The content is structured for engineering teams integrating accessibility features or public information systems.

Cloud Text-to-Speech API for Government & NGOs

Frequently asked questions

What is a text-to-speech API?

A cloud API that converts text into audio files. You send text via a POST request and receive an audio response. It uses standard JSON bodies, allowing integration with existing software pipelines for automated document processing without manual intervention.

How does the API work for government documents?

Send text up to 4096 characters per request. For longer documents, split the text into parts, generate audio for each, and join the files. This allows systematic conversion of large public records into accessible audio formats for citizens.

Which voices are best for public announcements?

Atlas provides a neutral, news-like delivery for official announcements. Sage offers a calm, instructional tone ideal for guidance. Milo is friendly for conversational updates. All eight voices support 23 languages, ensuring consistent audibility across diverse public communications. Since any voice can speak any supported language, teams can select the preset that best matches their specific tone requirements without technical limitations.

What languages are supported?

We support 23 languages including English, Spanish, French, German, Arabic, Chinese, Hindi, Japanese, and Portuguese. Any voice can speak any supported language. If the language is not specified, it is guessed from the script, defaulting to English for Latin text.

How many characters can be processed per request?

Each request accepts up to 4096 characters of input text. Spaces and punctuation count toward this limit. For texts exceeding this length, split the content into multiple requests and concatenate the resulting audio files to reconstruct the full document.

What is the cost per character?

The price is $0.01 per 1,000 characters, or $10 per million characters. Spaces and punctuation count as characters. Failed requests are free, with the charge returned in full if synthesis fails, ensuring you only pay for successful audio generation.

Are failed requests charged?

No. If synthesis fails, the charge is returned in full. You are only billed for successful requests where audio is generated. This ensures accurate billing based on actual output delivered to your application without penalty for technical errors.

Is there a free trial available?

Yes, signing in with Google provides $0.50 of credit, valid for 7 days. This covers approximately 50,000 characters. Accounts created with email and password start without trial credit. Balance does not expire, and top-ups are processed via USDT on TRON.

How do I get started with the API?

Sign up on the /get-api-key/ page using Google or email. You receive a Bearer token for authentication. Use the provided curl example or configure your SDK. The dashboard shows your key, balance, and usage metrics for immediate integration testing.

Can I use OpenAI SDKs with this endpoint?

Yes. The request shape matches the OpenAI speech endpoint. Change the base_url to https://api.u555play.com/v1 and use your API key. This allows direct compatibility with official OpenAI SDKs, simplifying integration for teams already familiar with that ecosystem.

What audio formats are supported?

We support mp3, wav, opus, flac, and pcm formats. Select the format via the response_format field in your request. This flexibility allows you to choose between compressed files for web delivery or lossless formats for archival purposes in government systems.

Is the audio stored after generation?

No. Generated audio is returned in the response and not stored by our servers. Input text is used only to produce the audio and is not used for training. Request metadata is kept solely for billing and audit purposes.

How long does generation take?

Generation is roughly real-time, processing about 25 characters per second. Short phrases take a few seconds. Requests are processed sequentially, so under load, a request may wait in a queue. Typical speed matches the duration of the spoken audio.

Can I generate long documents?

Yes. Split texts into parts of up to 4096 characters. Generate audio for each part individually, then join the resulting audio files. This workflow handles documents of any length, ensuring consistent voice output and manageable request sizes for reliable processing.

First request

curl

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

API Overview

Sound wave illustration for: API Overview

The VoxCivic TTS API is a cloud service designed for converting text documents into audio files. It operates on a single cloud endpoint, accepting standard JSON payloads and returning synthesized audio in real-time. The infrastructure is built for batch processing, handling large document volumes typical of government and NGO workflows without requiring complex on-premise deployments.

Cloud Endpoint

All requests are sent to https://api.u555play.com/v1/audio/speech via HTTPS POST. The service processes inputs and returns audio files directly, eliminating the need for local infrastructure or dedicated servers. Requests are processed sequentially, so under load a request may wait in a queue.

OpenAI SDK Compatible

The API follows the same request shape as the OpenAI speech endpoint. You can use official OpenAI SDKs by simply changing the base_url to https://api.u555play.com/v1 and providing your API key. This allows teams to integrate quickly using existing code patterns.

Simple JSON Body

Each request requires a JSON body containing the text input, selected voice, and output format. The system accepts up to 4096 characters per request. For longer documents, split the text into chunks and join the resulting audio files.

  • Endpoint: POST https://api.u555play.com/v1/audio/speech
  • Auth: Bearer token in Authorization header
  • Input: JSON object with model, input, voice, response_format

Use Cases

Sound wave illustration for: Use Cases

The API enables consistent audio generation for public-facing documentation, supporting compliance with digital accessibility standards. Teams can convert large volumes of text into speech without managing complex infrastructure, ensuring uniform output across all materials.

Accessibility Compliance

Generate audio versions of PDFs and web content for visually impaired users. The system handles up to 4096 characters per request, allowing bulk processing of long documents by splitting and joining outputs.

  • Consistent voice output across all generated files
  • Supports 23 languages including English, Spanish, and French
  • Inaudible watermark marks synthetic speech for auditing

Public Announcements

Produce clear, neutral audio for emergency alerts or routine updates. Use preset voices like Atlas for news or Sage for instructional content. Requests are processed sequentially, ensuring stable delivery even under load.

  • Speed adjustable from 0.25x to 4.0x
  • Formats include MP3 for web and WAV for archives
  • No voice cloning; consistent licensed source recordings

Document Distribution

Convert internal memos or public notices into audio files for distribution. Input text is used only for synthesis and not for training. Generated audio is returned in the response and not stored.

  • Input text not used for model training
  • Request metadata kept for billing and audit
  • No long-term storage of generated audio
Use Cases

Supported Voices

Sound wave illustration for: Supported Voices

VoxCivic provides eight distinct voice presets optimized for clarity and consistency, ensuring reliable audio output for accessibility and public information workflows.

Each voice is engineered for specific tonal requirements, from narrative clarity to neutral reporting, without requiring complex configuration.

Female Presets

The female voices cover a range of tones suitable for different public service contexts. Aria offers a warm, clear narrator style ideal for long-form document reading. Nova provides a bright, upbeat tone for shorter announcements.

Luna delivers a soft, storytelling quality for educational content, while Sage ensures a calm, instructional delivery for procedural guides and regulatory information.

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

Male Presets

Male voices are designed for energy and neutrality. Felix brings an energetic tone suitable for promotional public service announcements. Milo offers a friendly, conversational style for community updates.

Atlas provides a neutral, news-like delivery for official statements, while Orion delivers a deep, documentary tone for historical or archival content.

  • Felix: Energetic, promo
  • Milo: Friendly, conversational
  • Atlas: Neutral, news
  • Orion: Deep, documentary

Voice Characteristics

All eight voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and public-domain audiobook readings from LibriVox. This ensures consistent synthetic speech.

Each generated audio file contains an inaudible watermark to mark it as synthetic speech, supporting auditability for government and NGO compliance requirements.

Language Support

Sound wave illustration for: Language Support

The API supports 23 languages, covering major global dialects for diverse public information needs. Any voice preset can produce any of these languages, ensuring consistent audio quality across your projects.

Automatic detection simplifies input: if the language field is omitted, the system infers the language from the script. Latin script defaults to English, so explicit coding is required for other Latin-based languages.

23 Languages

Supported languages include Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. Languages such as Vietnamese, Thai, and Ukrainian are not currently supported.

  • 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

The API guesses the language from the input text script. For non-English Latin-script text, automatic detection may default incorrectly to English. Explicitly setting the language field ensures accurate pronunciation and intonation.

ISO Code Usage

Set the language parameter with a standard ISO code (e.g., fr, de, es) to override detection. This guarantees the correct voice processing for specific regional variants or when the script is ambiguous.

Audio Formats

Sound wave illustration for: Audio Formats

The API supports five standard audio formats to match your infrastructure needs. Choose MP3 for efficient storage, WAV for uncompressed playback, or OPUS and FLAC for lossless archival.

All formats are generated via a single POST request. The response_format field accepts mp3, wav, opus, or pcm. PCM provides raw uncompressed audio for specialized systems.

MP3 Compression

MP3 provides the most storage-efficient output for large document batches. Ideal for web playback and mobile accessibility apps.

Generated files are standard compliant and play across all modern devices without additional codecs.

  • Optimal for web playback and mobile apps
  • Smallest file size per request

WAV Quality

WAV delivers uncompressed, high-fidelity audio suitable for direct playback in legacy government systems. It preserves the exact output of the synthesis engine.

Use this format when your audio infrastructure expects standard PCM wave files without additional decoding steps.

  • Uncompressed standard for legacy systems
  • Direct playback compatibility

Lossless Options

OPUS and FLAC offer lossless or highly efficient compression for archival purposes. FLAC is ideal for preserving master copies of public information documents.

PCM provides raw data for systems that handle their own compression. All formats include the inaudible synthetic watermark for audit trails.

  • FLAC for archival masters
  • OPUS for efficient lossless storage
  • PCM for raw data processing
Audio Formats

Pricing Model

Sound wave illustration for: Pricing Model

VoxCivic charges $0.01 per 1,000 characters, including spaces and punctuation. Failed requests are free, with charges returned in full. A free trial provides $0.50 credit (50,000 characters) for 7 days upon Google sign-in.

Balances do not expire, and there are no monthly plans or seats. Top-ups via USDT (TRC-20) are processed automatically within minutes, supporting predictable budgeting for large-scale document conversion projects without subscription lock-ins.

Pay Per Character

Usage is billed strictly by character count at $10 per million characters. Every character, including spaces and punctuation, is counted. If synthesis fails, the charge is returned in full, ensuring you only pay for successful audio generation.

  • $0.01 per 1,000 characters
  • Failed requests are free
  • Balances do not expire

No Monthly Fees

There are no monthly plans, seats, or minimum spend requirements. You pay only for the audio you generate. Accounts start without trial credit if created with email/password, or with $0.50 credit for Google sign-ins.

Volume Efficiency

Top-ups are processed via USDT on the TRON network (TRC-20) with a $5 minimum. Credits are added automatically within minutes, allowing continuous operation for high-volume government and NGO workflows without manual invoice reconciliation or VAT complications.

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

Technical Limits

Sound wave illustration for: Technical Limits

The API enforces a strict 4,096-character limit per request. For documents exceeding this length, split the input text and join the resulting audio files client-side.

Standard rate limits allow 60 requests per minute per key, with 10 per minute before the first top-up. Requests process sequentially under load.

Character Limits

Each API call accepts a maximum of 4,096 characters in the input field. This constraint applies to the raw text string, including spaces and punctuation. For large public documents, implement client-side splitting logic to divide the text into 4,096-character chunks and concatenate the returned audio files.

  • Maximum input: 4,096 characters per request
  • Spaces and punctuation count toward the limit
  • Client-side joining required for longer texts

Rate Limits

New keys start with a limit of 10 requests per minute. Upon the first successful top-up, this increases to 60 requests per minute. This structure supports steady batch processing for NGO document distribution without requiring enterprise-grade throughput.

  • Pre-top-up: 10 requests/minute
  • Post-top-up: 60 requests/minute
  • Limits are per API key

Queue Processing

Requests are processed sequentially. Under high load, subsequent requests may wait in a queue before synthesis begins. This ensures consistent resource allocation but means latency increases during peak usage periods.

  • Sequential processing order
  • Latency may increase under load
  • No parallel processing guarantee

Integration

Sound wave illustration for: Integration

Integration is straightforward using standard HTTP or the OpenAI SDK. The endpoint accepts JSON bodies and returns audio files directly, allowing existing infrastructure to handle the workflow without custom middleware.

cURL Examples

Send a synthesis request with a simple POST command. The API returns the audio file directly in the response body, ready for immediate playback or storage.

SDK Configuration

Use the official OpenAI SDK by changing the base_url to https://api.u555play.com/v1. Pass your API key in the authorization header to authenticate requests seamlessly.

  • Base URL: https://api.u555play.com/v1
  • Auth: Bearer <your-api-key>
  • Standard JSON body structure

Webhook Ready

The API is stateless and returns results synchronously. Webhooks are not supported; poll for status if needed, or process the returned audio file directly in your pipeline.

Integration

Why U555?

Sound wave illustration for: Why U555?

VoxCivic eliminates administrative overhead by providing a straightforward, character-based billing model. You pay only for what you process, with no monthly retainers or seat-based licensing to manage across large teams.

Usage is transparent and auditable. Failed requests are refunded in full, ensuring you are never charged for wasted compute resources.

Transparent Billing

Every request is accounted for with precise character counting. Input text, including spaces and punctuation, is measured accurately before synthesis begins.

  • Real-time balance tracking
  • Clear usage history
  • Automatic refund on failure

No Hidden Fees

The rate is fixed at $0.01 per 1,000 characters. There are no extra charges for format selection, speed adjustments, or volume scaling.

  • No per-request overhead
  • No minimum spend
  • No subscription tiers

Public Domain Voices

Our voice presets are derived from LibriTTS-R (CC BY 4.0) and public-domain LibriVox recordings. This provides a consistent, auditable audio source without complex licensing negotiations.

  • CC BY 4.0 base recordings
  • Auditable synthetic origin
  • No celebrity voice royalties

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Our team unites government services and NGOs to deliver meaningful public outcomes for every citizen served.

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

More on this site