{
"type": "<string>",
"sdp": "<string>"
}{}{}{
"type": "<string>",
"sdp": "<string>"
}{}{}{}Peer_to_peer
Peer to Peer WebRTC
Compose Session Token is sent as query parameter string
enableSFU is a query parameter boolean to opt into sending the traffic through cloudflare network for improved reliability
First message must be offer. Offer must be provided within 30 seconds of opening the websocket. Once offer is sent, a corresponding answer will be sent from the server which can be used as described here
{
"type": "<string>",
"sdp": "<string>"
}{}{}{
"type": "<string>",
"sdp": "<string>"
}{}{}{}RTC Answer as generated by https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createAnswer or compatible. Will be received AFTER an offer has been sent
Server sent signals
Termination messages that specify the reason for immediate termination
RTC Offer as generated by https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer or compatible
Binary stream of the audio that the Avatar will lipsync to. Sent as a binary stream (in JS/TS UInt8Arr)
Client Signal to make the avatar stop speaking immediately and ignore all previously sent audio
Client Signal to tell the server that the final segment of audio has been already sent and that it should close after playing it back