> ## 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 - Go SDK

> SpeechRequest type definition

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

Text-to-speech request input

## 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`       | [\*components.SpeechRequestProvider](/client-sdks/go/api-reference/models/speechrequestprovider) | :heavy\_minus\_sign: | Provider-specific passthrough configuration                                                                   |                            |
| `ResponseFormat` | [\*components.ResponseFormatEnum](/client-sdks/go/api-reference/models/responseformatenum)       | :heavy\_minus\_sign: | Audio output format                                                                                           | pcm                        |
| `Speed`          | `*float64`                                                                                       | :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                      |
