future-stone-69754
08/08/2025, 9:34 AMtall-airline-16756
08/08/2025, 9:34 AMfuture-stone-69754
08/08/2025, 9:37 AMtall-airline-16756
08/08/2025, 9:38 AMAvatarSession
, have you provided either an avatar_id
or an avatar_image
? If you’re using an image, is it a square one (512x512px) with a humanoid face?
• Do you see any specific error messages or warnings in the logs besides the connection success message?
Once we have these details, it’ll be much easier to figure out what’s going on. Thanks for checking!future-stone-69754
08/08/2025, 9:49 AMtall-airline-16756
08/08/2025, 9:49 AMavatar_id
or try swapping in a different image to see if that helps.
• Network Connectivity: Take a quick look for any firewall blocks or DNS hiccups that might be stopping Hedra’s API from connecting. Also, confirm that your LiveKit server has proper outbound internet access.
• LiveKit Configuration: Check that LIVEKIT_URL
, LIVEKIT_API_KEY
, and LIVEKIT_API_SECRET
are set up correctly. And make sure your LiveKit instance is up and running smoothly.
• Participant Identity: Make sure the avatar_participant_identity
you’re using is unique and not already taken.
If you’re still running into trouble, try turning on debug logging in the Hedra plugin and peek at the LiveKit room logs for any errors. You could also test with a simple static image and minimal setup to narrow down what’s going on.
Feel free to reach out if you want me to walk you through any of these steps or if you need more help—I’m here for you!future-stone-69754
08/08/2025, 9:50 AMtall-airline-16756
08/08/2025, 9:51 AMavatar_participant_identity
is a handy little parameter in Hedra's AvatarSession
that gives your avatar a unique ID within a LiveKit session. This ID is what helps create an access token, so your avatar can join the room and be recognized as its own participant.
By default, it’s set to hedra-avatar-agent
, but feel free to change it to something that fits your needs better—like education-avatar
or any other name that makes sense for you. This way, it’s easier to keep track of and manage multiple avatars in LiveKit.
If you want me to walk you through it or have any questions, just let me know—I’m here to help!
Sources: livekit-plugins/livekit-plugins-bey/livekit/plugins/bey/avatar.py | avatars/hedra/pipeline_avatar/agent.py | Hedra virtual avatar integration guide | LiveKit Docsfuture-stone-69754
08/08/2025, 10:14 AMtall-airline-16756
08/08/2025, 10:15 AMavatar_participant_identity
and avatar_participant_name
in Hedra's AvatarSession
have different roles:
• `avatar_participant_identity`: Think of this as a unique ID that LiveKit uses behind the scenes to keep track of the participant's session. It’s usually hidden from users and comes into play when creating the LiveKit access token. By default, it’s set to hedra-avatar-agent
.
• `avatar_participant_name`: This is the friendly name you and others will see in the participant list. You can customize it to whatever makes sense for your use case. By default, it’s also hedra-avatar-agent
.
So, to sum it up: the identity
is more for internal tracking, while the name
is what everyone sees. You can set both separately to make sure your avatar’s ID and display name fit your needs.
If you want me to walk you through it with examples or have any other questions, just let me know—I’m here to help!
Sources: Hedra virtual avatar integration guide | LiveKit Docsfuture-stone-69754
08/08/2025, 10:16 AMtall-airline-16756
08/08/2025, 10:17 AMAvatarSession
looks spot on! Here’s a quick rundown of the important parts:
• `avatar_image`: You’re doing great by loading the image with `Image.open`—this is exactly what’s needed to generate the avatar if you’re not using avatar_id
.
• `avatar_participant_identity`: Setting this to "agent-hedra-avatar"
is perfect for giving the avatar participant a unique ID in the LiveKit session.
• `avatar_participant_name`: Using "hedra-avatar-agent"
here gives a nice, friendly name for the avatar—nice touch!
• `api_key`: Passing the API key through self.config.hedra_api_key
is just right to make sure everything authenticates smoothly with Hedra’s API.
Everything you’ve set up matches the official guidelines for starting a Hedra avatar session. If you hit any snags or want to chat more about it, just let me know—I’m here to help!
Sources: livekit-plugins/livekit-plugins-simli/livekit/plugins/simli/avatar.py