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

**الطريقة**: `client.generateTranslation()`.

### مثال

```typescript theme={null}
const translated = await client.generateTranslation({
  model: "openai/gpt-4o-translate",
  file: "data:audio/mp3;base64,...",
});
```

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

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

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

`AudioTranscriptionResponse`

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


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