How to Use Our TTS API for Indonesian IVR?

By CasinoVoice editorial team · Updated 2026-11-18

This guide explains how to integrate our text-to-speech API into IVR systems. We help startups build affordable, multilingual call center solutions without enterprise bloat. You will learn to generate clear synthetic voices for menus and prompts using our straightforward REST API. The instructions cover voice selection, language configuration, and cost optimization specific to Indonesian audio generation.

Designed for developers, this page details practical steps for handling Indonesian text, from setting the language parameter to managing rate limits. We cover common integration errors and security best practices. By the end, you will understand how to deliver high-quality audio for your IVR while keeping costs predictable and infrastructure simple.

How to Use Our TTS API for Indonesian IVR?

Frequently asked questions

Why is the language parameter important?

The language parameter ensures correct pronunciation and intonation for your IVR menu. Without it, the API guesses the language based on the script. For Indonesian, setting this explicitly prevents misinterpretation, ensuring callers hear clear, accurate instructions without awkward pauses or errors.

Can I use any voice for Indonesian?

Yes, all eight preset voices can speak Indonesian text, but Indonesian is not in our supported languages list. You can choose from female voices like Aria or Nova, or male voices like Felix or Milo. Each voice offers a distinct tone, allowing you to select the best fit for your brand’s call center identity.

Do I need to specify the language?

Yes, especially for Indonesian. If you omit the language field, the API defaults to English for Latin-script text. Since Indonesian uses Latin script, it would be misidentified as English unless you explicitly provide the ISO code. Always specify it for accuracy.

What happens if I miss the language code?

If you miss the language code for Indonesian text, the API guesses the language. Since Indonesian uses Latin characters, it defaults to English. Your IVR will speak Indonesian text with an English accent, which sounds unnatural and may confuse callers in your call center.

Is Indonesian support full?

Indonesian is not supported. Our list includes Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish.

Are there specific voices for IVR?

We do not have IVR-specific voices. All eight voices are general-purpose presets. For IVR, we recommend Sage for calm instructions or Felix for energetic promos. These voices are clear and synthetic, suitable for automated call systems without requiring specialized audio engineering.

How do I handle long menus?

Split your text into parts of up to 4096 characters. Send each part as a separate request and join the resulting audio files. This ensures stable processing. Since requests are queued, splitting helps manage load and prevents timeouts during peak IVR usage hours.

Can I mix languages in one request?

You can include multiple languages in one text input, but you must specify a single language ISO code. The API does not auto-detect mixed languages within a single request. For best results, keep each request to one language to ensure consistent pronunciation.

Do voices sound natural in Indonesian?

Indonesian is not supported. If you send Indonesian text, the API will guess the language (defaulting to English for Latin script), which may result in an English accent. Check the supported list before integrating into your IVR system.

Is the API reliable for production?

The API processes requests sequentially, which may cause queuing under load. There is no SLA or uptime guarantee. Rate limits are 60 requests per minute. For production IVR, monitor your queue times and consider splitting long texts to maintain consistent call center performance.

How do I test voice quality?

Use the free trial credit of $0.50 to generate sample audio files. Test different voices like Aria or Felix with your specific menu text. Check the audio format and clarity. This allows you to evaluate synthetic speech quality before committing to paid top-ups via USDT.

What formats work best for IVR?

We support MP3, WAV, OPUS, FLAC, and PCM. For IVR systems, MP3 offers good compression and broad compatibility. WAV provides uncompressed quality. Choose based on your telephony provider’s requirements. All formats are generated via the same API endpoint with identical audio content.

Can I use MP3 for IVR systems?

Yes, MP3 is a supported response format. It is widely compatible with most IVR platforms and telephony systems. MP3 files are smaller than WAV, reducing bandwidth usage. You can request MP3 by setting response_format to mp3 in your API request body.

Do I need a WebSocket connection?

No, we do not offer WebSocket or streaming. The API is synchronous: you send text and receive the complete audio file. There is no real-time partial audio. You must wait for the full response before playing the audio in your IVR call flow.

Understanding Indonesian TTS needs

Sound wave illustration for: Understanding Indonesian TTS needs

Indonesian is not in our supported languages list. When you send Latin-script text without explicitly setting the language parameter, the engine guesses English, which can affect pronunciation accuracy for local business terms.

Accent and pronunciation accuracy

Our engine does not natively support Indonesian. If you omit the language field, Latin script defaults to English, potentially altering pronunciation. Explicitly setting language: "id" helps, but results may vary since Indonesian is not a supported language.

Business terminology support

Standard TTS handles common words well. Specific industry jargon may not be pronounced as expected since there is no custom pronunciation lexicon. Test your specific menu items.

Voice selection for menus

Use clear voices like Aria or Nova for standard menus. For formal tones, Atlas provides a neutral option. Remember, all voices can speak Indonesian text, but accuracy depends on the language parameter.

Choosing the right voice

Sound wave illustration for: Choosing the right voice

Selecting the right voice is critical for IVR clarity. Our eight presets are designed for distinct tonal needs, from upbeat promotions to calm instructions.

Each voice is based on licensed recordings, ensuring consistent quality without the need for complex voice design or cloning.

Female voices: Aria, Nova

Aria offers a warm, clear narrator style, ideal for standard menu greetings. Nova provides a bright, upbeat tone suitable for promotional calls.

Both voices handle Indonesian well when the language parameter is explicitly set, ensuring accurate pronunciation of local business terms.

  • Aria: warm, clear narrator
  • Nova: bright, upbeat

Male voices: Felix, Milo

Felix is energetic and promo-focused, great for short, high-energy announcements. Milo is friendly and conversational, perfect for natural-sounding customer interactions.

Use Felix for time-sensitive updates and Milo for general inquiries to maintain a approachable tone.

  • Felix: energetic, promo
  • Milo: friendly, conversational

Neutral options for formal tone

Atlas and Orion provide neutral, professional sounds. Atlas is ideal for news-style updates, while Orion’s deep tone suits documentary-style explanations.

For formal IVR systems, these voices reduce listener fatigue during long hold messages or detailed instructions.

  • Atlas: neutral, news
  • Orion: deep, documentary

Setting the language parameter

Sound wave illustration for: Setting the language parameter

The language parameter is optional but highly recommended for consistent results. When omitted, the API guesses the language from the script, defaulting to English for Latin text. For Indonesian IVR systems, explicitly setting the ISO code prevents misidentification.

This explicit configuration helps the engine guess the language correctly, though Indonesian is not in our supported list, so pronunciation may still differ from native speech.

ISO code for Indonesian

Set the language field to id in your JSON payload. This explicitly tells the model to generate speech in Indonesian, ensuring accurate pronunciation for menu items and prompts.

Default language detection

If you do not provide a language code, the system infers the language from the input text. For Latin-script text, it defaults to English. This can cause Indonesian text to be read with an English accent if not specified.

  • Detection is script-based, not content-based.
  • Latin text defaults to English without explicit setting.

Forcing language for Latin script

Since Indonesian uses the Latin alphabet, the default English fallback is common. Always set language: id to prevent the default English fallback, though note that Indonesian is not a supported language and pronunciation may not be native.

  • Explicitly set language: id.
  • Overrides automatic Latin-to-English default.

Generating audio files

Sound wave illustration for: Generating audio files

To generate audio, send a POST request to the speech endpoint with your text, selected voice, and desired format. The API processes the input and returns the synthesized audio file directly in the response body, ready for immediate playback in your IVR system.

Request format for speech

Construct a JSON payload containing the input text (max 4096 characters), the voice preset, and response_format (mp3, wav, opus, flac, or pcm). Include your API key in the Authorization header. The system synthesizes the audio synchronously, ensuring you receive the file before proceeding to the next IVR node.

Handling response data

The API returns the audio binary directly. Ensure your IVR middleware can handle raw binary responses without corruption. If the request fails, you receive an error code but are not charged, allowing you to retry or adjust parameters safely.

Storing audio for IVR

While the audio is returned immediately, we recommend caching the generated files in your own storage to reduce repeated API calls for static menu prompts. This approach minimizes latency for callers and conserves your character quota for dynamic content.

Testing with the API

Sound wave illustration for: Testing with the API

Testing ensures your IVR sounds natural before going live. Start by using the $0.50 free trial to validate your scripts without risk. This credit covers approximately 50,000 characters, allowing you to test key menu prompts and error messages.

Focus on verifying that the synthetic voices render your business terminology correctly. Use the API to generate short phrases and listen for clarity, ensuring the tone matches your brand’s expectations for customer interactions.

Using the free trial

Sign up via Google to receive $0.50 in credit, valid for 7 days. This allows you to generate about 50,000 characters of speech, sufficient for testing most standard IVR menu structures. If you use email and password, you start without trial credit.

  • Valid for 7 days
  • Approx. 50,000 characters
  • No credit card required

Validating pronunciation

Send short text inputs to check how specific voices handle your unique terms. Since the API guesses language from script, explicitly set the language parameter if needed to ensure correct pronunciation of local names or acronyms.

  • Test unique terms
  • Set explicit language codes
  • Verify voice tone

Checking audio quality

Download the generated MP3 or WAV files to listen for clarity and speed. Adjust the speed parameter (0.25–4.0) to find the optimal pace for callers. Remember that requests are processed sequentially, so test under load if expected volume is high.

  • Download MP3/WAV
  • Adjust speed 0.25–4.0
  • Test under load

Scaling for high volume

Sound wave illustration for: Scaling for high volume

As your IVR system handles more calls, understanding rate limits prevents service interruptions. Each API key allows 60 requests per minute, but starts at a lower 10 requests per minute before your first top-up. This limit is per key, so ensure your account has sufficient funds to maintain consistent call flow.

Managing rate limits

The 60 requests per minute limit applies to your active key. If you exceed this, requests may fail or queue. Since requests are processed sequentially, under load a request may wait in a queue. Ensure your billing balance is healthy to avoid unexpected pauses during peak call times.

Queue management

Requests are processed one after another. If your system sends many short phrases rapidly, they may experience slight delays. Plan your call flow to account for this processing time, especially for long texts where synthesis takes roughly real time (25 characters per second).

Monitoring usage

Track your character consumption and request status via the dashboard. Failed requests are free, so monitor them to distinguish between genuine errors and successful generations. Regularly review your balance to ensure uninterrupted service as you scale your startup's call center operations.

Common integration errors

Sound wave illustration for: Common integration errors

Even with a clear workflow, small oversights can cause IVR failures. Avoiding these common mistakes saves time during integration and ensures your call center sounds professional from day one.

Missing language code

Latin-script Indonesian text defaults to English if the language parameter is omitted. This results in an American accent for words like "halo" or "terima kasih," which sounds unnatural to callers.

  • Always set language: "id" for Indonesian text, even if the script is Latin.

Invalid voice ID

Using a voice name that doesn't exist in our 8-presets library returns an error. Ensure you use exact IDs like aria, nova, felix, or milo as listed in the /v1/voices endpoint.

  • Check the available voices via GET /v1/voices before hardcoding them.

Character limit issues

Each request supports up to 4096 characters. Exceeding this limit causes the synthesis to fail, potentially leaving your IVR silent. Split long menu prompts into smaller chunks and join the audio files.

  • Validate input length before sending the POST request to /v1/audio/speech.
Common integration errors

Optimizing call flow costs

Sound wave illustration for: Optimizing call flow costs

IVR menus often repeat standard phrases like "Press one for sales" or "Your balance is." Since our API charges $0.01 per 1,000 characters, reducing text length directly lowers your operational costs. Every space and punctuation mark counts toward this total.

By keeping prompts concise and avoiding redundant greetings, you can significantly stretch your trial credit or monthly budget. For example, shortening "Please enter your account number followed by the hash key" to "Enter account number and hash" saves characters without losing clarity.

Minimizing character count

Review your script for filler words. Removing unnecessary adjectives and simplifying sentence structures reduces the input size. Since spaces count as characters, even small reductions add up over thousands of calls.

  • Remove redundant greetings like "Welcome to our service."
  • Use shorter synonyms for common words.
  • Count every space and punctuation mark.

Using short phrases

Break complex instructions into shorter, sequential prompts. This not only reduces character count but also improves user comprehension in noisy call center environments. Shorter texts also generate faster, reducing queue wait times during peak loads.

Batching requests

While our API processes requests sequentially, preparing your text segments efficiently helps manage the 60 requests per minute limit. Pre-generate static menu options and store them as audio files rather than generating them live for every call.

Security and Data

Sound wave illustration for: Security and Data

Security starts with your API key. You receive one active key per account, which can be rotated instantly via the dashboard. If a key is compromised, issuing a new one stops the old one immediately, ensuring no unauthorized usage continues.

API key management

Keep your key secure in your IVR configuration. You can issue a new key at any time from the dashboard, and the previous key stops working at once. This allows quick response to potential breaches without downtime.

  • Issue a new key anytime via the dashboard.
  • Old key stops working instantly upon new key generation.
  • One active key per account.

Data privacy for calls

Input text is used solely to produce the audio file and is not stored after generation. Generated audio is returned in the response and not retained on our servers. Request metadata (time, characters, status) is kept only for billing purposes.

  • Input text is not stored after generation.
  • Generated audio is returned in the response and not stored.
  • Metadata kept only for billing.

No training on input text

We do not use your input text to train our models. Your IVR scripts remain private and are not used to improve our engine. This ensures your specific business terminology and call flows are not part of our training data.

Support and Limits

Sound wave illustration for: Support and Limits

Support is handled exclusively via email, ensuring detailed responses without the noise of live chat queues. We do not offer phone support or real-time chat agents, keeping our operational costs low to pass savings on to you. This model suits startups that prefer asynchronous communication for technical queries.

Our rate limits are straightforward: 60 requests per minute per API key, with a temporary 10 requests per minute limit before your first top-up. Failed requests incur no charge, and your balance never expires. Understanding these limits helps you design robust IVR fallbacks without unexpected interruptions.

Email support only

All support tickets are managed through email. This allows our team to provide thorough, documented answers that you can reference later in your development cycle. We prioritize clear, specific explanations over quick, generic replies.

No live chat option

We do not maintain a live chat widget on our site. This absence reduces overhead, allowing us to focus on maintaining API reliability and adding features rather than staffing a 24/7 chat team. You will receive a timely response during business hours.

Rate limit details

Each API key allows 60 requests per minute. New accounts start with a limit of 10 requests per minute until the first top-up is processed. This structure encourages efficient batching of text segments for IVR prompts.

  • Standard limit: 60 requests/minute per key
  • Pre-top-up limit: 10 requests/minute
  • Failed requests are free

Future updates

Sound wave illustration for: Future updates

We continuously refine the engine to better serve IVR workflows. We do not offer custom voice cloning. We have eight preset voices designed for distinct tonal needs.

Voice additions

We currently offer eight preset voices. Future additions will focus on distinct tones suitable for automated phone systems, ensuring clear and natural-sounding menus without requiring enterprise-level voice design.

Format improvements

The current support for mp3, wav, opus, flac, and pcm remains stable. We support mp3, wav, opus, flac, and pcm.

API versioning

We maintain backward compatibility with the /v1/ endpoint. Any breaking changes will be introduced via new version paths (e.g., /v2/), allowing you to upgrade your integration at your own pace without disrupting live call flows.

Next steps for developers

Sound wave illustration for: Next steps for developers

Start by signing up on our get-api-key page to receive your unique API credentials. You can use Google or your email to create an account and immediately access your balance and usage statistics.

Once authenticated, dive into our documentation to understand the request structure. The API follows the standard OpenAI shape, making it easy for developers already familiar with similar tools to integrate quickly.

Get your API key

Visit the /get-api-key/ page to create your account. You will receive a bearer token starting with 'tts-' that you can use immediately. New accounts get a $0.50 free trial for 50,000 characters.

Read the docs

Explore the /docs/ page to see the exact endpoint structure. We support tts-1 and tts-1-hd models with standard parameters like voice, speed, and response format. The documentation includes ready-to-use curl examples for quick testing.

  • Check voice presets for IVR suitability
  • Review supported response formats (mp3, wav, opus)
  • Understand rate limits (60 requests/minute)

Start coding

Use the official OpenAI SDK or plain HTTP requests. Set the base_url to https://api.456gocasino.com/v1 and use your API key in the Authorization header. Send your text payload and receive audio files directly.

Remember to handle character limits of 4096 per request and manage your queue to stay within the 60 requests per minute limit. Monitor your balance in the dashboard to avoid service interruption.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Our platform empowers startups to build scalable customer support experiences without complex infrastructure.

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. Creative Commons Attribution 4.0
  3. Node.js documentation
  4. openai-node on GitHub
  5. W3C WAI: making audio and video accessible
  6. TRON developer hub: TRC-20
  7. Python documentation
  8. openai-python on GitHub
  9. IETF RFC 7845: Ogg Opus
  10. OpenAI API reference: create speech
  11. FFmpeg documentation
  12. MDN: Web Speech API

More on this site