CreateTtsRequest - Go SDK

CreateTtsRequest 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*operations.ProviderProvider-specific passthrough configuration
ResponseFormat*operations.ResponseFormatAudio output formatpcm
Speed*float64Playback speed multiplier. Only used by models that support it (e.g. OpenAI TTS). Ignored by other providers.1
Voicestring✔️Voice identifieralloy