
The General Digital Human System is an intelligent interaction platform built on cutting-edge AI technologies, integrating speech recognition, speech synthesis, natural language processing, and digital avatar rendering. The system supports real-time voice dialogue, knowledge Q&A, and emotional synchronization, making it suitable for various scenarios such as intelligent customer service, education training, and digital exhibitions.
Due to the use of Microsoft's real-time speech synthesis and virtual image services in this project, the required cost is relatively high. Please be cautious when using them.
1080P HD output support
Intelligent Dialogue
Emotion analysis and sync
System Stability
Facial expression and voice emotion sync
🗣️ Intelligent Voice Interaction
Emotional voice synthesis
📚 Knowledge Base Q&A
Real-time knowledge base updates
🤖 Intelligent Dialogue
+------------------+ +------------------+ +------------------+
| | | | | |
| Web Frontend | | FastAPI Backend | | Azure Services |
| (HTML/JS/CSS) |<--->| (Python) |<--->| (Speech/Avatar) |
| | | | | |
+------------------+ +------------------+ +------------------+
^ ^ ^
| | |
v v v
+------------------+ +------------------+ +------------------+
| | | | | |
| WebRTC | | Vector Database | | OpenAI/Cohere |
| (A/V Transfer) | | (ChromaDB) | | (AI Models) |
| | | | | |
+------------------+ +------------------+ +------------------+
git clone [repository_url]
cd general_digital_human_system
pip install -r requirements.txt
# Ensure Docker service is running
# Check and remove existing containers (if needed)
docker rm -f redis-server turnserver_c
# Create Docker network
docker network create digital-human-network
# Start Redis server (with password)
docker run -d --name redis-server \
-p 6379:6379 \
redis:latest \
--requirepass your_redis_password
# Start Turnserver (for WebRTC)
docker run -d \
-p 3478:3478 \
-p 3478:3478/udp \
--name turnserver_c \
coturn/coturn
cp .env.example .env
# Edit .env file with required configurations:
# Network proxy (if needed)
HTTP_PROXY=http://127.0.0.1:7890
HTTPS_PROXY=http://127.0.0.1:7890
# Azure service configuration
SUBSCRIPTION_KEY=your_azure_subscription_key
COGNITIVE_SERVICE_REGION=your_region
# OpenAI configuration
OPENAI_API_KEY=your_openai_api_key
# Cohere configuration
COHERE_API_KEY=your_cohere_api_key
# Redis configuration
REDIS_URL=redis://:your_redis_password@localhost:6379
# Search functionality
SERPAPI_API_KEY=your_serpapi_key
python main.py
Open browser and visit http://localhost:8000
Select knowledge base from dropdown menu
Voice Interaction
Select different voice options
Avatar Switching
3D scene interaction
Personalization
Knowledge base deep training
Scenario Expansion
Intelligent education
Technical Upgrades
# View all container status
docker ps -a
# View container logs
docker logs redis-server
docker logs turnserver_c
# Restart containers
docker restart redis-server
docker restart turnserver_c
# Stop and remove all containers
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
# Clean unused images and containers
docker system prune -a
docker ps | grep redis-serverdocker exec -it redis-server redis-cli -a your_redis_password pingView Redis logs: docker logs redis-server
Turnserver Connection Issues
netstat -an | findstr "3478"docker logs turnserver_cEnsure firewall allows UDP/3478 port
Container Network Issues
docker network lsdocker network inspect digital-human-networkbash
docker network rm digital-human-network
docker network create digital-human-networkThis project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Welcome to submit Issues and Pull Requests. Before submitting a PR, please ensure:
Thanks to the following open-source projects:
$ claude mcp add general_digital_human_system \
-- python -m otcore.mcp_server <graph>