> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-7021d5f4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SpeechRequest - Python SDK

> SpeechRequest method reference

<Warning>
  The Python SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/python-sdk/issues).
</Warning>

Text-to-speech request input

## Fields

| Field             | Type                                                                                   | Required             | Description                                                                                                   | Example                    |
| ----------------- | -------------------------------------------------------------------------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------- | -------------------------- |
| `input`           | *str*                                                                                  | :heavy\_check\_mark: | Text to synthesize                                                                                            | Hello world                |
| `model`           | *str*                                                                                  | :heavy\_check\_mark: | TTS model identifier                                                                                          | elevenlabs/eleven-turbo-v2 |
| `provider`        | [Optional\[components.SpeechRequestProvider\]](../components/speechrequestprovider.md) | :heavy\_minus\_sign: | Provider-specific passthrough configuration                                                                   |                            |
| `response_format` | [Optional\[components.ResponseFormatEnum\]](../components/responseformatenum.md)       | :heavy\_minus\_sign: | Audio output format                                                                                           | pcm                        |
| `speed`           | *Optional\[float]*                                                                     | :heavy\_minus\_sign: | Playback speed multiplier. Only used by models that support it (e.g. OpenAI TTS). Ignored by other providers. | 1                          |
| `voice`           | *str*                                                                                  | :heavy\_check\_mark: | Voice identifier (provider-specific).                                                                         | alloy                      |
