> ## 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 (fala para texto)

> Chame /audio/transcriptions com o SDK TypeScript.

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

### Exemplo

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

### Parâmetros principais

* `model` (obrigatório): ID de um modelo compatível com transcrição.
* `file` (obrigatório): dados de áudio (URL, base64 ou binário).
* `language`: código de idioma como sugestão (por exemplo, `en`).
* `prompt`: contexto opcional para aumentar a precisão.
* `temperature` (0–2): aleatoriedade da amostragem.
* `response_format`: `json`, `text`, `srt`, `verbose_json` etc.

### Retorno

`AudioTranscriptionResponse`

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


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