SpeechRequest - Go SDK

SpeechRequest type definition

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

Text-to-speech request input

Fields

FieldTypeRequiredDescriptionExample
Inputstring✔️Text to synthesizeHello world
Modelstring✔️TTS model identifierelevenlabs/eleven-turbo-v2
Provider*components.SpeechRequestProviderProvider-specific passthrough configuration
ResponseFormat*components.ResponseFormatEnumAudio output formatpcm
Speed*float64Playback speed multiplier. Only used by models that support it (e.g. OpenAI TTS). Ignored by other providers.1
Voicestring✔️Voice identifier (provider-specific).alloy