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

# Traduções

> Chame /audio/translations usando o SDK TypeScript.

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

### Exemplo

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

### Parâmetros principais

* `model` obrigatório: ID de um modelo compatível com tradução.
* `file` obrigatório: Dados de áudio para tradução.
* `prompt`: Contexto opcional para orientar a tradução.
* `temperature` (0–2): Aleatoriedade da amostragem.
* `response_format`: `json`, `text`, `srt`, `verbose_json`, etc.

### Retorna

`AudioTranscriptionResponse`

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


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