Text-to-Speech

Generate Text-to-Speech

Changed on

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

post/text-to-speech/{model_id}

Request

  • Base URL
    https://api.munsit.com/api/v1
  • URL
    https://api.munsit.com/api/v1/text-to-speech/{model_id}
  • Auth
    API key in header x-api-key

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

sample_ratenumber

Output sample rate in Hz. Use 48000 for WebRTC-native audio with no client resampling.

dialect'auto' | 'emirati' | 'fusha'

Dialect hint for synthesis.

Response

Audio response (streaming or complete file)

Changes

    • breaking

      the response's property type changed from string to integer for status

    • breaking

      the response's property type changed from string to integer for status

    • breaking

      the response's property type changed from string to integer for status

    • breaking

      the response's property type changed from string to integer for status

    • breaking

      the response's property type changed from string to integer for status

    • info

      added the new optional request property

    • info

      added the new optional request property