how we can do liveavatar integration
# ask-ai
s
how we can do liveavatar integration
t
Thanks for reaching out, Navin. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I can help with LiveAvatar integration. To make my guidance as useful as possible, a couple quick clarifying questions first: • Do you want to integrate LiveAvatar with a LiveKit Agents setup (server-side avatar that joins a LiveKit room), or are you trying to render a LiveAvatar video track in a frontend client only? • Which language/runtime are you using for your agent server: Python, Node, or something else? • Do you already have a LiveAvatar account and an avatar ID/API key ready? If you want a short, actionable path right away, here’s the typical flow to integrate LiveAvatar with LiveKit Agents (high level): 1. Install the LiveKit Agents plugin with LiveAvatar support: ◦ Use
uv add "livekit-agents[liveavatar]~=1.4"
1. Provide LiveAvatar credentials: ◦ Obtain a LiveAvatar API key and set it in your environment, e.g.
LIVEAVATAR_API_KEY=your_api_key_here
. 1. Configure the avatar: ◦ Choose or create an avatar in the LiveAvatar dashboard and copy its avatar ID. ◦ Pass that
avatar_id
to the LiveAvatar plugin or set
LIVEAVATAR_AVATAR_ID
in env. 1. Start the avatar from your agent code: ◦ Create an
AgentSession
and an
AvatarSession
(from the LiveAvatar plugin). ◦ Call
await avatar.start(session, room=ctx.room)
so the avatar joins the LiveKit room and receives the agent’s audio/video output. 1. Render on the frontend: ◦ The avatar publishes a video track to the LiveKit room. Any LiveKit client SDK can subscribe and render that video track (React/JS example uses the track reference returned by your voice assistant helper). 1. Test & preview: ◦ Use the Agents Playground or a frontend starter app to validate the avatar joins the room and renders correctly. If you confirm which of the three options above fits your use case (Agents server integration vs frontend-only vs language/runtime), I’ll provide the exact code example and specific steps for your environment and help you troubleshoot any errors. Sources: LiveAvatar virtual avatar integration guide | LiveKit Documentation | Bringing AI avatars to voice agents