@@ -98,14 +98,6 @@ async def my_agent(ctx: JobContext):
9898 # llm=openai.realtime.RealtimeModel(voice="marin")
9999 # )
100100
101- # # Add a virtual avatar to the session, if desired
102- # # For other providers, see https://docs.livekit.io/agents/models/avatar/
103- # avatar = hedra.AvatarSession(
104- # avatar_id="...", # See https://docs.livekit.io/agents/models/avatar/plugins/hedra
105- # )
106- # # Start the avatar and wait for it to join
107- # await avatar.start(session, room=ctx.room)
108-
109101 # Start the session, which initializes the voice pipeline and warms up the models
110102 await session .start (
111103 agent = Assistant (),
@@ -119,6 +111,20 @@ async def my_agent(ctx: JobContext):
119111 ),
120112 )
121113
114+ # # Add a virtual avatar to the session, if desired
115+ # # For other providers, see https://docs.livekit.io/agents/models/avatar/
116+ # # 1. Install livekit-plugins-anam
117+ # # 2. Set ANAM_API_KEY in .env.local
118+ # # 3. Add `from livekit.plugins import anam` to the top of this file
119+ # # Note: Anam requires session.start() to run first so it can attach to the active audio stream
120+ # avatar = anam.AvatarSession(
121+ # persona_config=anam.PersonaConfig(
122+ # name="...", # Persona name
123+ # avatarId="...", # See https://docs.livekit.io/agents/models/avatar/plugins/anam
124+ # ),
125+ # )
126+ # await avatar.start(session, room=ctx.room)
127+
122128 # Join the room and connect to the user
123129 await ctx .connect ()
124130
0 commit comments