Handshake
A client emits the event to update the session
Available only on servers:
Accepts the following message:
{
"STT": {
"provider": {
"name": "openai",
"title": "OpenAI"
},
"model": "whisper-1",
"mediaFormat": "mp3",
"languageCode": "en-US",
"sentimentAnalysis": false,
"prompt": "string"
},
"LLM": {
"model": "gpt-4o",
"prompt": "You are useful MetaHuman assistant",
"temperature": 1,
"stop": [
"string"
],
"maxToken": 0,
"provider": {
"name": "aigames",
"title": "AI_Games"
},
"name": "string",
"stream": false
},
"TTS": {
"provider": {
"name": "openai",
"title": "OpenAI"
},
"model": "tts-1",
"responseType": {
"name": "single",
"title": "Single"
},
"languageCode": "en-US",
"voice": "string",
"speed": 4,
"ssmlGender": {
"name": "unspecified",
"title": "Unspecified"
},
"stream": false,
"isBase64": true,
"isOrdered": false
}
}
The server emits the event to the Sender when session is updated
Available only on servers:
Accepts the following message:
{
"sessionId": "32a5e96a-c35d-4e97-8ee0-a2166057feac",
"success": true
}
Sender sends audio chunks to the Server
Available only on servers:
Accepts the following message:
string
The Server sends to the Sender when a first audio chunk is received
Available only on servers:
Accepts the following message:
{
"sessionId": "32a5e96a-c35d-4e97-8ee0-a2166057feac"
}
The Sender signalize the process of streaming audio is completed
Available only on servers:
Accepts one of the following messages:
No payload
{
"name": "string",
"message": "string",
"data": {
"message": "string",
"statusCode": 0
}
}
{
"message": "string",
"errorId": 0
}
The Server sends the transcribed text to the Sender
Available only on servers:
Accepts the following message:
{
"text": "string",
"sentiment": "string",
"language": "string"
}
The Server sends the LLM response to the Receiver
Available only on servers:
Accepts the following message:
{
"text": "string"
}
The Server sends audio response to the Receiver
Available only on servers:
Accepts the following message:
{
"id": 0,
"text": "string",
"audio": "string",
"isBase64": true,
"done": true,
"streamPartDone": true,
"totalNumber": 0
}
No available models (used a default model)
No available models (used a default model)
No available models (used a default model)
No available models (used a default model)