Creates a new AvatarSession.
Configuration options for the avatar session
LemonSliceException if invalid agentId or agentImageUrl is provided, or if LemonSlice API key is not set
The LemonSlice session ID, set after start completes.
Send this avatar into an external video meeting.
Supports Zoom, Google Meet, Microsoft Teams, and Webex. Call after start() and before AgentSession.start().
Optional botOptional listenReturn room I/O options for AgentSession.start().
When joinMeeting() has been called, disables LiveKit room audio input and output. Meeting audio is fed directly into STT instead.
Starts the avatar session and connects it to the agent.
This method:
The agent session to connect to the avatar
The LiveKit room where the avatar will join
Optional LiveKit credentials (falls back to environment variables)
The session ID of the LemonSlice session
LemonSliceException if LiveKit credentials are not available or if the avatar session fails to start
A LemonSlice avatar session.
This class manages the connection between a LiveKit agent and a LemonSlice avatar, routing agent audio output to the avatar for visual representation.
Example