# `Codex.Voice.Config.STTSettings`
[🔗](https://github.com/nshkrdotcom/codex_sdk/blob/v0.18.1/lib/codex/voice/config/stt_settings.ex#L1)

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

# `t`

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

# `new`

```elixir
@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"

---

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