> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt
> Use this file to discover all available pages before exploring further.

# STT (Speech to Text)

> Call /audio/transcriptions with the TypeScript SDK.

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

### Example

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

### Key parameters

* `model` (required): Transcription-capable model id.
* `file` (required): Audio data (URL, base64, or binary).
* `language`: Hint language code (e.g., `en`).
* `prompt`: Optional context to improve accuracy.
* `temperature` (0–2): Sampling randomness.
* `response_format`: `json`, `text`, `srt`, `verbose_json`, etc.

### Returns

`AudioTranscriptionResponse`

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