v1

latestOpenAPI 3.1.02026-07-2616924.9 KB
Text-to-Speech

Generate Text-to-Speech

Generate speech from Arabic text using a specific model. Supports both streaming and non-streaming responses.

post/text-to-speech/{model_id}

Path parameters

model_idstring required

The model identifier to use for generation

Request body

voice_idstring required

The voice ID to use for synthesis

textstring required

The Arabic text to convert to speech

stabilitynumber required

Voice stability (0.0 to 1.0). Higher values produce more consistent output

speednumber

Speech speed multiplier (0.7 to 1.2). Values below 1.0 slow down speech, values above 1.0 speed it up

streamingboolean required

If true, returns streaming PCM16 audio. If false, returns complete WAV file

Response

Audio response (streaming or complete file)