Messaging Protocol
1 min
jsonrpc is used as a messaging protocol for the socket messages.
To get more information on this messaging protocol, go to https://www.jsonrpc.org/specification
Chatting with the assistant (text in, text out)
{
"jsonrpc": "2.0",
"id": "123",
"method": "chat",
"params": {
"mediaType": "text/plain",
"data": "How are you?"
}
}Chatting with the assistant (voice in, text out)
{
"jsonrpc": "2.0",
"id": "123",
"method": "chat",
"params": {
"mediaType": "audio/pcm",
"data": "base64_encoded_audio"
}
}