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

> استدعِ /audio/transcriptions باستخدام SDK TypeScript.

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

### مثال

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

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

* `model` (مطلوب): معرّف نموذج يدعم النسخ الصوتي.
* `file` (مطلوب): بيانات الصوت (URL أو base64 أو ثنائية).
* `language`: رمز اللغة كإشارة (مثل `en`).
* `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.