Stream TTS Audio

Stream text-to-speech audio in real-time as binary data.

Request Parameters

ParameterRequiredDescription
textYesThe text to convert to speech
localeNoLanguage/locale for text normalization
output_formatNoAudio 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 format
  • audio/pcm - Raw PCM format

Example

Select "StreamingTTSRequest" from the Examples dropdown to see the request format.

Language
Response
Click Try It! to start a request and see the response here!