From a3b4308b9bb20bde8ab4aea90051e0525bdb2e6f Mon Sep 17 00:00:00 2001 From: Ben Cherry Date: Wed, 29 Apr 2026 21:15:40 -0700 Subject: [PATCH 1/3] Update avatar provider example from hedra to anam --- src/agent.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/agent.py b/src/agent.py index c4fcfac..a40c8c3 100644 --- a/src/agent.py +++ b/src/agent.py @@ -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,20 @@ 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/ + # # 1. Install livekit-plugins-anam + # # 2. Set ANAM_API_KEY in .env.local + # # 3. Add `from livekit.plugins import anam` to the top of this file + # # Note: Anam requires session.start() to run first so it can attach to the active audio stream + # avatar = anam.AvatarSession( + # persona_config=anam.PersonaConfig( + # name="...", # Persona name + # avatarId="...", # See https://docs.livekit.io/agents/models/avatar/plugins/anam + # ), + # ) + # await avatar.start(session, room=ctx.room) + # Join the room and connect to the user await ctx.connect() From d1dec3615f0a773cfbe2d1bfee993ba4f668d036 Mon Sep 17 00:00:00 2001 From: Ben Cherry Date: Wed, 29 Apr 2026 21:38:53 -0700 Subject: [PATCH 2/3] Trim anam avatar comment to match original style --- src/agent.py | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/src/agent.py b/src/agent.py index a40c8c3..43c7d52 100644 --- a/src/agent.py +++ b/src/agent.py @@ -98,6 +98,17 @@ 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 = 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 (after session.start) + # 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(), @@ -111,20 +122,6 @@ 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/ - # # 1. Install livekit-plugins-anam - # # 2. Set ANAM_API_KEY in .env.local - # # 3. Add `from livekit.plugins import anam` to the top of this file - # # Note: Anam requires session.start() to run first so it can attach to the active audio stream - # avatar = anam.AvatarSession( - # persona_config=anam.PersonaConfig( - # name="...", # Persona name - # avatarId="...", # See https://docs.livekit.io/agents/models/avatar/plugins/anam - # ), - # ) - # await avatar.start(session, room=ctx.room) - # Join the room and connect to the user await ctx.connect() From 22055a15c2488726245d5196b66e2769a01967a2 Mon Sep 17 00:00:00 2001 From: Ben Cherry Date: Wed, 29 Apr 2026 22:02:30 -0700 Subject: [PATCH 3/3] Move anam avatar comment to after session.start --- src/agent.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/agent.py b/src/agent.py index 43c7d52..b434fae 100644 --- a/src/agent.py +++ b/src/agent.py @@ -98,17 +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 = 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 (after session.start) - # 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(), @@ -122,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()