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

# الترجمات

> استدعِ /audio/translations باستخدام SDK Ruby.

**الطرق**: `client.generate_translation(...)` أو `client.create_translation(...)`.

### مثال

```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'
)
```

### المعلمات الأساسية

* `model` (مطلوب): معرّف نموذج يدعم الترجمة.
* `audio_url` أو `audio_b64` (مطلوب): بيانات الصوت المطلوب ترجمتها.
* `prompt`: سياق اختياري لتوجيه الترجمة.
* `temperature` (0–2): عشوائية أخذ العينات.
* `response_format`: ‏`json` و`text` و`srt` و`verbose_json` وغيرها.

### القيمة المعادة

`AudioTranscriptionResponse`


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