> ## 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 (reconnaissance vocale)

> Appelez /audio/transcriptions avec le SDK Ruby.

**Méthodes** : `client.generate_transcription(...)` ou `client.create_transcription(...)`.

### Exemple

```ruby theme={null}
require 'phaseo_sdk'

client = PhaseoSdk::Phaseo.new(api_key: ENV.fetch("PHASEO_API_KEY"))
transcript = client.generate_transcription(
  model: 'openai/gpt-4o-transcribe',
  audio_b64: 'base64_audio_data',
  language: 'en'
)
```

### Paramètres principaux

* `model` (obligatoire) : identifiant d’un modèle capable de transcription.
* `audio_url` ou `audio_b64` (obligatoire) : données audio (URL ou base64).
* `language` : code de langue indicatif (par exemple, `en`).
* `prompt` : contexte facultatif pour améliorer la précision.
* `temperature` (0–2) : caractère aléatoire de l’échantillonnage.
* `response_format` : `json`, `text`, `srt`, `verbose_json`, etc.

### Valeur renvoyée

`AudioTranscriptionResponse`


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