> ## 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 (Text zu Sprache)

> Rufe `/audio/speech` mit dem C#-SDK auf.

**Methode**: `client.CreateSpeech(...)`

### Beispiel

```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"
});
```

### Wichtige Parameter

* `model` (erforderlich): ID eines TTS-fähigen Modells.
* `input` (erforderlich): Zu synthetisierender Text.
* `voice`: Sprachvoreinstellung (modellabhängig, z. B. `alloy`).
* `format`: `mp3`, `wav`, `flac` usw.
* `speed`: Faktor für die Wiedergabegeschwindigkeit (typischerweise 0,25–4).

### Rückgabe

Audiodaten (Binärformat)


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