POST
/
v1
/
realtime
/
tts
curl --request POST \
  --url https://api.tryhamsa.com/v1/realtime/tts \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "مرحباً بكم في جميعاً في همسة!",
  "speaker": "Majd",
  "dialect": "pls",
  "mulaw": false
}'
This response does not have an example.

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 <api-key>'

Body

application/json

Response

200
audio/wav

Successful response

The response is of type file.