Web Only: RTC Mode is currently available for Web applications only.
Installation
- pnpm
- npm
- yarn
Authentication
Quick Start
For a complete client + server implementation, see AvatarKit Voice Agent Demo.1
Initialize SDK in Host Mode
2
Load Avatar & Create View
3
Create Player with LiveKit Provider
4
Connect to LiveKit Server
5
Start Voice Interaction
AvatarPlayer API
Constructor
AvatarPlayerOptions
Connection
LiveKitConnectionConfig
Microphone Control
Custom Audio Publishing
For non-microphone audio sources like audio elements or Web Audio API.unpublishAudio() does not stop the track. You are responsible for calling track.stop() to release the resource.Native Client Access
Access the underlying LiveKitRoom instance for advanced features.
ConnectionState
Events
When a
stalled event fires, the avatar automatically transitions to idle animation. Consider calling player.reconnect() to recover.
