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

**Méthodes** : `client.generate_translation(...)` ou `client.create_translation(...)`.

### Exemple

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

client = PhaseoSdk::Phaseo.new(api_key: ENV.fetch("PHASEO_API_KEY"))
translated = client.generate_translation(
  model: 'openai/gpt-4o-translate',
  audio_b64: 'base64_audio_data'
)
```

### Paramètres principaux

* `model` (obligatoire) : identifiant d’un modèle capable de traduire.
* `audio_url` ou `audio_b64` (obligatoire) : données audio à traduire.
* `prompt` : contexte facultatif pour guider la traduction.
* `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.