# `Codex.Voice.Model.TTSModel`
[🔗](https://github.com/nshkrdotcom/codex_sdk/blob/v0.18.1/lib/codex/voice/model.ex#L109)

Behaviour for text-to-speech models.

TTS models convert text into audio. The audio is returned as a stream
of bytes in PCM format for efficient memory usage with large outputs.

Note: The behaviour callbacks use module-level functions. Implementations
should use struct-based models where the struct is passed as the first
parameter to instance methods like `run/3`.

# `model_name`

```elixir
@callback model_name() :: String.t()
```

Returns the name of the TTS model.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
