Codex.Voice.Model.TTSModel behaviour (Codex SDK v0.7.2)

Copy Markdown View Source

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.

Summary

Callbacks

Returns the name of the TTS model.

Callbacks

model_name()

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

Returns the name of the TTS model.