Cloud Text-to-Speech API for Government and NGO Services

By Civispeech editorial team · Updated 2026-11-18

This page provides a detailed overview of the Civispeech cloud Text-to-Speech API, designed specifically for government agencies and non-profit organizations requiring scalable, cost-effective speech synthesis. We offer a reliable endpoint that eliminates infrastructure overhead while ensuring data privacy and predictable billing for high-volume content generation.

You will find concrete technical specifications, supported voices, and integration examples tailored to public service workflows. This resource outlines how to convert text into audio files for official broadcasts, accessibility compliance, and training modules, ensuring your organization can deploy synthesized speech efficiently without managing complex backend systems.

Cloud Text-to-Speech API for Government and NGO Services

Frequently asked questions

Is the text-to-speech API free for government use?

No. The API is not free for government use. It costs $10 per 1 million characters. A free trial of $0.50 credit (about 50,000 characters) is available for 7 days when signing in with Google. Accounts created with email and password start without trial credit. There are no monthly plans or minimum spend requirements.

How many characters can I send in one request?

You can send up to 4096 characters per request. For longer texts, split them into parts of this limit and join the resulting audio files. Spaces and punctuation count toward the character total. This ensures consistent processing and allows for efficient handling of large document batches for government publications.

What formats are supported for audio output?

The API supports mp3, wav, opus, flac, and pcm formats. You specify the desired format in the response_format field of the request. This allows government agencies to select the most appropriate audio standard for their specific archival, broadcast, or accessibility infrastructure requirements without additional conversion steps.

Does the API support multiple languages?

Yes, it supports 23 languages including English, Spanish, French, German, Arabic, Chinese, Japanese, and Hindi. Any voice can speak any of these languages. If the language field is omitted, the system guesses the language from the script, defaulting to English for Latin text.

Are the voices suitable for official broadcasts?

The voices are based on licensed recordings: LibriTTS-R (CC BY 4.0), from LibriVox public-domain audiobook readings. They include presets like atlas (neutral, news) and orion (deep, documentary), which are well-suited for official content. Each generated file carries an inaudible watermark marking it as synthetic speech.

How is pricing calculated for large volumes?

Pricing is $10 per 1 million characters, or $0.01 per 1,000 characters. Failed requests are free, with the charge returned in full. There are no monthly plans, seats, or minimum spend requirements. Balance does not expire, allowing for predictable billing for high-volume content generation.

Is my input text stored or used for training?

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. Request metadata, including time, characters, and status, is kept solely for billing purposes. This ensures data privacy for sensitive government communications.

What happens if a synthesis request fails?

If synthesis fails, the charge is returned in full. You are not billed for unsuccessful requests. This ensures that your budget is only consumed by successful audio generation. You can retry the request or adjust parameters such as text length or voice selection.

Can I adjust the speed of the generated audio?

Yes, you can adjust the speed between 0.25 and 4.0. This is controlled via the speed field in the request body. Adjusting speed allows you to optimize audio length for specific broadcast slots or accessibility needs, such as slower speech for clearer comprehension.

Do I need to sign a contract to use the API?

No, there is no enterprise contract, SLA, or uptime guarantee. The API operates on a pay-as-you-go basis with no monthly plans. Accounts are created on the site, and you can start using the API immediately after signing up with Google or email. Support is by email only.

Is there a limit on the number of API keys?

There is one active key per account. However, a new key can be issued at any time, and the old one stops immediately. This allows for secure key rotation without downtime. You can manage your key directly from the /get-api-key/ dashboard page.

How long is the free trial valid?

The free trial provides $0.50 of credit, valid for 7 days. It is given when you sign in with Google. Accounts created with email and password start without this trial credit. The credit covers approximately 50,000 characters for testing purposes.

What payment methods are accepted?

The API accepts USDT on the TRON network (TRC-20) only. The minimum top-up is $5, and credits are added automatically within minutes. There are no cards, PayPal, subscriptions, or invoices with VAT. Balance does not expire, ensuring long-term usability for NGO projects.

Is there an uptime guarantee for the service?

No, there is no SLA, uptime guarantee, or on-premise install. Requests are processed one after another, so under load a request may wait in a queue. Typical speed is roughly real time on long texts. There is no on-premise install or data-center choice for guaranteed availability.

First request

curl

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

Civispeech provides a reliable cloud text-to-speech API designed for government agencies and non-profits. The service eliminates infrastructure overhead by handling synthesis on our servers, delivering audio files via a standard HTTP endpoint. This model ensures predictable billing and scalable performance for high-volume content generation without requiring internal server management.

The API is compatible with the OpenAI SDK, allowing agencies to integrate existing tools by changing the base URL. Requests are structured as JSON, enabling seamless integration with existing web applications and digital form workflows used in public services.

Cloud-based synthesis endpoint

Cloud-based synthesis endpoint

Send text to our endpoint and receive an audio file. The endpoint processes requests sequentially, ensuring stable performance under load. Long texts are split into parts of up to 4096 characters and joined manually.

Requests are processed one after another, so under load a request may wait in a queue. Typical speed is roughly real time, generating about 25 characters of text per second of audio.

  • Endpoint: POST https://api.rpg89thai.com/v1/audio/speech
  • Formats: mp3, wav, opus, flac, pcm
  • Input limit: 4096 characters per request

OpenAI SDK compatibility

Use the official OpenAI SDKs by pointing the base URL to https://api.rpg89thai.com/v1. Pass your API key in the Authorization header as Bearer tts-... . This allows agencies to use familiar libraries without rewriting integration code.

The request shape matches the OpenAI speech endpoint exactly, ensuring that standard SDK methods work with minimal configuration changes. Only the base URL and API key need adjustment.

JSON request structure

Submit a JSON body containing the model, input text, voice selection, and optional parameters like language and speed. The API returns the audio file directly in the response.

Required fields include model (tts-1 or tts-1-hd), input, and voice. Optional fields include response_format, speed, and language. Failed requests are free, with charges returned in full.

Voice Selection

Sound wave illustration for: Voice Selection

The Civispeech API provides eight distinct voice presets, allowing government agencies to select audio tones that align with specific broadcast contexts. Each voice is generated from licensed recordings, ensuring consistent quality across high-volume content generation without requiring new infrastructure.

Agencies can choose from four female and four male presets, ranging from warm narrators to neutral news readers. This variety supports diverse communication needs, from public service announcements to instructional training modules, while maintaining a professional standard suitable for official use.

Female presets: Aria, Nova, Luna, Sage

Female voices offer versatile options for different communication styles. Aria provides a warm, clear narrator tone suitable for detailed explanations. Nova delivers a bright, upbeat delivery for engaging public announcements. Luna offers a soft, storytelling quality for narrative content. Sage ensures a calm, instructional tone for guided procedures.

These presets are available for all 23 supported languages, ensuring consistent voice quality across international or multilingual government services. Any voice can speak any of these languages. The voices are based on licensed recordings from LibriTTS-R, providing a reliable foundation for synthetic speech generation.

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

Male presets: Felix, Milo, Atlas, Orion

Male voices provide structured options for official broadcasts. Felix offers an energetic delivery ideal for promotional content. Milo delivers a friendly, conversational tone for user-facing applications. Atlas ensures a neutral, news-style presentation for standard announcements. Orion provides a deep, documentary tone for formal records.

All male presets support the full range of 23 languages. The neutral tone of Atlas is particularly suitable for standard government communications where consistency and clarity are prioritized over emotional expression.

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

Neutral tones for official broadcasts

For official government broadcasts, neutral tones such as Atlas (male) and Sage (female) are recommended. These voices minimize emotional variance, ensuring that the message remains the primary focus. This is particularly important for standardized public service announcements and regulatory information delivery.

Each generated file carries an inaudible watermark, marking it as synthetic speech. This ensures transparency in audio content used for official communications, distinguishing it from human-recorded broadcasts without requiring additional labeling efforts from the agency.

Language Support

Sound wave illustration for: Language Support

Civispeech provides robust multilingual capabilities for government and NGO digital services, supporting 23 specific languages including Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. This range ensures broad accessibility for diverse public demographics without requiring multiple specialized engines.

Automatic language detection analyzes input script to select the appropriate voice, defaulting to English for Latin script text. However, for non-English text using Latin characters, explicit language codes are recommended to ensure accurate pronunciation and tone, preventing misinterpretation by the synthesis engine. This approach maintains consistency across high-volume content generation.

23 supported languages

The API supports 23 languages, covering major global and regional dialects essential for international NGOs and local government agencies. 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. Any voice can speak any of these languages, allowing flexible voice assignment regardless of linguistic origin.

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

Automatic language detection

The system automatically detects the language based on the character script of the input text. For Latin-script text, the engine defaults to English if no language code is provided. This reduces configuration overhead for simple English content but may cause inaccuracies for other Latin-script languages, such as Spanish or French, if not explicitly specified.

Explicit language code usage

For non-English text using Latin characters, setting the language field to the appropriate ISO code is essential. This ensures the synthesis engine applies the correct phonetic rules and intonation patterns. Without this parameter, the system may default to English pronunciation, affecting the clarity and professionalism of official broadcasts and digital forms.

Pricing Model

Sound wave illustration for: Pricing Model

Civispeech utilizes a straightforward usage-based pricing structure, charging $10 per million characters processed. This rate applies uniformly across all models and voices, ensuring predictable cost scaling for high-volume government or NGO content generation.

There are no monthly subscriptions, seat licenses, or minimum spend requirements. You pay strictly for the characters synthesized, with failed requests refunded in full, eliminating waste from failed API calls.

$10 per million characters

The standard rate is $0.01 per 1,000 characters, including spaces and punctuation. This flat rate applies to both 'tts-1' and 'tts-1-hd' models, allowing agencies to budget accurately for large-scale audio production without variable tier costs.

No monthly subscriptions

Unlike traditional SaaS platforms, Civispeech does not enforce monthly recurring fees or require commitments. Accounts remain active without periodic billing cycles, and balance does not expire, accommodating the irregular content release schedules typical of public sector projects.

Pay-as-you-go billing

Billing is driven by actual usage. Top-ups are processed via USDT (TRC-20) with a $5 minimum, credited automatically within minutes. This model supports agencies that prefer capital-efficient spending without waiting for end-of-cycle invoicing or VAT complications.

  • Minimum top-up: $5
  • Currency: USDT (TRC-20)
  • Credit auto-credits within minutes

Data Privacy

Sound wave illustration for: Data Privacy

Civispeech ensures that input text is processed solely for audio synthesis and is not utilized for model training. This guarantees that agency content remains distinct from our training datasets, maintaining the integrity of official communications.

Input text not used for training

Text submitted via the API is used exclusively to generate the requested audio file. It is not ingested into our training data, ensuring that sensitive government or NGO narratives remain private and are not repurposed for future model development.

Audio not stored after generation

Generated audio files are returned in the response and are not permanently stored on our servers. This minimizes the risk of data leakage, as the output exists only transiently during transmission to the client’s infrastructure.

Metadata retained for billing only

We retain request metadata, including timestamp, character count, and status, strictly for billing and usage verification. This data supports transparent invoicing without retaining the actual content of the spoken text or the resulting audio.

Data Privacy

Technical Specifications

Sound wave illustration for: Technical Specifications

The API accepts text inputs up to 4,096 characters per request. For longer documents, split the text into parts and join the resulting audio files. Short phrases may take a few seconds to generate, while longer texts process at approximately real-time speed (25 characters per second).

Requests are processed sequentially. Under high load, a request may wait in a queue before synthesis begins. This ensures consistent audio quality for all government and NGO broadcast materials without requiring custom infrastructure.

4096 character limit per request

Each API call supports a maximum of 4,096 characters. This limit applies to the input field in the JSON body. For speeches or lengthy public service announcements, divide the text into segments. Split the text into parts of up to 4096 characters and join the audio files.

  • Maximum input length: 4,096 characters
  • Spaces and punctuation count toward the limit
  • Split long texts and join audio files manually

Multiple output formats (MP3, WAV, FLAC)

The API supports MP3, WAV, Opus, FLAC, and PCM output formats via the response_format field. Select the format that best fits your archival or web delivery requirements. MP3 offers efficient compression for web delivery, while WAV and FLAC provide lossless quality for official records.

  • Supported formats: mp3, wav, opus, flac, pcm
  • Lossless options available for archival standards
  • Compressed options for efficient web delivery

Speed adjustment from 0.25x to 4.0x

Adjust the playback speed using the speed parameter, ranging from 0.25 to 4.0. This allows fine-tuning for accessibility needs or archival consistency. Standard speed is 1.0x. Adjustments apply to all generated audio files without re-synthesis.

  • Speed range: 0.25 to 4.0
  • Adjustable via speed parameter
  • Ideal for accessibility and archival standards

Use Cases

Sound wave illustration for: Use Cases

The API enables government agencies to convert static text into accessible audio for public announcements and citizen communication channels. Non-profit organizations utilize the same infrastructure to distribute multilingual content without managing voice talent or recording studios. This approach ensures consistent message delivery across diverse demographic groups while eliminating the overhead of dedicated audio production teams.

By generating speech programmatically, agencies maintain strict control over script accuracy and timing. The system processes text through standardized endpoints, allowing seamless integration with existing digital service platforms and mobile applications used for public information dissemination.

Public service announcements

Generate audio files for emergency alerts or community updates directly from text drafts. The API handles character limits up to 4096 per request. For lengthy official statements, split the text into parts and join the audio files manually.

Broadcasters can switch between voices like Atlas for neutral news delivery or Luna for softer storytelling formats. This flexibility allows agencies to tailor the auditory experience to the specific context of the announcement, whether urgent or informational.

  • Supports 23 languages for multilingual public outreach
  • Automatic text splitting for long announcements
  • Consistent voice quality across all generated files

Accessibility for digital forms

Convert form labels and instructions into audio for users with visual impairments. The API accepts text input and returns audio files in MP3 or WAV formats, compatible with standard assistive technologies used in government digital services.

By integrating the TTS endpoint into web forms, agencies provide immediate audio feedback without requiring users to load external plugins. This reduces friction for citizens interacting with digital government portals on various devices.

  • Returns mp3, wav, opus, flac, or pcm formats
  • No external plugins required for playback
  • Compliant with standard accessibility protocols

Training module audio

Create voiceovers for internal training materials or citizen education programs. Agencies can generate audio from standardized training scripts, ensuring that all learners receive identical narration regardless of the time of generation.

The speed parameter allows trainers to adjust playback rate between 0.25x and 4.0x, accommodating different learning speeds. This is particularly useful for complex procedural instructions or language learning modules where clarity and pace are critical.

  • Adjustable speed from 0.25x to 4.0x
  • Ideal for standardized training content
  • Supports multiple output formats for easy integration

Integration

Sound wave illustration for: Integration

The Civispeech API provides a straightforward REST endpoint for integrating text-to-speech capabilities into existing government and NGO digital infrastructure. By utilizing standard HTTP methods, agencies can incorporate speech synthesis into web applications, intranets, and document management systems without requiring specialized middleware or complex protocol adapters.

Authentication is managed via Bearer tokens, ensuring secure access to the synthesis endpoint. Each account maintains a single active API key, which can be rotated immediately if needed, providing strict control over which services can generate audio data on behalf of the organization.

Simple REST API

The service exposes a standard REST endpoint at https://api.rpg89thai.com/v1/audio/speech. This design allows integration using any language or platform that supports HTTP requests, eliminating the need for our own SDK or vendor-specific libraries. Agencies can use existing infrastructure tools to manage request queuing and response handling.

  • Endpoint: POST https://api.rpg89thai.com/v1/audio/speech
  • Compatible with standard HTTP clients
  • No proprietary middleware required

Bearer token authentication

Access is secured using a Bearer token passed in the Authorization header. Each account is issued one active key, which stops functioning immediately upon issuance of a new key, ensuring that only authorized internal services or partner applications can consume API credits.

This model simplifies key management for government IT departments, as there is no need to track multiple license keys or manage complex permission hierarchies for different departments.

  • Header: Authorization: Bearer <key>
  • Single active key per account
  • Immediate invalidation of old keys

Standard JSON body

Requests are submitted as JSON objects, allowing precise control over voice selection, output format, and playback speed. The structure mirrors industry standards, enabling easy adoption by development teams familiar with common API patterns.

Response bodies contain the generated audio data or error codes, allowing for deterministic error handling in automated workflows such as digital form accessibility or training module generation.

  • Input format: JSON
  • Supports model, input, voice, response_format, speed fields
  • Predictable error response structure

Support

Sound wave illustration for: Support

Support is handled exclusively via email. There is no phone number, live chat, or ticketing portal. This ensures all queries are documented and traceable, which is critical for government agencies requiring audit trails for vendor communications. Responses are provided by the technical team directly, without intermediary support tiers.

While we do not offer real-time live chat, our documentation provides complete coverage of all endpoints. This allows your engineering teams to integrate the API efficiently without waiting for manual assistance during standard implementation phases.

Email-only support

All support inquiries are managed through email. This approach eliminates the noise of live channels and ensures a permanent record of your communication. It is ideal for agencies that need to archive support interactions for compliance or internal review.

There is no dedicated phone line or live chat widget on the site. If you require immediate assistance during a critical deployment, email remains the single point of contact for all technical and billing issues.

  • Single point of contact via email
  • Permanent record of all communications
  • No intermediary support tiers

No live chat

We do not operate live chat services. This decision reduces overhead and keeps costs predictable for high-volume API users. You will not encounter wait times for a generic agent, but you will also not have instant visual confirmation of your query status.

For most government and NGO workflows, asynchronous communication is sufficient. Our email support team addresses issues within standard business hours, providing detailed technical explanations rather than quick, superficial answers.

Documented endpoints

Our API documentation is comprehensive and covers all available endpoints. You can find details on request structures, authentication methods, and error codes. This reduces the need for direct support inquiries during integration.

The documentation includes ready-to-use curl examples and SDK configurations. Your development team can resolve most integration questions independently, minimizing the volume of support tickets we receive.

  • Complete endpoint documentation
  • Ready-to-use code examples
  • Clear error code definitions

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. While short phrases may take a few seconds, long texts generate at roughly real-time speed.

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. Tether (USDT)
  3. IETF RFC 7845: Ogg Opus
  4. LibriVox public-domain audiobooks
  5. Creative Commons Attribution 4.0
  6. LibriTTS-R paper (arXiv 2305.18802)
  7. MDN: Web Speech API
  8. LibriTTS-R corpus (OpenSLR 141)
  9. ISO 639 language codes
  10. curl documentation
  11. W3C WAI: making audio and video accessible
  12. Python documentation

More on this site