Frequently asked questions
What is text-to-speech for agencies?
CivicVoice is a cloud API that converts published text into accessible audio files. By sending a POST request, agencies receive synthesized speech to meet accessibility standards. It simplifies compliance without complex infrastructure, allowing teams to generate audio for websites, documents, and public announcements efficiently.
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. Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali and all others not in the list are not supported.
Can I use the API for public broadcasts?
Yes. The API generates audio files suitable for public use. Each file includes an inaudible watermark marking it as synthetic speech. Input text is used only for generation and not for training, ensuring your content remains private while meeting transparency requirements for public consumption.
How is pricing calculated?
Pricing is $10 per 1 million characters, or $0.01 per 1,000 characters. Spaces and punctuation count as characters. Failed requests are free with a full charge return. There are no monthly plans, seats, or minimum spends, so you only pay for what you use.
Is there a free trial?
Yes. Signing in with Google provides $0.50 of credit, valid for 7 days, allowing about 50,000 characters. Accounts created with email and password start without trial credit. This allows agencies to test the API’s quality and integration before committing to USDT top-ups.
What audio formats are available?
You can request audio in mp3, wav, opus, flac, or pcm formats via the response_format field. These formats support various playback environments, from web players to broadcast systems. The API returns the audio file directly in the response, ready for immediate use or storage.
Do I need a custom voice?
No. The API provides 8 preset voices based on licensed recordings: Aria, Nova, Luna, Sage, Felix, Milo, Atlas, and Orion. Custom voice cloning is not offered, so you choose from these established presets.
How long can the text be?
Each request supports up to 4096 characters of input text. For longer documents, split the text into parts and join the resulting audio files. Typical generation speed is roughly real-time, processing about 25 characters per second, ensuring efficient conversion for standard agency documents.
Are the voices licensed?
Yes. All voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and public-domain audiobook readings from LibriVox. This ensures legal clarity for agencies using the audio. The synthetic watermark in each file further identifies the content as AI-generated without infringing on specific performer rights.
Can I change my API key?
Yes. You can issue a new API key at any time from your account dashboard. When a new key is issued, the old one stops working immediately. This allows agencies to rotate keys for security without downtime, ensuring secure access to the TTS endpoint.
Is there a rate limit?
Yes. The limit is 60 requests per minute per key. New accounts start with 10 requests per minute until the first top-up. Requests are processed sequentially, so high volume may queue. This ensures stable performance for agency workflows without requiring complex load balancing infrastructure.
Do I need to install software?
No. CivicVoice is a cloud API accessible via standard HTTP requests. You can use the official OpenAI SDKs by changing the base URL or send plain HTTP POST requests. No mobile SDK, WordPress plugin, or local software installation is required to integrate the service.
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. Only request metadata like time, characters, and status are kept for billing purposes.
How do I pay with USDT?
Top-ups are made using USDT on the TRON network (TRC-20) only. The minimum amount is $5. Credits are added automatically within minutes after your transfer is confirmed. There are no cards, PayPal, or invoices, providing a direct and transparent payment method for agencies.
First request
curl
curl https://api.pigpgthai.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.mp3Accessible audio for public service
CivicVoice helps public agencies turn published text into accessible audio files. By sending a simple request, you generate clear speech for reports, notices, and guides, ensuring information reaches everyone efficiently without complex infrastructure.
Read documents aloud
Convert long texts up to 4096 characters into audio. The API handles the synthesis, returning an audio file in a format you choose (mp3, wav, opus, flac, or pcm) that you can embed directly on your website or share with constituents.
- Support for standard audio formats
- Real-time generation for short texts
Support diverse users
Ensure compliance with accessibility standards by providing audio alternatives for visual content. Our voices are clear and neutral, suitable for news updates, instructions, and storytelling.
- 23 supported languages
- 8 distinct voice presets
Simple integration
Use a standard POST request with JSON. If you know the OpenAI SDK, you already know how to use CivicVoice. Just update the base URL and start generating audio.
- OpenAI-compatible endpoint
- No custom SDK required
Clear voices for every context
Your published documents deserve to be heard, not just read. CivicVoice turns static text into accessible audio, ensuring that citizens with visual impairments or language barriers can consume public information independently.
With eight distinct voice presets, you can match the tone of your content precisely, whether it is a urgent municipal alert or a calm educational guide.
News and updates
Use Atlas for neutral, clear news broadcasts or Felix for energetic promotional announcements. Both voices ensure your public notices are delivered with the right level of urgency and clarity.
Since requests are processed sequentially, your updates will be generated reliably; under load, a request may wait in a queue.
- Neutral tone for official notices
- Energetic tone for community events
Instructions and guides
Sage provides a calm, instructional voice ideal for step-by-step public service guides. Nova’s bright tone works well for upbeat community engagement materials.
These voices are optimized for clarity, making complex procedures easier to follow for users who prefer listening over reading long PDFs.
- Calm instructional guidance
- Bright engagement content
Storytelling and engagement
Luna’s soft, storytelling voice brings historical archives or community stories to life. Orion’s deep documentary tone suits long-form public reports or annual reviews.
Generate audio files up to 4096 characters per request, allowing you to create substantial narrative segments that keep listeners engaged.
- Soft narrative style
- Deep documentary narration
Support for many languages
Our API supports 23 languages, ensuring your public communications reach diverse communities effectively. Any voice can speak any of the supported languages, allowing you to maintain consistent tone across different regions while adapting to local linguistic needs.
For non-English Latin-script text, setting the language code ensures accurate pronunciation. If omitted, the system guesses the language, defaulting to English for Latin scripts.
European languages
We support major European languages including French, German, Spanish, Italian, and Portuguese. Additional coverage includes Danish, Finnish, Greek, Norwegian, Polish, Russian, Swedish, and Turkish, ensuring broad accessibility across the continent.
- French, German, Spanish, Italian, Portuguese
- Danish, Finnish, Greek, Norwegian, Polish, Russian, Swedish, Turkish
Asian languages
Asian language support covers Chinese, Japanese, Korean, and Hindi. We also include Malay and Arabic to serve diverse linguistic groups. Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali and all others not in the list are not supported.
- Chinese, Japanese, Korean, Hindi
- Malay, Arabic
African and Middle Eastern languages
Swahili is supported to aid communication in East Africa. Arabic covers many Middle Eastern regions. We do not support Bengali or other languages outside the listed 23.
- Swahili, Arabic
How it works
CivicVoice API converts published text into accessible audio files through a simple HTTP request. Agencies send text via JSON, and the system returns synthesized speech without complex infrastructure setup.
Send text
Post your text to the API endpoint with your secret key. You can send up to 4096 characters per request, covering documents, notices, or guide instructions. The system handles language detection automatically, though you can specify ISO codes for precision.
- Use POST requests with standard JSON bodies
- Supports text up to 4096 characters per call
- Optional language code for non-English Latin scripts
Receive audio
The API returns an audio file in your chosen format (mp3, wav, opus, flac, or pcm). Responses are typically generated in roughly real time (about 25 characters per second), though longer documents may queue briefly under load. Each file includes an inaudible watermark to identify it as synthetic speech.
- Choose from mp3, wav, opus, flac, or pcm
- Audio generated in near real-time
- Inaudible watermark marks synthetic origin
Handle errors
If synthesis fails, you receive a standard error response, and the request is free. Failed requests do not deduct from your balance, ensuring predictable costs for government budgets. You can retry with adjusted parameters or split larger texts into smaller chunks.
- Failed requests are free
- No deduction from character balance
- Retry with adjusted parameters
Pricing for public budgets
CivicVoice charges $0.01 per 1,000 characters, making it easy to forecast costs for annual reports or daily updates. You only pay for characters processed, including spaces and punctuation, with failed requests refunded in full.
Pay per character
Usage is billed at $10 per million characters. There are no monthly plans or minimum spend requirements, allowing agencies to scale usage based on actual demand.
- $0.01 per 1,000 characters
- 60 requests per minute limit
- Free trial: $0.50 credit
No hidden fees
The price includes all processing. We do not charge for extra voices, languages, or format conversions. Accounts start with a $0.50 free trial valid for 7 days.
Crypto top-up
Top up your balance using USDT on the TRON network (TRC-20). Minimum deposit is $5, and credits appear automatically within minutes. No invoices or VAT complications.
- USDT (TRC-20) only
- Minimum $5 deposit
- Automatic credit within minutes

Technical simplicity
CivicVoice API is designed for straightforward integration. It follows the same request structure as the OpenAI speech endpoint, allowing agencies to use existing OpenAI SDKs by simply updating the base URL to https://api.pigpgthai.com/v1. This means your current development workflow remains largely unchanged, though you must update the base URL and provide your own API key.
OpenAI compatible
Use the official OpenAI SDKs with minimal configuration. Just change the base_url to our API endpoint and provide your Bearer token. This compatibility ensures you can leverage familiar tools without learning a new client library.
- Works with official OpenAI SDKs
- Single base URL change required
JSON requests
Send text via standard POST requests to /v1/audio/speech. The JSON body includes model, input, voice, response_format, speed, and optional language. This structure is consistent and easy to implement in any programming language.
- Standard POST JSON body
- Consistent field structure
Standard formats
Receive audio in widely supported formats: mp3, wav, opus, flac, or pcm. This flexibility ensures compatibility with various government websites, mobile apps, and accessibility tools without needing complex conversion pipelines.
- mp3, wav, opus, flac, pcm
- Wide tool compatibility
Data and privacy
CivicVoice is designed for transparency. We process your text solely to generate the audio file you request. Input text is used only to produce the audio and is not stored; generated audio is returned in the response and not stored.
Text used only for generation
Your submitted text is processed exclusively to create the audio output. Once the audio file is generated and returned to you, the original text is not stored for any other purpose. This ensures that your public notices, reports, or guides remain private to your workflow.
No training on input
Unlike many consumer AI services, we do not use your input text to train our models. Your data remains yours. The audio generated is returned in the response and is not stored on our servers, meaning your content is not used to improve our engine or sold to third parties.
Billing metadata kept
We retain minimal metadata required for accurate billing and service management. This includes the timestamp, character count, and request status. This information is used solely to verify your usage against your account balance and ensure fair application of our per-character pricing model.
- Timestamp of request
- Character count processed
- Request status (success/failed)
Why agencies choose us
Agencies need tools that fit existing workflows without requiring new infrastructure or dedicated DevOps teams. CivicVoice API is designed to be lightweight, allowing your technical staff to integrate audio generation into public service portals with minimal overhead.
This simplicity extends to how you manage costs and dependencies. By avoiding proprietary ecosystems, you maintain flexibility and control over your budget and data lifecycle.
Lightweight API ['Our API requires no complex setup or heavy SDKs. You simply send a JSON request and receive an audio file. This reduces the engineering time needed to launch accessible content, letting your team focus on service delivery rather than infrastructure maintenance.']
No vendor lock-in ['We use a standard OpenAI-compatible endpoint shape. If you need to switch providers in the future, your code requires only a base URL change. You are not tied to a proprietary format or a single vendor’s proprietary ecosystem, ensuring long-term flexibility.', {'h3': 'Transparent limits', 'paras': ['Your usage is clear from day one. With a flat rate of $10 per million characters and no hidden fees, you can predict costs accurately. Rate limits are explicit (60 requests per minute), ensuring you know exactly how the system handles load without surprise overages.', 'bullets']}, {'h3': 'No vendor lock-in', 'paras': ['We use a standard OpenAI-compatible endpoint shape. If you need to switch providers in the future, your code requires only a base URL change. You are not tied to a proprietary format or a single vendor’s proprietary ecosystem, ensuring long-term flexibility.', {'h3': 'Transparent limits', 'paras': ['Your usage is clear from day one. With a flat rate of $10 per million characters and no hidden fees, you can predict costs accurately. Rate limits are explicit (60 requests per minute), ensuring you know exactly how the system handles load without surprise overages.']}, {'h3': 'Transparent limits', 'paras': ['Your usage is clear from day one. With a flat rate of $10 per million characters and no hidden fees, you can predict costs accurately. Rate limits are explicit (60 requests per minute), ensuring you know exactly how the system handles load without surprise overages.']}], 'image': 'A clean, modern office desk with a laptop showing simple API code and a coffee cup, symbolizing lightweight integration in a government or NGO workspace, soft natural lighting, no logos, no close-up faces'}]
Get started today
Getting started with CivicVoice API is designed to be quick and straightforward for agency teams. You can sign up using your existing Google account or create a standard email-based login directly on the /get-api-key/ page. This simple onboarding process ensures your team can begin testing the service without complex procurement steps or waiting for IT approval on vendor contracts.
Create an account
Visit the registration page and choose between Google sign-in or email/password. If you sign in with Google, you immediately receive $0.50 in trial credit, valid for seven days. Email-based accounts start with a zero balance, allowing you to top up only when ready. Each site account is independent, so your agency’s credentials remain distinct and secure.
- Google or email registration
- Instant trial credit with Google sign-in
- Independent per-site accounts
Get your key
Once registered, your dashboard displays your unique API key and current balance. The key format begins with "tts-" and is used in the Authorization header. You can generate a new key at any time; the old one stops immediately. This ensures that if a key is compromised, you can revoke access instantly without affecting other services.
- Bearer token: tts-...
- Instant revocation on key change
- Visible usage metrics and balance
Try the demo
Use your trial credit to test the API with real documents. Send a POST request to the speech endpoint with text up to 4096 characters. The system returns an audio file in your chosen format, such as mp3 or wav. Failed requests are free, so you can experiment with different voices and speeds without worrying about costs.
- Test with $0.50 trial credit
- Supports mp3, wav, opus, flac, pcm
- No charge for failed requests
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Streamline public service delivery through transparent collaboration between government agencies and non-profit partners to enhance citizen trust and operational efficiency.
23 languages
Any voice speaks any of these languages.
