Skip to main content
The Go SDK and docs are currently in beta. Report issues on GitHub.
Text-to-speech request input

Fields

FieldTypeRequiredDescriptionExample
Inputstring:heavy_check_mark:Text to synthesizeHello world
Modelstring:heavy_check_mark:TTS model identifierelevenlabs/eleven-turbo-v2
Provider*components.SpeechRequestProvider:heavy_minus_sign:Provider-specific passthrough configuration
ResponseFormat*components.ResponseFormatEnum:heavy_minus_sign:Audio output formatpcm
Speed*float64:heavy_minus_sign:Playback speed multiplier. Only used by models that support it (e.g. OpenAI TTS). Ignored by other providers.1
Voicestring:heavy_check_mark:Voice identifier (provider-specific).alloy