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

# TTS (texto a voz)

> Llama a `/audio/speech` con el SDK de C#.

**Método**: `client.CreateSpeech(...)`

### Ejemplo

```csharp theme={null}
using PhaseoSdk;

var client = new Phaseo(apiKey);
var response = await client.CreateSpeech(new Dictionary<string, object>
{
    ["model"] = "openai/gpt-4o-mini-tts",
    ["input"] = "Hello world",
    ["voice"] = "alloy",
    ["format"] = "mp3"
});
```

### Parámetros principales

* `model` (obligatorio): ID de un modelo compatible con TTS.
* `input` (obligatorio): Texto que se va a sintetizar.
* `voice`: Ajuste preestablecido de voz (depende del modelo; por ejemplo, `alloy`).
* `format`: `mp3`, `wav`, `flac`, etc.
* `speed`: Multiplicador de la velocidad de reproducción (normalmente entre 0,25 y 4).

### Devuelve

Audio binario


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.