Command Events
List of commands you can send to the avatar
With command events, developers send us events to direct avatar actions. Some events are only available depending on which mode you're in.
Full Mode Avatar Events
In Full Mode, we process events that are sent via the LiveKit Protocol. Simply send these events into the LiveKit room session and we will process all of them.
Below is the list of all events currently available and what they do.
Name | Event Data | Description |
|---|---|---|
| N/A | Interrupts and stops any scheduled commands. This will disrupt the entire sequence of calls passed in. |
|
| Instructs the avatar to say the spoken text |
|
| Instruct the avatar to generate an LLM response to the input text |
| N/A | Interrupts and stops any generated ongoing video generation. Equivalent to |
|
| Instructs the avatar to voice the input audio |
| N/A | Instructs the avatar to switch to a listening state. Most of the time, avatars sit in an idle state when they are not speaking. |
| N/A | Instructs the avatar to leave the listening state and return to the idle state. |
Custom Mode Events
In Custom Mode, you can send us events via websocket endpoint. As of now, we primarily support transitioning the Avatar between speaking and listening, as well as interrupting any existing events that are happening.
Name | Event Data | Description |
|---|---|---|
|
| Interrupts and stops any scheduled commands. |
|
| Adds to the avatar buffer for what it will say. The event_id can be set to indicate grouping between sets of interactions. Audio should be PCM 16Bit 24KHz bytes encoded as Base64 Note - we recommend sending many small byte packets. We may close the connection if we detect too large of an audio string input (> 1MB). |
|
| Signal the end of a speaking event. |
|
| Transition the avatar to a listening state. |
|
| Transition the avatar from a listening state to an idle state. |
We intend on adding additional events depending on what our users request. Leave feedback if there are any additional commands you'd like to control.
Updated 10 days ago