Skip to main content
POST
Stream TTS Audio with Final URL

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Request model for TTS generation.

text
string
required

Text to convert to speech

Required string length: 1 - 10000
Example:

"Hello, this is a text-to-speech test."

speaker_id
enum<integer>
default:248

Speaker voice for TTS generation

Available options:
241,
242,
243,
245,
246,
248
Examples:

248

246

response_mode
enum<string>
default:url

How to return the audio: 'url' for signed URL, 'stream' for streaming, 'both' for streaming with final URL

Available options:
url,
stream,
both

Response

Successful Response