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

# Chatterbox

> Choose the English, multilingual or Turbo checkpoint and clone a speaker.

Use Chatterbox to read text in a preset voice or clone a speaker from a clip. Choose `chatterbox` for the English model, `chatterbox_multilingual` for a target language or `chatterbox_turbo` for the Turbo checkpoint.

## Install and start

Each default runs on one GPU. For multilingual synthesis install `mstar-ai[chatterbox,chatterbox_multilingual]` and start `chatterbox_multilingual`.

### `chatterbox`

Text, audio → audio. The default `chatterbox.yaml` uses 1 GPU. The [weights](https://huggingface.co/ResembleAI/chatterbox) use MIT.

```bash theme={null}
uv pip install --torch-backend=auto "mstar-ai[chatterbox]"
mstar serve chatterbox
```

[Send the request](#synthesize).

### `chatterbox_multilingual`

Text, audio → audio. The default `chatterbox_multilingual.yaml` uses 1 GPU. The [weights](https://huggingface.co/ResembleAI/chatterbox) use MIT.

```bash theme={null}
uv pip install --torch-backend=auto "mstar-ai[chatterbox,chatterbox_multilingual]"
mstar serve chatterbox_multilingual
```

[Send the request](#synthesize).

### `chatterbox_turbo`

Text, audio → audio. The default `chatterbox_turbo.yaml` uses 1 GPU. The [weights](https://huggingface.co/ResembleAI/chatterbox-turbo) use MIT.

```bash theme={null}
uv pip install --torch-backend=auto "mstar-ai[chatterbox]"
mstar serve chatterbox_turbo
```

[Send the request](#synthesize).

## Send a request

Run either client example in a second terminal after `/health` returns 200.

### Synthesize a sentence

Save the synthesized speech as `reply.wav`.

**Python SDK**

```python theme={null}
from mstar import MStarClient

client = MStarClient("http://localhost:8000")
reply = client.tts(
    'The next stop is Central.',
)
reply.to_wav("reply.wav")
```

**curl**

```bash theme={null}
curl -fsS http://localhost:8000/v1/audio/speech \
  -H 'Content-Type: application/json' \
  -d '{"input": "The next stop is Central.", "response_format": "wav"}' -o reply.wav
```

## Deployment configs

| File | GPUs | Concurrency cap | Layout |
| - | - | - | - |
| `chatterbox.yaml`, `chatterbox_multilingual.yaml` | 1 | 30 | T3 and S3Gen on one worker |
| `chatterbox_turbo.yaml` | 1 | 50 | T3 and S3Gen on one worker |
| `chatterbox_split.yaml`, `chatterbox_multilingual_split.yaml`, `chatterbox_turbo_split.yaml` | 1 | as above | S3Gen on a second worker on the same GPU, with `mps: true` |

The split configs pay only under CUDA MPS, which lets the two workers' kernels overlap: more throughput at high concurrency, a later first chunk. `mps: true` needs `nvidia-cuda-mps-control` on `PATH`.

To use an alternative, pass `--config configs/<file>` after the launcher name. From a wheel installation, [copy the shipped YAML](https://docs.m-star.org/serving.md#custom-configs) and pass its local path.

## Settings and defaults

Request fields (on `/v1/audio/speech`, all but `voice`, `temperature`, `top_p` and `seed` go in `extra_body`):

| Field | Default | Effect |
| - | - | - |
| `voice` | `default` | The checkpoint's voice, or a preset clip in the deployment's `voices_dir`, named with or without its extension. |
| `ref_audio` | none | A clip to clone: a data URL or bare base64. An http(s) URL only when the server sets `MSTAR_ALLOW_REMOTE=1`. 5 to 30 s works best. |
| `exaggeration` | 0.5 | 0 to 2, emotion intensity. Not on Turbo. |
| `cfg_weight` | 0.5 | 0 to 1. 0 turns guidance off and halves the T3 work. Not on Turbo. |
| `temperature`, `top_p`, `top_k`, `min_p`, `repetition_penalty` | 0.8, 1.0, 0, 0.05, 1.2 (Turbo 0.8, 0.95, 1000, 0, 1.2) | Sampling. Temperature under 1e-5 is greedy. `min_p` is not on Turbo. |
| `n_cfm_timesteps` | 10 (Turbo 2) | S3Gen Euler steps. |
| `max_output_tokens` | up to `max_new_tokens_limit` | Speech tokens, 25 a second. |
| `watermark` | `true` | `false` turns the PerTh mark off. |
| `language_id` | `default_language` (`en`) | Multilingual only. Accepts `ar`, `da`, `de`, `el`, `en`, `es`, `fi`, `fr`, `he`, `hi`, `it`, `ja`, `ko`, `ms`, `nl`, `no`, `pl`, `pt`, `ru`, `sv`, `sw`, `tr` and `zh`. |
| `sentence_chunking` | off | `true` splits long text into sentence groups of up to 400 characters, at most 32. |

The multilingual extra installs the Japanese and Chinese preprocessing packages. For Hebrew diacritics, install `dicta_onnx`. For Russian stress marks, install `russian_text_stresser`. If an optional normalizer is missing, Chatterbox logs a warning and skips that step.

Deployment `model_kwargs`: `max_new_tokens_limit` (1000 in the shipped configs, sized with `max_concurrent_requests` to fit the T3 KV pool; raise `resources.t3_kv.max_num_pages` with it), `voices_dir`, `watermark`, `default_language`, `stream_chunk_tokens` (`0` synthesizes whole utterances, the reference path) and `stream_context_tokens`.

## Limits

* Keep a request to a sentence or two. Text over 512 tokens is refused, and quality drops well before that, as in the reference package. Use `sentence_chunking: true` for long text.
* Turbo answers a non-zero `cfg_weight`, `exaggeration` or `min_p` with a 400. `language_id` on a non-multilingual checkpoint is logged as ignored, and so is `speed`.
* `ref_audio` clips over 60 s or below 8 kHz are refused, and paths on the server are never read. Only the first 30 s of a clip is used. Turbo refuses a reference clip shorter than 5 s.
* Startup refuses a `max_concurrent_requests` whose requests at `max_new_tokens_limit` do not fit the T3 KV pool.
* Streamed audio is not sample-identical to a whole-utterance decode.


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