Skip to content

Commit b8cc24b

Browse files
authored
Add commented example for virtual avatar integration (#44)
* Add anam virtual avatar example comment * Trim anam avatar comment to match original style * Move anam avatar comment to after session.start
1 parent 82f9f7e commit b8cc24b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/main.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,17 @@ export default defineAgent<ProcessUserData>({
7373
},
7474
});
7575

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+
7687
// Join the room and connect to the user
7788
await ctx.connect();
7889

0 commit comments

Comments
 (0)