This is a Next JS + Vercel AI (LLM) + Avatech SDK (Avatar) + Eleven Labs (Voice) avatar demo.
pnpm i
pnpm dev
Head to https://labs.avatech.ai
Sign in and generate avatars and edit the avatar id in Chat.tsx
const {
avatarDisplay,
handleFirstInteractionAudio,
availableEmotions,
audioStatus,
} = useAvatar({
...
avatarId: 'YOU_AVATAR_ID',
...
});
Currently supporting elevenlabs directly. To change the voice id, head to Chat.tsx
const elevenLabs = new ElevenLabsVoiceService(
process.env.NEXT_PUBLIC_ELEVEN_LABS_API_KEY!,
'eleven_monolingual_v1',
'YOUR_NEW_VOICE_ID',
);
Documentation https://docs.avatech.ai