> ## 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.

# Orpheus

> Choose a preset speaker and size the one- or two-GPU deployment.

Choose Orpheus for English speech in one of eight preset voices. The service streams audio as the language model produces codec tokens.

## Install and start

Obtain access to both gated Hugging Face repositories, [the fine-tuned weights](https://huggingface.co/canopylabs/orpheus-3b-0.1-ft) and [the pretrained tokenizer](https://huggingface.co/canopylabs/orpheus-3b-0.1-pretrained). The default `orpheus_colocated.yaml` uses one GPU.

### `orpheus`

Text → audio. The default `orpheus_colocated.yaml` uses 1 GPU. The [weights](https://huggingface.co/canopylabs/orpheus-3b-0.1-ft) use Apache-2.0.

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

[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.',
    voice='tara',
)
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", "voice": "tara"}' -o reply.wav
```

## Deployment configs

`mstar serve orpheus` loads `orpheus_colocated.yaml`, not `orpheus.yaml`.

| File | GPUs | Layout | Use |
| - | - | - | - |
| `orpheus_colocated.yaml` | 1 | LLM and SNAC on one GPU | Default |
| `orpheus.yaml` | 2 | LLM on GPU 0, SNAC on GPU 1 | The decoder off the LLM's GPU |
| `orpheus_pd_disaggregated.yaml` | 2 | Prefill on GPU 0, decode on GPU 1 | Prefill and decode apart |
| `orpheus_tp2.yaml` | 2 | LLM at TP2 | Tensor parallelism |

Start a two-GPU config with `mstar serve orpheus --config configs/orpheus_tp2.yaml --gpus 0,1`.

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`, `top_k`, `repetition_penalty` and `penalize_prompt` go in `extra_body`):

| Field | Default | Effect |
| - | - | - |
| `voice` | `tara` | One of the eight voices. |
| `temperature`, `top_p` | 0.6, 0.8 | Sampling. The checkpoint's `generation_config.json` is Llama's chat preset, so only its `do_sample` is read. |
| `repetition_penalty` | 1.3 | |
| `max_output_tokens` | 2048 | Audio tokens; 2048 are about 25 s of speech. |
| `sentence_chunking` | on from 250 characters | `/v1/audio/speech` synthesizes longer input as sentence chunks of about 200 characters. `false` sends it whole. |

Deployment `model_kwargs`: `snac_chunk_schedule` (default `[4, 2, 2, 2]`) and `snac_chunk_frames` (4) set how many 7-token frames each streamed SNAC chunk takes.

## Limits

* Text input only.
* An unknown `voice` is a 400 that lists the voices.
* `/v1/audio/speech` input that splits into more than 32 sentence chunks, about 6,400 characters, is a 400.
* `speed` is not an Orpheus control and is logged as ignored.
* The LM head computes only the audio-token rows, so sampling renormalizes over them; sampled output is not identical to the reference's.


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