Skip to main content
WSS
wss://api.inworld.ai
/
tts
/
v1
/
voice:streamBidirectional
Messages
Authorization
type:httpApiKey

Your authentication credentials. For Basic authentication, please populate Basic $INWORLD_RUNTIME_BASE64_CREDENTIAL

Create Context
type:object

Create a new context with specified voice and configuration. Note: for each connection, 5 contexts is the max.

Send Text
type:object

Send text to be synthesized for a specific context

Flush Context
type:object

Flush a context and start synthesis of all accumulated text

Update Context Configuration
type:object

Update the configuration of an existing context. Note: sending an update message forces the synthesis of all accumulated text in the context's buffer with the previous configurations.

Close Context
type:object

Close an existing context

Context Created
type:object

Event sent when a new TTS context has been successfully created

Audio Chunk
type:object

Audio data chunk containing synthesized speech

Context Closed
type:object

Event sent when a context has been closed

Context Updated
type:object

Event sent when a context configuration has been successfully updated