Supported Types
STTInlineInputAudio
STTURLInputAudio
Union Discrimination
Use theType field to determine which variant is active, then access the corresponding field:
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
sttInputAudio := components.CreateSTTInputAudioSTTInlineInputAudio(components.STTInlineInputAudio{/* values here */})
sttInputAudio := components.CreateSTTInputAudioSTTURLInputAudio(components.STTURLInputAudio{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch sttInputAudio.Type {
case components.STTInputAudioTypeSTTInlineInputAudio:
// sttInputAudio.STTInlineInputAudio is populated
case components.STTInputAudioTypeSTTURLInputAudio:
// sttInputAudio.STTURLInputAudio is populated
}