Speak text in a voice and stream the audio back as it is made

POST /Platform/tts/speak/stream

Speak text in a voice and stream the audio back as it is made.

The same speech path as speak, but the response body is the audio itself, sent while it is generated, so playback can start before the text is fully spoken. A stream cannot run in async mode. With term and spoken, the text is spoken as if that pronunciation entry were in your dictionary, without saving it: hear a fix before you set it.

Body parameters

Returns

The raw bytes. Sent as application/octet-stream, not JSON.

Example request

curl -X POST "https://api.hilus.ai/Platform/tts/speak/stream" \
  -H "Authorization: Bearer $HILUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'