Skip to content

Commit e784375

Browse files
committed
Trim anam avatar comment to match original style
1 parent b3fedff commit e784375

1 file changed

Lines changed: 11 additions & 14 deletions

File tree

src/main.ts

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,17 @@ 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+
6576
// Start the session, which initializes the voice pipeline and warms up the models
6677
await session.start({
6778
agent: new Agent(),
@@ -73,20 +84,6 @@ export default defineAgent<ProcessUserData>({
7384
},
7485
});
7586

76-
// // Add a virtual avatar to the session, if desired
77-
// // For other providers, see https://docs.livekit.io/agents/models/avatar/
78-
// // 1. Install '@livekit/agents-plugin-anam'
79-
// // 2. Set ANAM_API_KEY in .env.local
80-
// // 3. Add `import * as anam from '@livekit/agents-plugin-anam'` to the top of this file
81-
// // Note: Anam requires session.start() to run first so it can attach to the active audio stream
82-
// const avatar = new anam.AvatarSession({
83-
// personaConfig: {
84-
// name: '...', // Persona name
85-
// avatarId: '...', // See https://docs.livekit.io/agents/models/avatar/plugins/anam
86-
// },
87-
// });
88-
// await avatar.start(session, ctx.room);
89-
9087
// Join the room and connect to the user
9188
await ctx.connect();
9289

0 commit comments

Comments
 (0)