Codex.Voice.Config.STTSettings (Codex SDK v0.7.2)

Copy Markdown View Source

Settings for speech-to-text models.

Fields

  • :prompt - Instructions for the model to follow
  • :language - The language of the audio input (e.g., "en", "es", "fr")
  • :temperature - Sampling temperature for the model
  • :turn_detection - Turn detection settings for streamed audio input

Summary

Functions

Create new STT settings with the given options.

Types

t()

@type t() :: %Codex.Voice.Config.STTSettings{
  language: String.t() | nil,
  prompt: String.t() | nil,
  temperature: float() | nil,
  turn_detection: map() | nil
}

Functions

new(opts \\ [])

@spec new(keyword()) :: t()

Create new STT settings with the given options.

Options

  • :prompt - Instructions for the model
  • :language - Language code (e.g., "en")
  • :temperature - Sampling temperature
  • :turn_detection - Turn detection configuration

Examples

iex> settings = Codex.Voice.Config.STTSettings.new(language: "en")
iex> settings.language
"en"