> ## 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.

# STT (Sprache-zu-Text)

> Rufe /audio/transcriptions mit dem TypeScript-SDK auf.

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

### Beispiel

```typescript theme={null}
const transcript = await client.generateTranscription({
  model: "openai/gpt-4o-transcribe",
  file: "data:audio/mp3;base64,...",
  language: "en",
});
```

### Wichtige Parameter

* `model` (erforderlich): ID eines transkriptionsfähigen Modells.
* `file` (erforderlich): Audiodaten (URL, Base64 oder Binärdaten).
* `language`: Hinweis auf die Sprache (z. B. `en`).
* `prompt`: optionaler Kontext zur Verbesserung der Genauigkeit.
* `temperature` (0–2): Zufälligkeit der Stichprobenauswahl.
* `response_format`: `json`, `text`, `srt`, `verbose_json` usw.

### Rückgabewert

`AudioTranscriptionResponse`

```json theme={null}
{
  "text": "Hello world"
}
```


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