![](https://private-user-images.githubusercontent.com/16024979/339854856-ba6173db-2d12-4c04-a269-19d3c3e5d0a7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjMzNTIsIm5iZiI6MTczOTM2MzA1MiwicGF0aCI6Ii8xNjAyNDk3OS8zMzk4NTQ4NTYtYmE2MTczZGItMmQxMi00YzA0LWEyNjktMTlkM2MzZTVkMGE3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDEyMjQxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEwYzFlYzM5MGMwMWE3Y2FlYjMwYjVhODI0NDFmZGRlMjc0NThjYjBlNDdkMWZlYjRlZWNhOWY2OTNmYmM3NjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.iL-q6IKw4t1_wAP7pSsnmRkWq6-uDH4fSpYKhm2-HVk)
This project showcases the implementation of HeyGen's Interactive Streaming Avatar service in a Next.js application. It serves as both a demonstration and a starting point for building advanced avatar-based interactive applications.
preview.mp4
- Background Removal: Real-time green screen background removal
- Screenshot Capture: Instant frame capture functionality
- Video Recording: Stream recording with download capability
- Custom Background: Support for custom image/video backgrounds
- Multiple LLM Support: Integration with various AI models
- Speech-to-Text: Real-time speech transcription
- Interactive Chatbox: Enhanced communication interface
- Conversation History: Persistent chat storage and retrieval
- Frontend: Next.js 15, React 18, TS
- Styling: shadcn/ui, Tailwind CSS
- State Management: Jotai
- AI Integration: Vercel AI SDK (@ai-sdk/*)
- Avatar Service: HeyGen Interactive/Streaming Avatar
- Package Manager: Bun
- Clone the repository:
git clone https://github.com/yourusername/interactive-avatar-playground.git
cd interactive-avatar-playground
- Install dependencies:
bun install
- Start the development server:
bun dev
- Open http://localhost:3000 in your browser
The project uses environment variables for configuration. Copy .env.example
to .env
and update the values:
# Required API keys and configurations
HEYGEN_API_KEY=your_api_key_here
Deploy easily on Vercel, the platform from Next.js creators.
This project is MIT licensed.
Built with using Next.js and HeyGen