client.stt.transcribe(request)
Transcribe audio to text. Accepts a file path, Buffer, or readable stream.
From File Path
From Buffer
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file | string · Buffer · ReadableStream | Yes | Audio input — file path, buffer, or stream |
fileName | string | When using Buffer/Stream | File name for format detection |
model | 'scribe' · 'scribe-mini' | No | Transcription model (default: scribe) |
language | string | No | Language code (e.g. ur for Urdu) |
domain | 'phone-commerce' · 'farming' | No | Domain-specific model for better accuracy |
Response
| Field | Type | Description |
|---|---|---|
transcript | string | The transcribed text |
