{
"type": "stream",
"text": "Hello from Cognigy TTS bridge."
}{
"type": "flush"
}{
"type": "stop"
}{
"type": "keepalive"
}{
"type": "connect",
"data": {
"sample_rate": 16000,
"base64_encoding": true
}
}{
"type": "error",
"error": "provider_error",
"message": "TTS provider returned an error"
}Cognigy TTS
Stream synthesized speech from SLNG over the Cognigy Voice Gateway WebSocket protocol using any supported text-to-speech model and voice.
{
"type": "stream",
"text": "Hello from Cognigy TTS bridge."
}{
"type": "flush"
}{
"type": "stop"
}{
"type": "keepalive"
}{
"type": "connect",
"data": {
"sample_rate": 16000,
"base64_encoding": true
}
}{
"type": "error",
"error": "provider_error",
"message": "TTS provider returned an error"
}API key issued by SLNG. Pass as Authorization: Bearer <token> in the WebSocket upgrade request headers.
GET
Target region override. Auto-selected if not provided.
Target world part override. Auto-selected if not provided.
Target region override as a query parameter. Auto-selected if not provided. Equivalent to the X-Region-Override header; the header takes precedence when both are set.
ap-southeast-2, eu-north-1, us-east-1Target world part override as a query parameter. Auto-selected if not provided. Equivalent to the X-World-Part-Override header; the header takes precedence when both are set.
ap, eu, naSend text to synthesize into audio for Cognigy TTS.
Flush any buffered audio to the Cognigy client.
Stop synthesis and close the Cognigy TTS session.
Keep the WebSocket connection alive during silence.
Connection established with audio format information.
Error occurred during Cognigy TTS synthesis.
Was this page helpful?