post
https://platform.perso.ai/api/v1/session//streaming_tts/
Stream text-to-speech audio in real-time as binary data.
Request Parameters
| Parameter | Required | Description |
|---|---|---|
text | Yes | The text to convert to speech |
locale | No | Language/locale for text normalization |
output_format | No | Audio format: mp3 (default), wav, or pcm |
Response Formats
Set the Accept header to specify the desired audio format:
audio/mpeg- MP3 format (default)audio/wav- WAV formataudio/pcm- Raw PCM format
Example
Select "StreamingTTSRequest" from the Examples dropdown to see the request format.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
400Bad Request - Invalid input data or parameters.
401Unauthorized - Invalid or missing authentication credentials.
403Forbidden - You do not have permission to perform this action.
404Not Found - The requested resource could not be found.
405Method Not Allowed - Invalid HTTP method
406Not Acceptable - Invalid request accept headers
415Unsupported Media Type - Invalid content type
500Internal Server Error - An unexpected error occurred.
