Can i use Virtual Avatars with the livekit Agent J...
# ask-ai
f
Can i use Virtual Avatars with the livekit Agent JS SDK ?
t
Thanks for reaching out, Carlos. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely, you can use Virtual Avatars with the LiveKit Agent JS SDK! The level of support really depends on which avatar provider you're working with. Right now, the JS SDK has built-in support for Anam avatars through the
@livekit/agents/plugins/anam
module. This makes it pretty straightforward to connect your agent's audio output to the avatar service, which then creates and publishes synchronized audio and video tracks right into your LiveKit room. If you're thinking about using a different avatar provider, please feel free to share which one! Some other providers might need a bit of custom setup or a proxy service, and I’m here to help you figure that out. Would you like me to walk you through setting up Anam avatars, or assist with integrating a different provider? Sources: Virtual avatar plugins | LiveKit Docs | plugins/anam/src/avatar.ts | Tavus virtual avatar integration guide | LiveKit Docs | Simli virtual avatar integration guide | LiveKit Docs | bitHuman virtual avatar integration guide | LiveKit Docs
f
With BitHuman
t
Thanks so much for reaching out! I wanted to share that BitHuman virtual avatars are currently supported only for Python agents, and not directly through the LiveKit Agent JS SDK. But don’t worry—you can still use a JavaScript frontend to display and interact with BitHuman avatars created by a Python agent. Here’s a friendly suggestion for the setup: 1. Create a Python agent with the BitHuman plugin. 2. Use a JavaScript frontend (like React) to show the avatar video stream and manage interactions. LiveKit offers some great JavaScript starter apps that already support virtual avatar integration, such as the React Agent Starter. These apps make it easy by automatically rendering the avatar video stream from the agent. If you’d like, I’m here to help you get started with setting up a Python BitHuman agent or customizing the JavaScript frontend to fit your needs. Just let me know! Sources: bitHuman virtual avatar integration guide | LiveKit Docs | Web and mobile frontends | LiveKit Docs | TEMPLATE.md