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

# Übersetzungen

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

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

### Beispiel

```typescript theme={null}
const translated = await client.generateTranslation({
  model: "openai/gpt-4o-translate",
  file: "data:audio/mp3;base64,...",
});
```

### Wichtige Parameter

* `model` erforderlich: ID eines übersetzungsfähigen Modells.
* `file` erforderlich: Zu übersetzende Audiodaten.
* `prompt`: Optionaler Kontext zur Steuerung der Übersetzung.
* `temperature` (0–2): Zufälligkeit der Stichprobenauswahl.
* `response_format`: `json`, `text`, `srt`, `verbose_json`, usw.

### Rückgabe

`AudioTranscriptionResponse`

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


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