Skip to content

Commit f7e098c

Browse files
committed
Move anam avatar comment to after session.start
1 parent e784375 commit f7e098c

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

src/main.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,6 @@ export default defineAgent<ProcessUserData>({
6262
// llm: new openai.realtime.RealtimeModel({ voice: 'marin' }),
6363
// });
6464

65-
// // Add a virtual avatar to the session, if desired
66-
// // For other providers, see https://docs.livekit.io/agents/models/avatar/
67-
// const avatar = new anam.AvatarSession({
68-
// personaConfig: {
69-
// name: '...',
70-
// avatarId: '...', // See https://docs.livekit.io/agents/models/avatar/plugins/anam
71-
// },
72-
// });
73-
// // Start the avatar and wait for it to join (after session.start)
74-
// await avatar.start(session, ctx.room);
75-
7665
// Start the session, which initializes the voice pipeline and warms up the models
7766
await session.start({
7867
agent: new Agent(),
@@ -84,6 +73,17 @@ export default defineAgent<ProcessUserData>({
8473
},
8574
});
8675

76+
// // Add a virtual avatar to the session, if desired
77+
// // For other providers, see https://docs.livekit.io/agents/models/avatar/
78+
// const avatar = new anam.AvatarSession({
79+
// personaConfig: {
80+
// name: '...',
81+
// avatarId: '...', // See https://docs.livekit.io/agents/models/avatar/plugins/anam
82+
// },
83+
// });
84+
// // Start the avatar and wait for it to join
85+
// await avatar.start(session, ctx.room);
86+
8787
// Join the room and connect to the user
8888
await ctx.connect();
8989

0 commit comments

Comments
 (0)