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

# KokoroTTS

> Telnyx KokoroTTS is a lightweight, lowest-latency text-to-speech model ideal for real-time voice agents and interactive applications on the Telnyx TTS API.

**Voice format:** `Telnyx.KokoroTTS.<voice>`

Lightweight, lowest-latency model. 5 languages: en, es, fr, it, pt.

## Voice Samples

| Voice                       | Language | Gender | Sample                                                                 |
| --------------------------- | -------- | ------ | ---------------------------------------------------------------------- |
| `Telnyx.KokoroTTS.af_heart` | en-US    | Female | <audio controls src="/audio/tts-samples/telnyx-kokoro-af_heart.mp3" /> |
| `Telnyx.KokoroTTS.am_adam`  | en-US    | Male   | <audio controls src="/audio/tts-samples/telnyx-kokoro-am_adam.mp3" />  |
| `Telnyx.KokoroTTS.bf_emma`  | en-UK    | Female | <audio controls src="/audio/tts-samples/telnyx-kokoro-bf_emma.mp3" />  |

***

## WebSocket

### Query Parameters

```
wss://api.telnyx.com/v2/text-to-speech/speech?voice=Telnyx.KokoroTTS.af_heart
```

| Parameter      | Type    | Default | Description        |
| -------------- | ------- | ------- | ------------------ |
| `audio_format` | string  | `mp3`   | `mp3`, `linear16`. |
| `sample_rate`  | integer | `24000` | 24000.             |

### Voice Settings

None. All synthesis parameters are fixed. The init frame only needs `{"text": " "}`.

## REST API

### Fields

No model-specific fields. Audio format is always MP3.

| Field         | Type   | Default         | Description                                      |
| ------------- | ------ | --------------- | ------------------------------------------------ |
| `output_type` | string | `binary_output` | `binary_output`, `base64_output`, or `audio_id`. |

### Response

Default (`binary_output`): chunked audio bytes with `Content-Type: audio/mpeg`.

With `output_type: "base64_output"`: JSON with base64-encoded audio.

With `output_type: "audio_id"`: JSON with an `audio_url` for deferred retrieval.
