uezo/aiavatarkit
🥰 Building AI-based conversational avatars lightning fast ⚡️💬
What it solves
AIAvatarKit provides a framework for building low-latency, conversational AI avatars that can interact across multiple channels (web, mobile, phone, and hardware devices). It solves the complexity of orchestrating the pipeline between voice activity detection (VAD), speech-to-text (STT), large language models (LLMs), and text-to-speech (TTS) while maintaining a responsive, human-like conversation flow.
How it works
The project uses a modular STSPipeline (Speech-to-Speech) that streams data through four primary stages:
- VAD: Detects when a user is speaking and manages turn-taking using semantic gates (e.g., Namo Turn) to determine when a user has actually finished their thought.
- STT: Converts audio to text using providers like Azure, Google, or OpenAI.
- LLM/Agent: Processes the text and generates a response, supporting tool calls and MCP (Model Context Protocol) for external data access.
- TTS: Converts the response back to audio using services like VOICEVOX, ElevenLabs, or Azure.
Adapters wrap this pipeline to enable omnichannel deployment, allowing a single conversation to persist as a user moves between different interfaces (e.g., from a phone call to a LINE bot).
Who it’s for
Developers building interactive AI characters for web/mobile apps, virtual store staff for digital signage, companion hardware (Raspberry Pi), metaverse avatars (VRChat), or AI-powered phone operators.
Highlights
- Ultra-low latency: Achieves sub-1-second response times from the end of speech to the first audio output.
- Modular Architecture: All components (VAD, STT, LLM, TTS) are swappable, allowing developers to upgrade models or voices without rewriting the system.
- Omnichannel Support: A single pipeline can serve WebSockets, HTTP, telephony (Twilio/Asterisk), and messaging apps (LINE).
- Multimodal Expressiveness: Supports facial expressions, animations, and on-screen artifacts (like charts or maps) triggered by the LLM.
- Production Ready: Includes an Admin Panel for real-time configuration, logs, metrics, and guardrails that can interrupt the avatar mid-sentence to correct errors.
Related
- Project
- Project
- Project
- Project
- Project