Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions src/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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()

Expand Down
Loading