How to Use Our TTS API for Public Announcements in 23 Languages?

By PublicVoice editorial team · Updated 2026-11-18

This guide shows government teams and NGOs how to convert public announcements into clear audio files using the Civichord TTS API. You will learn to generate speech in 23 languages, select appropriate voices like Atlas for news or Luna for storytelling, and manage requests efficiently. We cover practical workflows for alert systems, ensuring your content reaches diverse audiences with reliable, affordable text-to-speech technology.

You will receive step-by-step instructions for preparing text, handling character limits, and integrating the API into existing CMS or web apps. This page is designed for technical leads and content managers who need a simple, transparent API without complex subscriptions. By the end, you will know how to deploy audio announcements confidently, monitor usage, and troubleshoot common issues with our email support.

How to Use Our TTS API for Public Announcements in 23 Languages?

Frequently asked questions

What is TTS?

Text-to-speech (TTS) is a cloud API that converts written text into audio files. You send a POST request with your text, and receive an audio file in formats like mp3 or wav. It is a simple tool for turning documents into clear spoken announcements.

Why is TTS good for public announcements?

TTS provides reliable, consistent audio for public announcements across 23 languages. It scales easily for large teams and ensures accessibility. You can generate clear audio files from text documents quickly, ensuring your message reaches diverse audiences efficiently without the variability of human recording sessions.

How do I choose a voice for announcements?

Select from eight presets based on tone. For news, use atlas (neutral). For storytelling, try luna (soft). For energetic promos, use felix. Each voice supports all 23 languages. Choose the preset that best matches the mood and clarity required for your specific public announcement.

Can I use TTS for emergency alerts?

Yes, you can use TTS for emergency alerts. The API generates audio quickly, though short phrases take a few seconds. Ensure you split long texts into parts under 4096 characters. The audio is clear and synthetic, marked with an inaudible watermark, making it suitable for urgent public notifications.

How long does it take to generate audio?

Generation takes roughly real-time for long texts, about 25 characters per second. Short phrases take a few seconds. Requests are processed sequentially, so under load, you may experience queue delays. Plan your generation timing accordingly to ensure timely delivery of your public announcements.

What languages are supported for announcements?

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, ensuring broad reach for your diverse audience needs.

Do I need a technical team to use the API?

No dedicated technical team is required. The API follows the standard OpenAI request shape, so official OpenAI SDKs work by changing the base URL. You can also use simple HTTP requests. Our documentation provides ready curl examples, making integration straightforward for teams of any size.

Can I change the speed of the announcement?

Yes, you can adjust the speed between 0.25 and 4.0. This allows you to make announcements clearer for listeners or faster for quick updates. Adjust the speed parameter in your API request to fit the pacing requirements of your specific public announcement content.

What happens if the internet goes down?

If the internet goes down, your API requests will fail. Failed requests are free, and any charge is returned in full. You can retry the request once connectivity is restored. Your generated audio is not stored, so you will need to regenerate it.

Is the audio clear enough for loudspeakers?

Yes, the audio is clear and suitable for public use. Voices like atlas (neutral) and sage (calm) are optimized for clarity. The synthetic speech is marked with an inaudible watermark. It is suitable for loudspeaker systems, providing consistent volume and tone for effective public communication.

Do I need to pay for every announcement?

You pay based on characters used, at $10 per 1 million characters. Failed requests are free. You need a positive balance to generate audio. Credits are added via USDT on the TRON network. There are no monthly plans, so you only pay for what you use.

Can I use the same voice for all announcements?

Yes, you can use the same voice for all announcements. Choose a preset like atlas for news or aria for narration. The voice remains consistent across all your generated audio files. This ensures brand consistency and listener familiarity across your various public communication channels.

How do I store the generated audio?

The API returns the audio file in the response but does not store it. You must save the audio file to your own storage system after receiving it. Input text is used only for production and not stored for training. You manage your own audio archives.

Can I integrate TTS with my website?

Yes, you can integrate TTS with your website using the API. Send text via POST requests to the speech endpoint and receive audio files. Use the OpenAI SDK or plain HTTP. This allows you to embed audio announcements directly into your web content for better accessibility.

Understanding TTS for Announcements

Sound wave illustration for: Understanding TTS for Announcements

Our text-to-speech API converts plain text documents into clear audio files via a simple cloud endpoint. By sending a JSON payload, government teams and NGOs receive synthesized speech in 23 languages, eliminating the need for complex infrastructure or specialized hardware. This process transforms static public notices into accessible audio announcements ready for immediate distribution.

Text to Audio Conversion

The API accepts your text and returns an audio file in formats like MP3, WAV, or FLAC. You control the voice, speed, and language, ensuring the output matches your specific announcement requirements. This direct conversion method keeps the workflow simple and reliable for high-volume public communication.

  • Converts up to 4096 characters per request
  • Outputs standard audio formats (MP3, WAV, FLAC)
  • Supports 23 languages including English, Spanish, and Arabic

Why Use TTS for Alerts

Public announcements require speed and consistency. TTS generates audio faster than human recording for standard texts, processing roughly 25 characters per second. This efficiency ensures that urgent alerts, weather warnings, or civic updates reach the public quickly without waiting for studio availability.

Benefits for NGOs

NGOs often operate with limited budgets and diverse linguistic audiences. Our pricing model charges only $0.01 per 1,000 characters, making large-scale audio distribution affordable. With no monthly fees or minimum spends, teams can scale their outreach efforts based on actual usage, ensuring resources go directly to the community.

Preparing Your Text

Sound wave illustration for: Preparing Your Text

Before sending text to the API, ensure your content fits within the 4096-character limit per request. This limit includes spaces and punctuation, so concise phrasing helps avoid unnecessary splitting. For public announcements, clear and direct language reduces character count while maintaining clarity for listeners.

If your announcement exceeds the limit, split it into smaller chunks. The API returns individual audio files that you can join later. Keeping text within bounds simplifies processing and reduces potential sync issues when combining segments for final playback.

Character Limits

Each API request accepts up to 4096 characters, including spaces and punctuation. Exceeding this limit will result in an error, so verify your text length before submission. For longer announcements, divide the content into segments under this threshold.

Shorter texts process quickly, but complex sentences may require careful editing to stay within bounds. Always count characters accurately, as spaces and punctuation contribute to the total. This ensures smooth synthesis without unexpected interruptions.

  • Max 4096 characters per request
  • Includes spaces and punctuation
  • Split longer texts into chunks

Language Detection

The API guesses the language from the text script, defaulting to English for Latin script. For non-English texts using Latin characters, explicitly set the language parameter to avoid misinterpretation. 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.

Incorrect language settings can lead to unnatural pronunciation. Always verify the detected language, especially for mixed-script texts. Using the correct ISO code ensures accurate speech synthesis for your target audience.

  • Default: English for Latin script
  • Set explicit language for non-English
  • Supported: 23 languages listed

Formatting Tips

Avoid special characters that may confuse the synthesizer. Use standard punctuation like periods and commas for natural pauses. Remove unnecessary line breaks or symbols that do not affect speech. This keeps the audio clear and professional for public announcements.

Test small samples to ensure formatting does not introduce unwanted pauses or errors. Adjust spacing and punctuation for optimal flow. Clear, simple text yields the best results for accessibility and public communication.

  • Use standard punctuation
  • Avoid special characters
  • Test samples for flow

Choosing the Right Voice

Sound wave illustration for: Choosing the Right Voice

Selecting the correct voice ensures your public announcements are received with clarity and appropriate tone. Whether you are broadcasting emergency alerts or community updates, the choice of voice directly impacts how the message is perceived by your audience. Our eight presets cover a range of styles to match the context of your communication needs.

Each voice is designed for specific use cases, from neutral news delivery to warm storytelling. By aligning the voice with the content type, you ensure that the audio feels natural and authoritative, enhancing the effectiveness of your public announcements across different languages and cultures.

Neutral News Voice

Atlas provides a neutral, news-style delivery ideal for official public announcements. His tone is straightforward and professional, making it suitable for government updates, weather alerts, or factual reports where clarity is paramount. This voice ensures that the information is delivered without unnecessary emotional bias, allowing the content to speak for itself.

  • Ideal for official government updates
  • Neutral and professional tone
  • Clear articulation for factual content

Warm Storyteller Voice

Luna offers a soft, storytelling style that engages listeners in a more personal way. This voice is perfect for community stories, historical highlights, or cultural announcements where a warmer tone can help connect with the audience on an emotional level. It adds a human touch to your digital communications.

  • Soft and engaging tone
  • Great for community stories
  • Adds a personal touch to announcements

Clear Instructional Voice

Sage delivers a calm, instructional voice that is excellent for guiding users through processes or providing detailed instructions. Her clear and steady delivery helps ensure that listeners can easily follow along, making her ideal for educational content, step-by-step guides, or detailed public service announcements.

  • Calm and steady delivery
  • Perfect for educational content
  • Clear guidance for detailed instructions

Making the API Request

Sound wave illustration for: Making the API Request

To generate audio, send a POST request to https://api.play66mb.com/v1/audio/speech. Include your Bearer token in the Authorization header and specify the model, voice, and input text. This standard endpoint structure allows you to use existing OpenAI SDKs by simply adjusting the base URL.

Sending the Request

Construct a JSON body containing the model (e.g., "tts-1"), input text, voice preset, and response_format. Ensure the text does not exceed 4,096 characters. Include an optional language ISO code to prevent incorrect detection for non-English Latin text.

Handling the Response

A successful response returns the audio file directly. If synthesis fails, the charge is reversed immediately. Check the status code to confirm delivery. Under load, requests may queue, so implement retry logic with exponential backoff for your announcement systems.

Saving the Audio

Save the response body to a file locally or to your cloud storage. The API returns formats like mp3, wav, or opus. Choose the format that best fits your distribution channel, ensuring compatibility with your public address systems or mobile apps.

Handling Long Texts

Sound wave illustration for: Handling Long Texts

When your public announcement exceeds 4,096 characters, you must split the input text into smaller chunks before sending them to the API. Each request processes one chunk, so dividing your document ensures no data is lost due to length restrictions. This step is essential for maintaining audio continuity across long broadcasts or accessible content files.

Once you receive the individual audio files for each chunk, you need to join them into a single coherent file. While the API handles synthesis sequentially, the final assembly depends on your implementation. Proper joining ensures that the transition between segments remains smooth for listeners, avoiding abrupt cuts or gaps in the playback.

Splitting Text Chunks

Divide your text into segments of up to 4,096 characters, ensuring you do not break words in the middle of a sentence if possible. This keeps the audio natural and easier for listeners to follow. Since the API processes requests sequentially, splitting allows you to manage the queue effectively.

Remember that spaces and punctuation count toward the 4,096-character limit. Plan your splits carefully to avoid wasting characters on unnecessary whitespace, which can reduce the total amount of content you can process per request.

  • Max 4,096 characters per request
  • Include spaces and punctuation in the count
  • Avoid breaking mid-sentence where possible

Joining Audio Files

After receiving the audio responses for each chunk, concatenate the files in the order you sent them. Use a reliable audio processing library or tool to merge the segments seamlessly. This ensures that the final output plays as a single, continuous announcement without noticeable pauses between chunks.

The generated files retain the specified format (e.g., MP3 or WAV). Ensure your joining method preserves the sample rate and encoding to avoid quality degradation. This is crucial for public announcements where clarity is key.

  • Maintain order of chunks
  • Preserve audio format and quality
  • Use reliable concatenation tools

Sync Issues

Since requests are processed one after another, longer texts may experience queuing delays, but the audio segments themselves remain synchronized if joined correctly. However, if you experience sync issues, verify that you are not introducing extra silence during the join process. Some audio libraries add small gaps between files, which can be distracting in public announcements.

To minimize sync problems, test your joining logic with a sample long text before deploying it to production. This helps you identify any artifacts or delays that might occur when combining multiple audio segments into a single file.

  • Check for extra silence
  • Test joining logic first
  • Verify audio continuity

Testing Your Audio

Sound wave illustration for: Testing Your Audio

Testing ensures your public announcements sound clear and accurate before deployment. Use the API’s speed controls and format options to verify audio quality across different devices and languages.

Verify that the synthesized speech matches your intended message. Check for proper pacing, correct language pronunciation, and appropriate voice tone for your specific audience.

Quality Checks

Download the generated audio in MP3 or WAV format to test playback on standard speakers and mobile devices. Listen for clarity, especially in noisy environments typical of public announcements. Ensure the audio file is not corrupted and plays smoothly without gaps.

Check that the watermark is present if required by your internal policies, though it is inaudible. Verify that the character count matches your input text to confirm no silent truncation occurred during generation.

  • Play audio on low-quality speakers to test intelligibility
  • Verify file format compatibility with your announcement system
  • Check for audio artifacts or clipping in loud sections

Language Verification

Confirm that the selected voice correctly pronounces language-specific characters. For example, verify German umlauts or Japanese kana are rendered accurately. If the language is not specified, ensure the script is correctly guessed, especially for Latin-script texts that might not be English.

Test edge cases like mixed-language text or proper nouns. Ensure that the voice does not default to English when a specific language code is provided. Use the /v1/voices endpoint to confirm the voice supports your target language.

  • Verify pronunciation of local proper nouns
  • Test mixed-language segments for smooth transitions
  • Confirm voice supports the target ISO code

Speed Adjustments

Adjust the speed parameter between 0.25 and 4.0 to find the optimal pace for your audience. Slower speeds (e.g., 0.75) may improve comprehension for elderly audiences or complex announcements. Faster speeds (e.g., 1.5) are suitable for repeated alerts.

Ensure that speed changes do not distort the voice quality. Test the same text at different speeds to find the best balance between clarity and brevity. Remember that requests are processed sequentially, so longer texts may take time to generate at higher speeds.

  • Test 0.5x speed for elderly audiences
  • Try 1.5x speed for quick alerts
  • Verify voice clarity at extreme speeds

Deploying to Production

Sound wave illustration for: Deploying to Production

Deploying your text-to-speech API for public announcements requires monitoring usage and managing rate limits effectively. Civichord’s API processes requests sequentially, so understanding your throughput is crucial for timely deployments.

Error logging helps you track failed or queued requests, ensuring your announcements reach the audience without unexpected delays. This section covers how to keep your system running smoothly in production.

Monitoring Usage

Track your character consumption and request volume to stay within your budget. Civichord provides usage data so you can plan ahead for large-scale public announcements.

Rate Limit Management

The API allows 60 requests per minute per key. If you exceed this, requests may queue or fail. Use this limit to design your deployment strategy, especially for urgent alerts.

  • Limit: 60 requests/minute per key
  • New accounts start with 10 requests/minute
  • Requests process sequentially under load

Error Logging

Log failed synthesis requests to identify issues like invalid voice codes or network errors. This helps you troubleshoot and ensure reliable audio delivery for your public announcements.

Deploying to Production

Common Mistakes

Sound wave illustration for: Common Mistakes

When building public announcement systems, overlooking character limits is a frequent error. The API accepts up to 4,096 characters per request. If your alert text exceeds this, the synthesis will fail or cut off, leaving citizens with incomplete instructions.

Ignoring Character Limits

Long emergency broadcasts or detailed NGO updates often surpass this threshold. You must split your text into smaller chunks and join the resulting audio files. This ensures every word of your public notice is delivered clearly without truncation.

  • Limit input text to 4,096 characters per request.
  • Split longer documents into logical segments before sending.
  • Join output audio files to create a seamless broadcast.

Wrong Language Codes

Assuming the system guesses your language correctly can lead to awkward accents. While the API detects scripts, Latin-script text defaults to English. For non-English announcements, always explicitly set the language parameter to avoid mispronunciation in critical alerts.

Missing Headers

Requests will fail silently or return 401 errors if the Authorization header is missing or malformed. Ensure you send Bearer tts-... with your valid key. Without this, your government or NGO application cannot retrieve the audio files needed for deployment.

Integration with Existing Systems

Sound wave illustration for: Integration with Existing Systems

Public institutions often need to broadcast daily updates or emergency notices across multiple channels. By integrating Civichord’s API into existing workflows, teams can automatically convert drafted announcements into audio files for websites, digital signage, or intranet portals without manual recording.

CMS Integration

Connect the API to your content management system to generate audio versions of articles or press releases. Use the POST endpoint with your text input and desired voice preset. The system returns an MP3 file that your CMS can embed directly as an audio player, ensuring accessible content for visually impaired visitors.

  • Automate audio generation from existing blog or news posts
  • Support standard formats like MP3 and WAV for web players
  • Use the API to trigger audio creation upon content publishing

Alert Systems

For NGOs or government bodies, timely communication is critical. Integrate the TTS API with your alerting infrastructure to convert emergency text messages into voice broadcasts. This allows for rapid distribution of safety instructions in multiple languages, ensuring clarity even for low-literacy populations or those with visual impairments.

  • Convert SMS or email alerts into voice notifications
  • Support urgent announcements in up to 23 languages
  • Integrate with existing notification engines via simple API calls

Mobile Apps

Enhance mobile accessibility by integrating audio playback for text-based content. Use the API to generate short audio clips for push notifications or in-app news feeds. Since the API returns standard audio files, they can be easily played using native mobile media players without requiring custom decoding libraries.

  • Generate audio for push notifications or in-app news
  • Use standard audio formats compatible with iOS and Android
  • Reduce data usage by playing pre-generated audio files

Security Considerations

Sound wave illustration for: Security Considerations

Protecting your API key is essential for securing your account and billing. Since Civichord issues one active key per account, store it securely in environment variables rather than hardcoding it in client-side code. If you suspect a leak, generate a new key immediately; the old one stops working instantly.

API Key Protection

Treat your key like a password. Use it only in trusted backend services where it remains hidden from end-users. If you rotate the key, update your systems promptly to avoid service interruption.

  • Store keys in environment variables, not source code.
  • Generate a new key via the dashboard to invalidate the old one instantly.
  • Monitor usage in your dashboard for unusual activity.

Data Privacy

Your input text is used solely to generate audio and is not used for training models. Generated audio is returned in the response and not stored on our servers. We retain request metadata (time, characters, status) strictly for billing purposes.

  • Input text is not used for training.
  • Audio files are not stored after delivery.
  • Metadata is kept only for billing records.

Encryption

All API requests are made over HTTPS, ensuring data is encrypted in transit. This protects your text payload and API key from interception while traveling between your application and our servers at api.play66mb.com.

  • HTTPS encryption secures all API communications.
  • No additional encryption layers are required for standard usage.

Support and Troubleshooting

Sound wave illustration for: Support and Troubleshooting

Support for Civichord is available exclusively via email. There is no phone number or live chat option for government teams and NGOs. Our team handles inquiries regarding billing, API key issues, and general usage questions through this channel.

Email Support

Contact our support team at [email protected] for any assistance. We aim to respond to all emails within one business day. Please include your API key and a description of the issue to help us assist you faster.

Common Errors

The most frequent issue is hitting the rate limit of 60 requests per minute. If you exceed this, your request will fail until the window resets. Another common error is using an invalid voice ID or an unsupported language code not in our 23-language list.

  • 429: Rate limit exceeded (60 req/min)
  • 400: Invalid voice or language parameter
  • 401: Expired or incorrect API key

Documentation Links

For detailed technical guides, visit our /docs/ page. It covers all endpoints, including /v1/audio/speech and /v1/voices. You can also find ready-to-use curl examples and SDK configuration tips there.

Future Scaling

Sound wave illustration for: Future Scaling

As your public announcement needs grow, you can scale usage without changing your integration. The API handles increased volume by processing requests sequentially, ensuring consistent output quality. You can generate hundreds of audio files daily, with each request limited to 4,096 characters. For larger documents, split the text into chunks and join the resulting audio files seamlessly.

Increasing Volume

The API supports high-throughput generation suitable for large-scale public alerts. Each key allows 60 requests per minute, which is sufficient for most NGO and government deployment patterns. If you exceed the limit, requests queue automatically. Failed requests incur no charge, protecting your budget during peak usage.

  • 60 requests per minute per key
  • Requests queue under load
  • No charge for failed synthesis

Adding Languages

All 23 supported languages are available immediately without additional configuration. You can switch languages per request by specifying the ISO code. This allows a single API key to serve diverse communities, from Arabic-speaking regions to Swahili-speaking districts, without needing separate integrations.

  • 23 languages supported
  • Auto-detection for Latin scripts
  • Single key for all languages

Team Collaboration

Each account holds one active API key. You can issue a new key at any time, instantly invalidating the old one. This ensures that if a key is compromised or a team member leaves, you can rotate credentials immediately without downtime. Balance does not expire, allowing long-term planning.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Each account has one active key, which can be regenerated at any time.

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. TRON developer hub: TRC-20
  3. ISO 639 language codes
  4. OpenAI API reference: create speech
  5. FFmpeg documentation
  6. IETF RFC 7845: Ogg Opus
  7. W3C WAI: making audio and video accessible
  8. MDN: Web Speech API
  9. LibriVox public-domain audiobooks
  10. curl documentation
  11. openai-node on GitHub
  12. Node.js documentation

More on this site