client.tts.create(request)
Returns the full audio buffer in a single response. Best for batch/offline use where you don’t need real-time playback.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text to synthesize (Urdu, English, or mixed) |
voiceId | string | Yes | Voice profile ID (e.g. v_meklc281) |
outputFormat | string | No | Audio format — defaults to WAV_22050_32 |
phraseReplacementConfigId | string | No | ID from phrase replacements |
Response
| Field | Type | Description |
|---|---|---|
audio | Buffer | Complete audio data |
metadata.requestId | string | Request ID for debugging |
metadata.contentType | string | MIME type of the audio |
metadata.sampleRate | number | Audio sample rate |
