Real Time Routes
Generate Streamed Text to Speech File Data
From the user’s perspective, this is a standard request. In the response, we include specific headers: ‘Transfer-Encoding’ is set to ‘chunked’ to enable streaming, ‘Connection’ is set to ‘keep-alive’ to maintain the connection, and ‘Content-Type’ is set to ‘audio/wav’ to indicate the media type. These headers allow the client to stream audio data from the server in real time.
POST
Authorizations
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
stream
Streamed Successful Response - Chunked
The response is of type file
.