Update avatar provider from Hedra to Anam in agent example (#72)

* Update avatar provider example from hedra to anam

* Trim anam avatar comment to match original style

* Move anam avatar comment to after session.start
This commit is contained in:
Ben Cherry
2026-05-01 09:50:21 -07:00
committed by GitHub
parent c988952daf
commit df30553404
+11 -8
View File
@@ -98,14 +98,6 @@ async def my_agent(ctx: JobContext):
# llm=openai.realtime.RealtimeModel(voice="marin")
# )
# # Add a virtual avatar to the session, if desired
# # For other providers, see https://docs.livekit.io/agents/models/avatar/
# avatar = hedra.AvatarSession(
# avatar_id="...", # See https://docs.livekit.io/agents/models/avatar/plugins/hedra
# )
# # Start the avatar and wait for it to join
# await avatar.start(session, room=ctx.room)
# Start the session, which initializes the voice pipeline and warms up the models
await session.start(
agent=Assistant(),
@@ -119,6 +111,17 @@ async def my_agent(ctx: JobContext):
),
)
# # Add a virtual avatar to the session, if desired
# # For other providers, see https://docs.livekit.io/agents/models/avatar/
# avatar = anam.AvatarSession(
# persona_config=anam.PersonaConfig(
# name="...",
# avatarId="...", # See https://docs.livekit.io/agents/models/avatar/plugins/anam
# ),
# )
# # Start the avatar and wait for it to join
# await avatar.start(session, room=ctx.room)
# Join the room and connect to the user
await ctx.connect()