Integrating the TTS API for Call Center Systems

By VoxCall editorial team · Updated 2026-11-19

This guide helps call center teams integrate our TTS API into IVR and support workflows. You will learn how to generate natural-sounding audio from text using simple HTTP requests or the OpenAI SDK. We cover key steps like obtaining an API key, sending your first synthesis request, and handling responses efficiently.

Designed for large teams, this documentation explains how to manage rate limits, select from eight voice presets, and handle errors gracefully. You will also find details on supported languages, audio formats, and pricing to ensure reliable speech synthesis at scale without enterprise complexity.

Integrating the TTS API for Call Center Systems

Frequently asked questions

How do I get an API key?

Visit /get-api-key/ to sign up using Google or an email and password. Each account receives one active key. You can issue a new key at any time, which immediately invalidates the previous one. The dashboard displays your key, balance, and usage statistics for easy reference.

Which SDKs are supported?

We do not provide an official SDK. The API shape matches the OpenAI speech endpoint, so you can use the official OpenAI SDKs by changing the base_url to https://api.angin888.cc/v1. You can also use plain HTTP requests directly with standard libraries in any programming language.

How do I change the base_url?

Configure your SDK or HTTP client to point to https://api.angin888.cc/v1. This endpoint handles POST requests for speech generation and GET requests for voices and models. Ensure your Authorization header includes your Bearer token for authentication when sending requests to this base URL.

What audio formats are supported?

You can request audio in mp3, wav, opus, flac, or pcm formats via the response_format parameter. These options allow you to choose the best balance between file size and quality for your specific call center infrastructure or playback requirements without additional conversion steps.

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

Both models use the same engine and have the same price of $10 per million characters. The choice between tts-1 and tts-1-hd does not affect cost. Select the model that best fits your naming convention or specific quality preference for your IVR system.

How many characters can be sent per request?

Each request supports up to 4096 characters of input text. For longer scripts, split the text into chunks of this size and join the resulting audio files. Spaces and punctuation count toward this limit, so plan your text segmentation accordingly for seamless call center audio playback.

What are the rate limits?

You are limited to 60 requests per minute per key, or 10 per minute before your first top-up. Requests are processed sequentially, so under load, a request may wait in a queue. Plan your parallel generation needs accordingly to avoid delays in your call center workflows.

How is language detected?

If the language field is omitted, the system guesses the language from the script, defaulting to English for Latin text. For non-English Latin-script text, explicitly set the language parameter. Supported languages include Arabic, Chinese, English, German, Spanish, and others listed in our voices endpoint.

What happens on error?

If synthesis fails, the charge is returned in full. Failed requests do not consume your balance. You can retry the request or adjust parameters like voice or text length. Check the response status code to determine if the error was due to input or system issues.

Are audio files stored?

Generated audio is returned in the response and is not stored by our service. Input text is used only to produce the audio and is not used for training. We retain request metadata, such as time and status, solely for billing and usage tracking purposes.

Can I adjust the speed?

Yes, you can set the speed parameter between 0.25 and 4.0. This allows you to slow down or speed up the speech to match your call center's pacing requirements. Adjusting speed does not affect the character count or pricing of the generated audio.

Is there documentation for webhooks?

Our documentation does not mention webhooks. We do not offer real-time streaming or WebSocket support for partial audio delivery. You receive the complete audio file in the response after synthesis completes. For asynchronous workflows, manage your own queuing logic based on the response status.

How does authentication work?

Authentication uses a Bearer token in the Authorization header. Include your unique API key, starting with tts-, in every request. You can generate a new key at any time via the dashboard, which immediately invalidates the old one, ensuring secure access to your account.

What error codes are there?

Standard HTTP status codes indicate success or failure. Specific error details are included in the response body. Failed synthesis requests are free, so you can retry without penalty. Consult the API response for specific error messages to debug issues with text length, voice selection, or rate limits.

First request

curl

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

Python (openai)

from openai import OpenAI

client = OpenAI(base_url="https://api.angin888.cc/v1", api_key="tts-...")

with client.audio.speech.with_streaming_response.create(
    model="tts-1", voice="nova", input="Hello from Python.", response_format="mp3"
) as response:
    response.stream_to_file("hello.mp3")

Node.js (openai)

import OpenAI from "openai";
import fs from "node:fs";

const client = new OpenAI({ baseURL: "https://api.angin888.cc/v1", apiKey: process.env.TTS_API_KEY });
const res = await client.audio.speech.create({ model: "tts-1", voice: "milo", input: "Hello from Node.js." });
fs.writeFileSync("hello.mp3", Buffer.from(await res.arrayBuffer()));
voice
ariafemale
novafemale
lunafemale
sagefemale
felixmale
milomale
atlasmale
orionmale
language
arالعربية
zh中文
daDansk
nlNederlands
enEnglish
fiSuomi
frFrançais
deDeutsch
elΕλληνικά
heעברית
hiहिन्दी
itItaliano
ja日本語
ko한국어
msBahasa Melayu
noNorsk
plPolski
ptPortuguês
ruРусский
esEspañol
swKiswahili
svSvenska
trTürkçe

Quickstart: API Key

Sound wave illustration for: Quickstart: API Key

Accessing the text-to-speech API begins with creating an account on our site. You can sign up using Google or by providing an email and password. This account is specific to angin888.cc and serves as your gateway to the TTS engine.

Once registered, you will receive a unique API key. This key authenticates your requests to the speech endpoint and tracks your usage against your balance. If needed, you can generate a new key at any time, which immediately invalidates the previous one.

Create Account

Create Account

Navigate to the /get-api-key/ page to register. You can choose Google for quick access or use email and password for standard registration. Accounts are created per site, ensuring your credentials are isolated to this storefront.

  • Sign up via Google or email/password
  • Account specific to angin888.cc
  • No minimum spend required

Generate Key

Generate Key

After registration, the system issues a single active Bearer token. This key starts with 'tts-' and is used in the Authorization header. If you need a fresh key, you can issue a new one from your dashboard, and the old one stops immediately.

  • Single active key per account
  • Starts with 'tts-' prefix
  • Instant invalidation of old keys

Copy Key

Locate your API key in the dashboard. Copy it carefully, as it acts as your password. Paste it into your application’s environment variables or configuration files. Ensure you do not expose this key in public repositories, as it draws from your balance.

  • Copy the full 'tts-...' string
  • Store in environment variables
  • Avoid public repository exposure

First API Request (curl)

Sound wave illustration for: First API Request (curl)

This section demonstrates a direct API call to generate speech, providing a concrete starting point for your call center’s IVR system. You will use a standard curl command to send text and receive an audio file, ensuring immediate verification of your integration.

Copy Command

Begin by copying the following command, which sends a simple greeting to the TTS endpoint. Replace YOUR_API_KEY with the key found on your account dashboard.

  • Command: `curl -X POST https://api.angin888.cc/v1/audio/speech -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"model":"tts-1","input":"Hello, welcome to our support line.","voice":"aria","response_format":"mp3"}'`

Adjust Parameters

Customize the request to match your specific workflow. The voice field accepts one of eight presets, such as atlas for neutral news-style announcements or nova for upbeat prompts. You can also adjust the speed between 0.25 and 4.0 to fit your callers’ preferences.

Receive Response

Upon success, the API returns the audio file directly in the response body. If the synthesis fails, the charge is returned in full. The audio is ready for immediate playback in your IVR queue.

Integration with OpenAI SDK

Sound wave illustration for: Integration with OpenAI SDK

The OpenAI SDKs work seamlessly with our API by simply pointing them to our base URL. This allows you to use the same client libraries you already know, making integration quick for your call center’s existing infrastructure.

Change base_url

Update the SDK’s base URL to https://api.angin888.cc/v1. This redirects all requests to our TTS endpoint while maintaining the standard request shape.

Install SDK

Install the official OpenAI SDK using your preferred package manager. No proprietary client is required; the standard library handles the JSON body structure perfectly.

Adapt Code

Pass your API key via the Authorization header. Use standard fields like model, input, and voice just as you would with OpenAI. The SDK handles the rest, returning audio data directly to your application.

Supported Audio Formats

Sound wave illustration for: Supported Audio Formats

For IVR systems, we recommend MP3 for its broad compatibility and small file size, which helps keep latency low during call routing. WAV is available for legacy telephony platforms that require uncompressed audio, though this increases bandwidth usage significantly.

MP3

MP3 is the default and most efficient format for most modern call center integrations. It offers a good balance between audio quality and file size, ensuring faster playback in your IVR menus without compromising clarity.

WAV

WAV provides uncompressed audio, which is useful for systems that cannot handle compressed codecs or require precise sample-accurate playback. Be aware that WAV files are significantly larger than MP3s, which may impact transfer times.

OPUS, FLAC, PCM

OPUS offers high-quality compression ideal for VoIP integrations. FLAC provides lossless compression for archival purposes. PCM is raw uncompressed audio, useful for direct hardware telephony interfaces.

Request Parameters

Sound wave illustration for: Request Parameters

The model field accepts "tts-1" or "tts-1-hd", which use the same engine and pricing. The input field takes your script text, limited to 4096 characters per request. For longer IVR menus or support scripts, split the text into chunks and join the resulting audio files.

Model: tts-1 or tts-1-hd

Both models use the same engine and price. Choose based on your preference, as the underlying engine remains consistent for your call center workflows.

Voice: 8 Presets

Select from eight licensed voices suitable for different IVR roles. Female options include Aria (warm narrator), Nova (upbeat), Luna (storytelling), and Sage (calm instructor). Male options include Felix (energetic promo), Milo (conversational), Atlas (neutral news), and Orion (deep documentary).

  • Aria: Warm, clear narrator
  • Nova: Bright, upbeat
  • Luna: Soft, storytelling
  • Sage: Calm, instructional
  • Felix: Energetic, promo
  • Milo: Friendly, conversational
  • Atlas: Neutral, news
  • Orion: Deep, documentary

Speed: 0.25–4.0

Adjust the speed parameter between 0.25 and 4.0 to match your callers' listening preferences. Standard speed (1.0) typically processes text at roughly 25 characters per second. Requests are processed sequentially, so higher speeds may reduce generation time but remain subject to queue limits under load.

Request Parameters

Rate Limits & Quotas

Sound wave illustration for: Rate Limits & Quotas

Rate limits protect the stability of our shared infrastructure. Each API key allows 60 requests per minute once funded, ensuring consistent delivery for your call center workflows. This limit applies per key, so multiple keys can scale throughput if needed.

60 Requests per Minute

After topping up your account, you can send up to 60 synthesis requests every minute. This capacity is sufficient for most standard IVR systems and moderate call volume spikes.

10 Requests Before Top-Up

New accounts without a top-up are limited to 10 requests per minute. This allows you to verify integration quality before committing to higher volumes. Top-ups via USDT (TRC-20) lift this restriction immediately.

Queue Under Load

Requests are processed sequentially. During high demand, additional requests may wait in a queue before synthesis begins. This ensures fair resource distribution but may slightly increase latency for burst traffic.

Error Handling

Sound wave illustration for: Error Handling

When a synthesis request fails, the API returns a standard HTTP error code (such as 400 for bad input or 429 for rate limits) along with a clear message. Crucially, any charge for a failed request is automatically refunded to your balance, so you only pay for successfully generated audio.

This ensures that transient issues, like network timeouts or invalid parameters, do not cost you extra. You can safely retry failed requests without worrying about double-charging.

HTTP Error Codes

The API uses standard HTTP status codes to indicate success or failure. A 200 OK means the audio is ready. Common errors include 400 Bad Request for invalid JSON or missing fields, and 429 Too Many Requests if you exceed the 60 requests per minute limit.

  • 400: Invalid request format or missing required fields.
  • 401: Unauthorized; check your Bearer token.
  • 429: Rate limit exceeded; wait or upgrade your key.

Refund on Failure

If synthesis fails due to server-side issues or unexpected errors, the character count is not deducted from your balance. The refund is applied instantly, so your available credit remains accurate. This applies to both the free trial and paid balances.

Debugging Tips

Ensure your text does not exceed 4096 characters per request. Check that the voice ID exists in the /v1/voices list. If you receive a 429 error, consider splitting your text or implementing exponential backoff in your integration logic.

Language Tagging

Sound wave illustration for: Language Tagging

Precise language configuration ensures your IVR prompts are understood by callers. While the API guesses the language from the script, explicit tagging removes ambiguity for multilingual call flows.

Specify ISO Code

Set the language parameter to the ISO 639-1 code (e.g., de, es, fr). This forces the engine to use the correct phoneme rules for the selected voice.

  • Recommended for mixed-language scripts or non-English Latin text
  • Ensures consistent pronunciation across different voice presets

Automatic Detection

If omitted, the API infers the language from the script. Latin script defaults to English. CJK characters trigger their respective languages (Chinese, Japanese, Korean). This works well for single-language campaigns.

Unsupported Languages

Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali, and others are not supported. Using unsupported text may result in garbled audio or incorrect pronunciation.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Amazon Polly berechnet pro Zeichen abgerechnet, wobei die Preise je nach Stimme variieren.

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. ISO 639 language codes
  3. openai-node on GitHub
  4. OpenAI API reference: create speech
  5. W3C WAI: making audio and video accessible
  6. LibriTTS-R corpus (OpenSLR 141)
  7. FFmpeg documentation
  8. MDN: Web Speech API
  9. curl documentation
  10. IETF RFC 7845: Ogg Opus
  11. openai-python on GitHub
  12. TRON developer hub: TRC-20

More on this site