Messages
{
"type": "init",
"voice": "Ashley",
"modelId": "inworld-tts-1.5-max",
"language": "en-US",
"encoding": "MP3",
"sample_rate": 24000
}{
"type": "text",
"text": "Hello, this is a test of text-to-speech synthesis."
}{
"type": "flush"
}{
"type": "close"
}{
"type": "audio_chunk",
"data": "UklGRiQAAABXQVZFZm10IBAAAAABAAEA...",
"sequence": 1
}{
"type": "audio_end",
"duration": 3.5
}{
"type": "error",
"code": "provider_error",
"message": "Provider returned an unexpected error"
}Inworld Max 1.5
Inworld Max 1.5
Stream multilingual speech synthesis from SLNG-hosted Inworld Max 1.5 over WebSocket using SLNG’s unified low-latency TTS protocol.
WSS
/
v1
/
tts
/
slng
/
inworld
/
max:1.5
Messages
{
"type": "init",
"voice": "Ashley",
"modelId": "inworld-tts-1.5-max",
"language": "en-US",
"encoding": "MP3",
"sample_rate": 24000
}{
"type": "text",
"text": "Hello, this is a test of text-to-speech synthesis."
}{
"type": "flush"
}{
"type": "close"
}{
"type": "audio_chunk",
"data": "UklGRiQAAABXQVZFZm10IBAAAAABAAEA...",
"sequence": 1
}{
"type": "audio_end",
"duration": 3.5
}{
"type": "error",
"code": "provider_error",
"message": "Provider returned an unexpected error"
}bearer
type:http
API key issued by SLNG. Pass as Authorization: Bearer <token> in the WebSocket upgrade request headers.
method
type:string
GET
headers
type:object
X-Region-Override
type:enum
Target region override. Auto-selected if not provided. Available regions: us-east-1.
Available options:
us-east-1Init Request (Inworld Max 1.5)
type:object
Initialize an SLNG-hosted Inworld Max 1.5 session.
Text Message
type:object
Send text to synthesize into audio output.
Flush Message
type:object
Force any buffered text/audio to be finalized and delivered.
Close Message
type:object
Close the session and stop any further audio.
Audio Chunk
type:object
Chunk of base64-encoded audio data.
Audio End
type:object
Signals the end of audio generation.
Error Response
type:object
Indicates an error occurred during synthesis.
Was this page helpful?
⌘I