cURL
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.
Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token <api-key>'
Successful response
The response is of type file.
file