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

Copy Markdown View Source

Behaviour for voice model providers.

Model providers are factories that create STT and TTS model instances by name. They handle client initialization and configuration.

Summary

Callbacks

Get a speech-to-text model by name.

Get a text-to-speech model by name.

Callbacks

get_stt_model(name)

@callback get_stt_model(name :: String.t() | nil) :: struct()

Get a speech-to-text model by name.

If name is nil, returns the default STT model.

get_tts_model(name)

@callback get_tts_model(name :: String.t() | nil) :: struct()

Get a text-to-speech model by name.

If name is nil, returns the default TTS model.