Example Usage
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
input | string | :heavy_check_mark: | Text to synthesize | Hello world |
model | string | :heavy_check_mark: | TTS model identifier | elevenlabs/eleven-turbo-v2 |
provider | models.SpeechRequestProvider | :heavy_minus_sign: | Provider-specific passthrough configuration | |
responseFormat | models.ResponseFormatEnum | :heavy_minus_sign: | Audio output format | pcm |
speed | number | :heavy_minus_sign: | Playback speed multiplier. Only used by models that support it (e.g. OpenAI TTS). Ignored by other providers. | 1 |
voice | string | :heavy_check_mark: | Voice identifier (provider-specific). | alloy |