STTRequest - Go SDK

STTRequest type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Speech-to-text request input. Accepts a JSON body with input_audio containing base64-encoded audio.

Fields

FieldTypeRequiredDescriptionExample
InputAudiocomponents.STTInputAudio✔️Base64-encoded audio to transcribe{"data": "UklGRiQA...","format": "wav"}
Language*stringISO-639-1 language code (e.g., “en”, “ja”). Auto-detected if omitted.en
Modelstring✔️STT model identifieropenai/whisper-large-v3
Provider*components.STTRequestProviderProvider-specific passthrough configuration
Temperature*float64Sampling temperature for transcription0