> ## Documentation Index
> Fetch the complete documentation index at: https://docs.euri.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Text to Speech

> Convert text to natural-sounding speech using Orpheus, PlayAI, and Sarvam models.

## Request

```bash theme={null}
POST https://api.euron.one/api/v1/euri/audio/speech
```

### Body parameters

<ParamField body="model" type="string" required>
  TTS model ID. Options: `canopylabs/orpheus-v1-english`, `canopylabs/orpheus-arabic-saudi`, `playai-tts`, `playai-tts-arabic`, `sarvam-tts`.
</ParamField>

<ParamField body="input" type="string" required>
  The text to synthesize into speech.
</ParamField>

<ParamField body="voice" type="string">
  Voice ID or name. Available voices depend on the model.
</ParamField>

<ParamField body="target_language_code" type="string">
  Language code for Sarvam models (e.g. `"hi-IN"`, `"en-IN"`).
</ParamField>

<ParamField body="speech_sample_rate" type="integer">
  Audio sample rate in Hz (Sarvam models).
</ParamField>

<ParamField body="pace" type="number">
  Speech pace/speed (Sarvam models).
</ParamField>

***

## Examples

<CodeGroup>
  ```bash cURL (Orpheus English) theme={null}
  curl -X POST https://api.euron.one/api/v1/euri/audio/speech \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer YOUR_EURI_API_KEY" \
    -d '{
      "model": "canopylabs/orpheus-v1-english",
      "input": "Hello! Welcome to EURI, the AI API gateway by Euron.",
      "voice": "tara"
    }' \
    --output speech.wav
  ```

  ```python Python theme={null}
  from openai import OpenAI

  client = OpenAI(
      api_key="YOUR_EURI_API_KEY",
      base_url="https://api.euron.one/api/v1/euri"
  )

  response = client.audio.speech.create(
      model="canopylabs/orpheus-v1-english",
      input="Hello! Welcome to EURI, the AI API gateway by Euron.",
      voice="tara"
  )

  response.stream_to_file("speech.wav")
  ```

  ```bash cURL (Sarvam Hindi) theme={null}
  curl -X POST https://api.euron.one/api/v1/euri/audio/speech \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer YOUR_EURI_API_KEY" \
    -d '{
      "model": "sarvam-tts",
      "input": "नमस्ते, EURI में आपका स्वागत है।",
      "target_language_code": "hi-IN"
    }' \
    --output speech_hindi.wav
  ```
</CodeGroup>

***

## Response

Returns binary audio data (`audio/wav`). Save the response body directly to a file.

## Pricing

| Model                             | Price per million characters |
| --------------------------------- | ---------------------------- |
| `canopylabs/orpheus-v1-english`   | \$22.00                      |
| `canopylabs/orpheus-arabic-saudi` | \$40.00                      |
| `playai-tts`                      | \$22.00                      |
| `playai-tts-arabic`               | \$40.00                      |
| `sarvam-tts`                      | \$33.00 (premium)            |
