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:
+11
-8
@@ -98,14 +98,6 @@ async def my_agent(ctx: JobContext):
|
|||||||
# llm=openai.realtime.RealtimeModel(voice="marin")
|
# 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
|
# Start the session, which initializes the voice pipeline and warms up the models
|
||||||
await session.start(
|
await session.start(
|
||||||
agent=Assistant(),
|
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
|
# Join the room and connect to the user
|
||||||
await ctx.connect()
|
await ctx.connect()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user