Creates a new AvatarSession.
Configuration options for the avatar session
HedraException if neither avatarId nor avatarImage is provided, or if HEDRA_API_KEY is not set
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)
HedraException if LiveKit credentials are not available or if the avatar session fails to start
A Hedra avatar session.
This class manages the connection between a LiveKit agent and a Hedra avatar, routing agent audio output to the avatar for visual representation.
Example