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

# Traductions

> Appelez /audio/translations avec le SDK TypeScript.

**Méthode**: `client.generateTranslation()`.

### Exemple

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

### Paramètres principaux

* `model` obligatoire: Identifiant d’un modèle compatible avec la traduction.
* `file` obligatoire: Données audio à traduire.
* `prompt`: Contexte facultatif pour guider la traduction.
* `temperature` (0–2): Aléa de l’échantillonnage.
* `response_format`: `json`, `text`, `srt`, `verbose_json`, etc.

### Renvoie

`AudioTranscriptionResponse`

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


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