An interactive Live2D avatar project that enables voice conversations. Using OpenAI's voice recognition and generation capabilities, users can engage in conversations with characters.
Brief Project Demo:
Demo_Guide.mp4
- Multiple Character Support: Interact with various characters like Kei and Haru
- Low-Latency Voice Chat: Live voice input through browser microphone
- Lip Sync: Character mouth movements synchronized with voice
- Clone the repository
git clone https://github.com/yourusername/Vercel_CharacterChat.git
cd Vercel_CharacterChat- Create and activate Python virtual environment
python -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows- Install required packages
pip install -r requirements.txt- Get your API key from OpenAI website
- Click "Set OpenAI API Key" button in the web interface
- Enter your API key
- Select a character to chat with from the main page
- Set up OpenAI API key if not already configured
- Allow microphone access when prompted
- Click "Talk" button to start speaking
- Click the button again to stop recording
- Listen to the character's voice response
.
├── api/ # Backend API components
├── front/ # Frontend files
│ ├── css/ # Stylesheets
│ ├── js/ # Frontend functionality
│ ├── index.html # Main page
│ ├── haru.html # Haru character page
│ ├── kei.html # Kei character page
├── model/ # Live2D model assets
│ ├── haru/ # Haru model files
│ ├── kei/ # Kei model files
├── audio_util.py # Audio processing utilities
├── requirements.txt # Python dependencies
├── vercel.json # Vercel deployment config
- Verify API key format (should start with sk-)
- Check if API key has sufficient credits
- Try re-entering the API key