> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gnani.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Text-to-Speech FAQ

> Answers to common Text-to-Speech questions: which interface, model and voice to use, speed, expression, numbers and names, text length, audio formats, limits and errors.

## Getting started

### Which interface should I use: REST, Streaming or Realtime?

| You need | Use |
| - | - |
| The whole audio file in one response | [REST](https://docs.gnani.ai/api/TTS/tts-inference.md) |
| Playback that starts before the whole audio is ready, over plain HTTP | [Streaming (SSE)](https://docs.gnani.ai/api/TTS/tts-sse.md) |
| The lowest latency in a live conversation, with one connection for many requests | [Realtime (WebSocket)](https://docs.gnani.ai/api/TTS/tts-websocket.md) |

### Which model should I use?

| | Timbre v3.0 | Timbre v2.5 |
| - | - | - |
| Voices | 34, each speaks all ten languages | 42, each speaks all ten languages, with a recommended language per voice |
| Expression with [audio tags](https://docs.gnani.ai/api/TTS/tts-audio-tags.md) | Yes | No: tags are removed |
| Hinglish voice (`hi-en`) | TBC | Poorvi |

`model` is required on every request. See [Available voices](https://docs.gnani.ai/api/TTS/available-voices.md).

### How do I pick a voice?

[Listen to every voice](https://docs.gnani.ai/api/TTS/available-voices.md#listen-to-the-voices) on Available voices: filter by language, gender or use, and compare up to four. For Timbre v3.0, start with the [recommended voices for your language](https://docs.gnani.ai/api/TTS/available-voices.md#recommended-voices-by-language).

### Which languages are supported?

Hindi, English, Bengali, Gujarati, Kannada, Malayalam, Marathi, Punjabi, Tamil and Telugu, plus `auto`, which picks the language from the script of the text. See [Building for Indian languages](https://docs.gnani.ai/resources/indian-languages.md).

## Voices and speech

### Why does my voice return `400`?

Voices belong to one model. A Timbre v2.5 voice such as Nalini sent with `timbre-v3.0`, or a Timbre v3.0 voice such as Shivani sent with `timbre-v2.5`, returns `400`. The error message lists the voices the model supports.

### How do I make speech slower or faster?

Set `speed`. Timbre v3.0 accepts `0.8` to `1.2`, and the supported speeds are `0.8`, `1.0` and `1.2`. Timbre v2.5 accepts `0.85` to `1.15`, or `"slow"`, `"medium"` and `"fast"`. A value outside the model's range returns `400`.

### Can the voice laugh, whisper or pause?

Yes, on Timbre v3.0: put a tag such as `<laugh>`, `<whispers>` or `<pauses>` in the text. There are 13 tags; spelling and case must match exactly, and a wrong tag is dropped without an error. Timbre v2.5 removes tags. See [Audio tags](https://docs.gnani.ai/api/TTS/tts-audio-tags.md).

### A number, date or ID is read wrongly. How do I fix it?

Write the text as you would show it on screen, and set `language` to the language of the text. Some known cases:

* **Hindi dates:** write *15/03/2026* or *पंद्रह मार्च*, not *15 मार्च*.
* **Two-part dates** such as *23/06* are read as fractions: include the year.
* **Reference numbers of 14 or more digits** are read as one run: add spaces or hyphens between groups.

All cases are on [Numbers, IDs and dates](https://docs.gnani.ai/api/TTS/tts-input-formating.md).

### Why is my Hindi text read as English?

With `language: "auto"`, text that is only Latin letters and digits is read as English. Set `language`, and write the text in the language's own script. How Hindi written in Latin letters is read with `hi-IN`: TBC.

### A name or brand is mispronounced.

Ask your Gnani contact about a custom pronunciation.

### Can I use my own voice?

Yes, with [Voice Cloning](https://docs.gnani.ai/api/VC/quickstart.md): upload 5 to 30 seconds of one person speaking, then speak with the voice on the same three interfaces. Only clone a voice when the speaker has agreed to it.

## Text and audio

### My text is longer than 2,048 characters.

Each request takes up to 2,048 characters, audio tags included. Split longer text into several requests, for example at sentence ends. Text that is too long can return `500` rather than `400`. On [Realtime](https://docs.gnani.ai/api/TTS/tts-websocket.md), send the parts as messages on one connection, one after another.

### What audio format do I get by default?

A 48 kHz WAV file. Set `audio_config` for MP3, OGG Opus, raw PCM, µ-law or A-law, and for another sample rate. See [Audio formats](https://docs.gnani.ai/api/TTS/audio-formats.md).

### What should I use for a phone line?

`mulaw` or `alaw`, whichever your telephony platform expects. Both are always 8 kHz and have no header.

### The file's sample rate is not what I asked for.

Two cases are expected. `mulaw` and `alaw` are always 8 kHz. An MP3 at `bitrate: "32k"` comes back at 22,050 Hz when you ask for 24,000 or 48,000. Read the sample rate from the file. See [Audio formats](https://docs.gnani.ai/api/TTS/audio-formats.md#things-to-watch-for).

### Raw audio plays too fast, too slow or as noise.

`raw` has no header, so the player needs the sample rate you asked for, 16-bit samples and one channel. Play it with exactly those settings.

### How do I put streamed chunks back together?

Decode each chunk's `audio` from base64 and append it in order. The last message, `complete`, has `is_final: true` and no audio. With `raw`, each chunk can go straight to a player. See [Streaming](https://docs.gnani.ai/api/TTS/tts-sse.md#events) or [Realtime](https://docs.gnani.ai/api/TTS/tts-websocket.md#connection-flow).

### Can I call the API from a browser?

Not directly: your API key must stay on your server, and a browser cannot set WebSocket headers. Call the API from your server, or relay the WebSocket through it. The pattern is shown in [Stream from a browser](https://docs.gnani.ai/api/STT/stt-websocket.md#stream-from-a-browser).

## Limits, errors and billing

### Why do I get `429 RATE_LIMITED`?

On the Free and Pay as you go plans, each API key and account can send 1 request per second and hold 20 WebSocket connections. There is no `Retry-After` header: wait, then retry with backoff. See [Limits](https://docs.gnani.ai/api/TTS/limits.md) and [Retrying](https://docs.gnani.ai/api/introduction/errors.md#retrying).

### I get `500` with "We are facing technical difficulties".

It is returned for unexpected failures, and also for text that is too long. Check the text length first, then retry. See [Error Reference](https://docs.gnani.ai/api/introduction/errors.md#text-to-speech).

### Why do Text-to-Speech errors look different from Speech-to-Text errors?

Text-to-Speech REST and Streaming return a flat body with `message` and `status_code`; Speech-to-Text uses an `error.type` envelope. Authentication and rate-limit errors use the same shape on both. See [Error Reference](https://docs.gnani.ai/api/introduction/errors.md).

### How much does Text-to-Speech cost?

₹18 per 10,000 characters of `text`, excluding GST. Audio tags count, angle brackets included. See [Limits and billing](https://docs.gnani.ai/resources/limits-and-billing.md).

## Related

> [card] [Available voices](https://docs.gnani.ai/api/TTS/available-voices.md)
>
> Listen to every voice and compare them.

> [card] [Limits](https://docs.gnani.ai/api/TTS/limits.md)
>
> Text length, speed, formats and rate limits.

> [card] [Error Reference](https://docs.gnani.ai/api/introduction/errors.md#text-to-speech)
>
> Every Text-to-Speech error and how to retry.

> [card] [Quickstart](https://docs.gnani.ai/api/TTS/quickstart.md)
>
> Your first audio file in a few minutes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.