> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# STTInputAudio

Audio to transcribe: inline base64 bytes, or a URL the provider downloads directly.

## Supported Types

### STTInlineInputAudio

```go theme={null}
sttInputAudio := components.CreateSTTInputAudioSTTInlineInputAudio(components.STTInlineInputAudio{/* values here */})
```

### STTURLInputAudio

```go theme={null}
sttInputAudio := components.CreateSTTInputAudioSTTURLInputAudio(components.STTURLInputAudio{/* values here */})
```

## Union Discrimination

Use the `Type` field to determine which variant is active, then access the corresponding field:

```go theme={null}
switch sttInputAudio.Type {
	case components.STTInputAudioTypeSTTInlineInputAudio:
		// sttInputAudio.STTInlineInputAudio is populated
	case components.STTInputAudioTypeSTTURLInputAudio:
		// sttInputAudio.STTURLInputAudio is populated
}
```
