Apis
Text-to-Speech
Stream Text-to-Speech Audio
Generate speech from text and stream audio bytes back as they’re produced for low-latency playback.
post/tts-stream
Request
- Base URLhttps://client.camb.ai/apis
- URLhttps://client.camb.ai/apis/tts-stream
- AuthAPI key in header x-api-key
Request body
Example request
{
"text": "[laughter] He plays the [B EY1 S] guitar while catching a [B AE1 S] fish.",
"language": "en-us",
"voice_id": 147320,
"enhance_named_entities_pronunciation": true,
"output_configuration": {
"format": "mp3",
"sample_rate": 48000,
"apply_enhancement": true
},
"voice_settings": {
"speaking_rate": 1.5
}
}Response
Streaming audio response
Changes
No recorded changes to this operation across all 1 revision of this API.