What is TTS API and How Does It Work for IVR?

By VoxCore editorial team · Updated 2026-11-18

This page explains how the VoxCore Text-to-Speech API converts script text into natural audio for IVR systems. We detail the technical workflow, from JSON requests to audio response, and break down the $0.01 per 1,000 characters pricing model. You will learn how to manage voice selection, handle latency, and integrate with existing call center infrastructure using standard HTTP endpoints.

Designed for startups deploying high-volume IVR solutions, this guide covers practical integration steps, including voice presets like Aria or Atlas and multilingual support for 23 languages. We address key considerations such as audio format selection, data privacy, and scalability, helping you build reliable, dynamic voice-overs without maintaining large audio inventories or negotiating complex enterprise contracts.

What is TTS API and How Does It Work for IVR?

Frequently asked questions

What does TTS stand for?

TTS stands for Text-to-Speech. It is a technology that converts written text into audible audio files. Our API accepts text input and returns synthesized speech, enabling automated voice generation for IVR systems without human recording.

Is a TTS API better than pre-recorded audio?

TTS offers greater flexibility for dynamic content like account balances or transaction statuses. While pre-recorded audio is static, our API generates unique audio for each request, allowing real-time data integration into your IVR scripts without managing thousands of audio files.

Can TTS handle complex IVR menus?

Yes. You can send up to 4096 characters per request. For longer menus, split the text into parts and join the resulting audio files. The API supports variable speeds from 0.25x to 4.0x, allowing precise timing adjustments for complex call flows.

Do I need a developer to integrate the API?

Integration requires basic API knowledge. The endpoint matches the OpenAI speech endpoint shape, so standard HTTP libraries or the OpenAI SDK work by changing the base URL. Developers can use the provided curl examples to start immediately.

How many languages are supported?

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

Is the audio quality comparable to human voice?

The voices are based on licensed recordings from LibriVox public-domain audiobook readings. Each file carries an inaudible watermark marking it as synthetic. The quality is natural and clear, suitable for professional IVR systems, though it is distinctly AI-generated.

Can I change the voice after generation?

No. Audio is generated once per request. To change the voice, you must send a new request with the desired voice parameter. The API does not store audio for later modification; it returns the file directly in the response.

Does the API support special characters?

Yes. Spaces and punctuation count as characters in the 4096-character limit. The API processes standard text input. It does not support SSML or phoneme dictionaries, so special formatting must be handled within the plain text input.

What is the difference between tts-1 and tts-1-hd?

Both models use the same engine and price. The only difference is the model identifier string. You can choose either "tts-1" or "tts-1-hd" in your request without any change in cost or processing speed.

Can I use the API for emergency alerts?

Yes. The API generates audio quickly, taking a few seconds for short phrases. However, there is no SLA or uptime guarantee. For critical emergency systems, you should implement fallback mechanisms since requests are processed sequentially and may queue under load.

Is the API suitable for high-traffic call centers?

Yes, but with limits. You get 60 requests per minute per key. Under load, requests queue sequentially. For higher throughput, you can issue multiple keys or split texts. The pricing is flat at $10 per million characters, scaling with volume.

Do I need to pay for every request?

You pay per character processed, at $0.01 per 1,000 characters. Failed requests are free; if synthesis fails, the charge is returned in full. You only pay for successful audio generation. Balances do not expire.

Can I use the API for mobile apps?

Yes. The API is cloud-based and accessible via HTTP. You can generate audio files and cache them. There is no streaming support. There is no mobile SDK, just standard network calls to the API endpoint.

What happens if the API goes down?

There is no SLA or uptime guarantee. If the service is unavailable, requests may fail. Failed requests are free. Support is available by email only, with no phone number or live chat. You should design your IVR with fallback options.

Definition of TTS API

Sound wave illustration for: Definition of TTS API

A Text-to-Speech (TTS) API is a cloud service that converts raw text scripts into audible audio files via a simple HTTP request. For IVR systems, it replaces static audio files with dynamic voice generation, allowing call centers to update scripts instantly without re-recording or managing large media inventories.

Text Input

Developers send a JSON payload containing the script text (up to 4,096 characters) to the POST /v1/audio/speech endpoint. The system processes the input text, applying the selected voice preset and language settings to generate the audio response.

Audio Output

The API returns the synthesized audio file in standard formats like MP3, WAV, Opus, FLAC, or PCM. This file is immediately playable by the IVR system, enabling seamless integration into call flow logic without intermediate conversion steps.

Cloud Processing

Synthesis occurs on remote servers, eliminating the need for local hardware scaling. Requests are processed sequentially, with generation speeds roughly matching real-time playback (25 characters per second), ensuring predictable latency for standard IVR menu prompts.

How IVR Systems Use TTS

Sound wave illustration for: How IVR Systems Use TTS

IVR systems leverage TTS to convert dynamic script text into audio files on demand. Instead of recording static files for every possible message, the system sends text via API and receives synthesized speech. This allows for real-time content updates without manual file management.

Dynamic Content

Text is sent to the API endpoint, which returns an audio file. The system can inject variables like customer names or account balances directly into the text payload. This ensures the spoken message is always current, eliminating the need to pre-record every possible scenario.

Real-Time Generation

Synthesis happens during the call flow. While generation takes a few seconds for short phrases, the system handles this latency by queuing requests. For long texts, the API splits input into parts and joins the audio, ensuring the caller hears the complete message without interruption.

User Interaction

The generated audio is played back to the caller immediately. Since the API supports multiple formats like MP3 and WAV, the IVR software can select the most compatible codec. This seamless handoff between text input and audio output creates a natural conversational experience.

Voice Selection for IVR

Sound wave illustration for: Voice Selection for IVR

VoxCore’s TTS API lets IVR systems select from eight distinct voice presets, ensuring the audio matches the specific tone of your call flow. You can choose from warm narrators for general prompts or deep, documentary-style voices for alerts, allowing precise alignment with your brand’s auditory identity without needing external production.

Tone Matching

Selecting the right voice is critical for user experience. Options like Aria provide a clear, warm narration ideal for standard menus, while Orion’s deep tone suits serious alerts. Felix offers an energetic promo style, and Milo delivers a friendly, conversational tone for complex instructions, ensuring the voice feels appropriate for the context.

Brand Consistency

Consistency builds recognition. By standardizing on specific voices across all touchpoints, your IVR system maintains a uniform auditory identity. The eight presets are based on licensed recordings, providing a professional, consistent sound that users encounter every time they call, reinforcing trust and reducing cognitive load during interactions.

Voice Variety

For longer flows, variety prevents monotony. You can assign different voices to different menu levels or departments. For instance, use Atlas for neutral news-style updates and Luna for softer storytelling segments. This variety keeps callers engaged without requiring multiple audio files or complex scripting.

Each voice is available in all 23 supported languages, allowing you to maintain consistent branding across international call centers while adapting to local linguistic needs seamlessly.

Technical Integration

Sound wave illustration for: Technical Integration

Integration relies on standard HTTP POST requests to the speech endpoint. Developers can use the official OpenAI SDKs by pointing them to our base URL, or send raw JSON payloads directly.

API Calls

Send a POST request to https://api.nzx88casino.com/v1/audio/speech. Include your Bearer token in the Authorization header. The endpoint accepts standard JSON bodies, making it compatible with existing TTS client libraries.

JSON Requests

Define the model (tts-1 or tts-1-hd), input text, voice preset, and response format. Optional fields like speed and language allow fine-tuning. Text is limited to 4096 characters per request; longer scripts require splitting.

Response Handling

The API returns the audio file directly in the response body. Handle errors by checking the status code; failed requests are free. For long texts, join the returned audio segments to reconstruct the full IVR message.

  • Standard HTTP 200 for success
  • Audio file in response body
  • Failed requests incur no charge

Cost Efficiency

Sound wave illustration for: Cost Efficiency

VoxCore charges $0.01 per 1,000 characters, making it ideal for high-volume IVR call centers. Failed requests are free, ensuring you only pay for successful audio generation. With a flat rate of $10 per million characters, costs remain predictable regardless of call volume spikes.

Pay Per Use

Our API bills only for successful synthesis. If a request fails, the charge is returned in full. This model eliminates waste from dropped calls or network errors common in IVR systems.

  • $10 per 1 million characters
  • Failed requests are free
  • No hidden per-minute fees

No Inventory

Unlike traditional IVR providers requiring pre-purchased audio file libraries, VoxCore generates speech on demand. You store text scripts, not megabytes of audio files, reducing storage costs and simplifying updates.

Scalability

Scale from hundreds to millions of calls without renegotiating contracts. Requests are processed sequentially, so under load a request may wait in a queue.

Language Support

Sound wave illustration for: Language Support

Our API supports 23 languages, enabling startups to deploy multilingual IVR systems without managing separate voice assets. You can generate natural-sounding speech in languages ranging from Arabic and Hindi to Korean and Swahili, ensuring clear communication with diverse customer bases.

Multilingual IVR

Support covers 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 broad coverage allows you to localize call flows efficiently.

Auto-Detection

If the language field is omitted, the system guesses the language from the text script. Latin script text defaults to English, so explicitly setting language is recommended for non-English Latin inputs to avoid mispronunciation.

Custom Languages

Any voice can speak any of the supported languages, providing flexibility in tone and style. Note that Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali, and other languages are not supported.

  • Supported: 23 languages including English, Spanish, German, and Japanese.
  • Not supported: Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali.

Audio Quality

Sound wave illustration for: Audio Quality

The API returns audio in multiple formats to suit different IVR infrastructure requirements. You can choose between compressed MP3 for bandwidth efficiency or lossless WAV for higher fidelity playback systems.

Bitrate options are handled automatically by the chosen format. This allows your system to balance storage needs with voice clarity effectively.

MP3 vs WAV

MP3 is ideal for reducing bandwidth usage during high-volume call flows, while WAV provides uncompressed audio for systems that require maximum fidelity.

Both formats are generated instantly from the same engine, ensuring tonal consistency regardless of the format selected.

  • MP3: Compressed, lower bandwidth
  • WAV: Uncompressed, high fidelity

Bitrate Options

The API handles bitrate optimization internally based on the selected response format, removing the need for manual encoding adjustments.

This automation ensures that every audio file meets the standard quality thresholds required for clear customer communication.

Clarity

Voices are designed for natural speech patterns, ensuring that IVR prompts are easily understood by callers.

The synthetic watermark does not affect audible clarity, maintaining a professional tone for enterprise applications.

Audio Quality

Latency and Performance

Sound wave illustration for: Latency and Performance

Latency is critical for IVR systems where users expect immediate auditory feedback. Our API processes requests sequentially, meaning performance depends on current load. Typical generation speed is roughly real-time, producing about 25 characters of text per second of audio for long scripts. However, short phrases may take a few seconds to synthesize due to fixed overhead.

Under heavy load, requests enter a queue and are processed one after another. This means latency can increase during peak usage periods. While not instant, the system ensures reliable delivery without dropping requests, maintaining call flow integrity even when volume spikes.

Generation Time

Generation speed is approximately real-time for long texts, averaging 25 characters per second of audio. Short phrases require a few seconds for setup and synthesis. This predictable timing helps developers estimate hold times accurately.

Queue Systems

Requests are processed sequentially. If many keys are active simultaneously, your request may wait in a queue. This can increase latency during high-volume periods, but ensures no request is lost.

Real-Time Needs

For standard IVR menus, the few-second delay is acceptable. For true real-time interaction, consider pre-generating common prompts. The 60 requests per minute limit per key helps manage burst traffic effectively.

Data Privacy

Sound wave illustration for: Data Privacy

Input text is processed solely to generate the audio file and is not retained for training models. Once the synthesis completes, the audio is returned in the response and is not stored on our servers, ensuring your script content remains transient. This approach minimizes data exposure during the generation pipeline.

Requests are transmitted via standard HTTPS protocols, ensuring secure transmission between your IVR system and our API. While we do not store the generated audio, we retain request metadata—such as timestamp, character count, and status—strictly for billing and usage verification purposes.

Compliance

Our data handling practices are designed to support compliance with standard data protection regulations. We do not claim specific certifications like SOC 2 or GDPR certificates, but our minimal data retention policy reduces the scope of stored personal data. Input text is used exclusively for audio synthesis and is not repurposed for machine learning training.

Common Use Cases

Sound wave illustration for: Common Use Cases

VoxCore’s API transforms static call center scripts into dynamic audio assets, allowing startups to manage IVR content without maintaining physical file libraries. By converting text inputs into natural voice-overs at scale, teams can update greetings and instructions instantly across all systems.

Menu Prompts

Generate dynamic greetings that reflect current promotions or system statuses without re-recording studio tracks. The API handles up to 4096 characters per request, enabling long, detailed navigation menus to be synthesized in a single call.

  • Dynamic seasonal greetings
  • Real-time menu updates
  • Consistent brand voice across all lines

Notifications

Convert transactional texts into clear audio alerts for account updates or appointment reminders. With support for 23 languages and auto-detection, notifications remain accurate whether the caller is speaking English, Spanish, or Mandarin.

  • Multilingual transaction alerts
  • Automated appointment reminders
  • Instant text-to-audio conversion

Alerts

Trigger urgent voice notifications for system outages or service changes directly from your backend. Since each request is processed sequentially, you can control the flow of high-priority messages without exceeding the 60 requests per minute limit.

  • Urgent system outage warnings
  • Service change notifications
  • Backend-triggered voice alerts

Comparison with Traditional IVR

Sound wave illustration for: Comparison with Traditional IVR

Traditional IVR systems rely on pre-recorded audio files stored on servers. Every menu change requires recording new files, uploading them, and updating the dial plan. This process is slow and expensive, especially when scripts need frequent updates.

In contrast, a TTS API generates speech on demand. Your IVR sends a text string to the API, which returns audio after a few seconds. This eliminates the need to maintain a library of static audio assets.

Static Files

Legacy IVRs store MP3 or WAV files for every menu option. Updating a phone number or holiday hours means recording, testing, and deploying new files. This creates version control issues and delays.

With TTS, you store only the script text. The audio is generated dynamically at call time. There is no file inventory to manage, reducing storage costs and administrative overhead significantly.

  • No manual recording for every menu change
  • Eliminates file versioning conflicts
  • Reduces storage and maintenance costs

Dynamic Text

TTS allows real-time insertion of variables into speech. Phone numbers, account balances, or wait times can be spoken naturally without pre-recording every possible number combination. This ensures accuracy and up-to-date information for every caller.

The API handles the synthesis after a few seconds. You can pass dynamic text from your database directly into the input field of the API call, ensuring the spoken content matches the current state of your system.

Flexibility

Changing voice tone or language is instant. You can switch from a male to a female voice or adjust the speed by changing a single parameter in your code. No re-recording is needed.

This flexibility supports A/B testing of different voices or scripts without logistical delays. You can update IVR behavior across all lines simultaneously by updating the text script, ensuring consistent branding and message delivery.

Getting Started

Sound wave illustration for: Getting Started

VoxCore streamlines the transition from script to audio for IVR deployments. Start by creating an account on the platform, choosing between Google sign-in for immediate trial credit or email registration for standard access.

Sign Up

Navigate to /get-api-key/ to register. Google sign-in grants $0.50 trial credit valid for 7 days, covering approximately 50,000 characters. Email accounts start with zero balance.

Get Key

Your dashboard displays a unique API key. Use this key in the Authorization header to authenticate requests. You can generate a new key at any time, instantly invalidating the previous one.

First Test

Send a POST request to https://api.nzx88casino.com/v1/audio/speech. Include your model, input text, and selected voice. The API returns an audio file directly in the response body.

  • Endpoint: POST /v1/audio/speech
  • Auth: Bearer tts-...
  • Format: JSON body

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Choose FLAC when you require the exact audio quality of WAV but need to reduce storage or bandwidth requirements.

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. Creative Commons Attribution 4.0
  4. FFmpeg documentation
  5. LibriTTS-R corpus (OpenSLR 141)
  6. Python documentation
  7. IETF RFC 7845: Ogg Opus
  8. OpenAI API reference: create speech
  9. LibriTTS-R paper (arXiv 2305.18802)
  10. openai-python on GitHub
  11. ISO 639 language codes
  12. Tether (USDT)

More on this site