Skip to main content
POST

Authorizations

Authorization
string
header
required

Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '

Body

application/json
text
string
required

A word or short phrase to speak, 1-200 characters (TextMaxLength above that).

Required string length: 1 - 200
Example:

"مرحبا بكم في همسة، جربوا الـ API"

ttsVoiceId
string<uuid>
required

ID of the TTS voice to speak with: a Hamsa voice, or one of your project's voices.

Example:

"078338c4-7788-4371-95d4-1bbe45021113"

Response

The spoken text as a WAV file (Content-Disposition: inline; filename="pronunciation.wav").

The response is of type file.