Capability: Events
The events capability means the local WebSocket can push event notifications to integration clients.
Event envelope
Events are sent with a generic envelope:
{
"type": "event",
"payload": {
"name": "ttsAmplitude",
"data": {}
}
}Fields:
payload.name: event name stringpayload.data: event-specific payload
Event: ttsAmplitude
Emitted while TTS is active to help drive lipsync or visualizers.
{
"type": "event",
"payload": {
"name": "ttsAmplitude",
"data": {
"soundAmplitudeValue": 0.3,
"animationId": "abc123"
}
}
}Payload fields:
soundAmplitudeValue: number in the range0..1animationId: optional identifier for the current animation (string or number)
Notes:
- The event is only delivered to clients that completed the
hellohandshake withclientType: "integration". - Expect frequent updates while speech is active; debounce or smooth on your side if needed.