SpeechRequest - Python SDK

SpeechRequest method reference

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

Text-to-speech request input

Fields

FieldTypeRequiredDescriptionExample
inputstr✔️Text to synthesizeHello world
modelstr✔️TTS model identifierelevenlabs/eleven-turbo-v2
providerOptional[components.SpeechRequestProvider]Provider-specific passthrough configuration
response_formatOptional[components.ResponseFormatEnum]Audio output formatpcm
speedOptional[float]Playback speed multiplier. Only used by models that support it (e.g. OpenAI TTS). Ignored by other providers.1
voicestr✔️Voice identifier (provider-specific).alloy