An open-source solution for real-time 3D avatars powered by your own LLM.
Project details
This project offers an open-source alternative to commercial real-time avatar APIs like HeyGen and Tavus. It enables the creation of a lip-synced 3D avatar that operates directly on the user's GPU, eliminating per-minute fees and the need for video streaming. Easily integrate it into React apps for immersive conversational experiences.
An Open-Source Alternative to Real-Time Avatar APIs
react-ai-voice-avatar is an innovative solution that delivers a cutting-edge, talking 3D avatar experience directly in the browser. Unlike proprietary services like HeyGen Interactive Avatar and Tavus, this open-source project operates entirely on the user's GPU, eliminating the need for video streaming, per-minute charges, and external integrations.
Integration into your app is straightforward. The library provides two entry points:
AiVoiceAvatar component, enabling a rich, interactive user interface.useAiVoiceAvatar from react-ai-voice-avatar/headless. This version is lightweight and focuses solely on audio functionality.import { useAiVoiceAvatar } from 'react-ai-voice-avatar/headless';
function VoiceMode() {
const voice = useAiVoiceAvatar({
onSubmit: text => fetch('/api/chat', { method: 'POST', body: text }).then(r => r.body),
});
// Additional configurations here
}
Designed for high performance, the avatar operates efficiently, managing substantial model files while engaging users quickly. With lazy loading capabilities and architectural best practices, it optimizes resource usage, making it ideal for applications requiring fast load times.
This package is built with TypeScript and plays nicely with modern React environments, ensuring developers can easily adopt it in existing projects.
Experience the potential of this technology by visiting the live demo, which showcases both the 3D avatar and the headless mode in action: Live Demo - Engage in conversations, observe lip-syncing, and interact seamlessly.
For comprehensive guidance, access the detailed README within the repository to explore advanced configurations and integration options.
Comments
0Start the conversation
Share the first comment.