- What's HeyGem
- Introduction
- How to Run Locally
- Open APIs
- What's New
- FAQ
- How to Interact in real time
- Contact
- License
- Acknowledgments
- Star History
HeyGem is a free and open-source AI avatar project developed by Duix.com.
Seven years ago, a group of young pioneers chose an unconventional technical path, developing a method to train digital human models using real-person video data. Unlike traditional costly 3D digital human approaches, we leveraged AI-generated technology to create ultra-realistic digital humans, slashing production costs from hundreds of thousands of dollars to just $1,000. This innovation has empowered over 10,000 enterprises and generated over 500,000 personalized avatars for professionals across fields – educators, content creators, legal experts, medical practitioners, and entrepreneurs – dramatically enhancing their video production efficiency. However, our vision extends beyond commercial applications. We believe this transformative technology should be accessible to everyone. To democratize digital human creation, we've open-sourced our cloning technology and video production framework. Our commitment remains: breaking down technological barriers to make cutting-edge tools available to all. Now, anyone with a computer can freely craft their own AI Avatar and produce videos at zero cost – this is the essence of HeyGem.
Heygem is a fully offline video synthesis tool designed for Windows systems that can precisely clone your appearance and voice, digitalizing your image. You can create videos by driving virtual avatars through text and voice. No internet connection is required, protecting your privacy while enjoying convenient and efficient digital experiences.
- Core Features
- Precise Appearance and Voice Cloning: Using advanced AI algorithms to capture human facial features with high precision, including facial features, contours, etc., to build realistic virtual models. It can also precisely clone voices, capturing and reproducing subtle characteristics of human voices, supporting various voice parameter settings to create highly similar cloning effects.
- Text and Voice-Driven Virtual Avatars: Understanding text content through natural language processing technology, converting text into natural and fluent speech to drive virtual avatars. Voice input can also be used directly, allowing virtual avatars to perform corresponding actions and facial expressions based on the rhythm and intonation of the voice, making the virtual avatar's performance more natural and vivid.
- Efficient Video Synthesis: Highly synchronizing digital human video images with sound, achieving natural and smooth lip-syncing, intelligently optimizing audio-video synchronization effects.
- Multi-language Support: Scripts support eight languages - English, Japanese, Korean, Chinese, French, German, Arabic, and Spanish.
- Key Advantages
- Fully Offline Operation: No internet connection required, effectively protecting user privacy, allowing users to create in a secure, independent environment, avoiding potential data leaks during network transmission.
- User-Friendly: Clean and intuitive interface, easy to use even for beginners with no technical background, quickly mastering the software's usage to start their digital human creation journey.
- Multiple Model Support: Supports importing multiple models and managing them through one-click startup packages, making it convenient for users to choose suitable models based on different creative needs and application scenarios.
- Technical Support
- Voice Cloning Technology: Using advanced technologies like artificial intelligence to generate similar or identical voices based on given voice samples, covering context, intonation, speed, and other aspects of speech.
- Automatic Speech Recognition: Technology that converts human speech vocabulary content into computer-readable input (text format), enabling computers to "understand" human speech.
- Computer Vision Technology: Used in video synthesis for visual processing, including facial recognition and lip movement analysis, ensuring virtual avatar lip movements match voice and text content.
HeyGem supports Docker-based rapid deployment. Prior to deployment, ensure your hardware and software environments meet the specified requirements.
HeyGem support two deployment modes:Windows / Ubuntu 22.04 Installation
- Nodejs 18
- Docker Images
- docker pull guiji2025/fun-asr
- docker pull guiji2025/fish-speech-ziming
- docker pull guiji2025/heygem.ai
System Requirements:
- Currently supports Windows 10 19042.1526 or higher
Hardware Requirements:
-
Must have D Drive: Mainly used for storing digital human and project data
- Free space requirement: More than 30GB
-
C Drive: Used for storing service image files
-
Recommended Configuration:
- CPU: 13th Gen Intel Core i5-13400F
- Memory: 32GB
- Graphics Card: RTX 4070
-
Ensure you have an NVIDIA graphics card with properly installed drivers
NVIDIA driver download link: https://www.nvidia.cn/drivers/lookup/
-
Use the command
wsl --list --verbose
to check if WSL is installed. If it shows as below, it's already installed and no further installation is needed. -
Update WSL using
wsl --update
. -
Download Docker for Windows, choose the appropriate installation package based on your CPU architecture.
-
When you see this interface, installation is successful.
-
Run Docker
-
Accept the agreement and skip login on first run
Installation using Docker, docker-compose as follows:
-
The
docker-compose.yml
file is in the/deploy
directory. -
Execute
docker-compose up -d
in the/deploy
directory, if you want to use the lite version, executedocker-compose -f docker-compose-lite.yml up -d
-
Wait patiently (about half an hour, speed depends on network), download will consume about 70GB of traffic, make sure to use WiFi
-
When you see three services in Docker, it indicates success (the lite version has only one service
heygem-gen-video
)
For 50 series graphics cards (tested and also works for 30/40 series with CUDA 12.8) Uses the official preview version of PyTorch
- Directly download the officially built installation package
- Double-click
HeyGem-x.x.x-setup.exe
to install
System Requirements:
We have conducted a complete test on Ubuntu 22.04. However, theoretically, it supports desktop Linux distributions.
Hardware Requirements:
- Recommended Configuration
- CPU: 13th Generation Intel Core i5 - 13400F
- Memory: 32G or more (necessary)
- Graphics Card: RTX - 4070 (Ensure you have an NVIDIA graphics card and the graphics card driver is correctly installed)
- Hard Disk: Free space greater than 100G
Install Docker:
First, use docker --version
to check if Docker is installed. If it is installed, skip the following steps.
sudo apt update
sudo apt install docker.io
sudo apt install docker-compose
Install the graphics card driver:
- Install the graphics card driver by referring to the official documentation(https://www.nvidia.cn/drivers/lookup/).
After installation, execute the nvidia-smi
command. If the graphics card information is displayed, the installation is successful.
- Install the NVIDIA Container Toolkit
The NVIDIA Container Toolkit is a necessary tool for Docker to use NVIDIA GPUs. The installation steps are as follows:
- Add the NVIDIA package repository:
distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \
&& curl -s -L https://nvidia.github.io/libnvidia-container/gpgkey | sudo apt-key add - \
&& curl -s -L https://nvidia.github.io/libnvidia-container/$distribution/libnvidia-container.list | sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
- Update the package list and install the toolkit:
sudo apt-get update
sudo apt-get install -y nvidia-container-toolkit
- Configure Docker to use the NVIDIA runtime:
sudo nvidia-ctk runtime configure --runtime=docker
- Restart the Docker service:
sudo systemctl restart docker
cd /deploy
docker-compose -f docker-compose-linux.yml up -d
- Directly download the Linux version of the officially built installation package.
- Double click
HeyGem-x.x.x.AppImage
to launch it. No installation is required.
Reminder: In the Ubuntu system, if you enter the desktop as the root
user, directly double - clicking HeyGem - x.x.x.AppImage
may not work. You need to execute ./HeyGem - x.x.x.AppImage --no - sandbox
in the command - line terminal. Adding the --no - sandbox
parameter will do the trick.
We have opened APIs for model training and video synthesis. After Docker starts, several ports will be exposed locally, accessible through http://127.0.0.1
.
For specific code, refer to:
- src/main/service/model.js
- src/main/service/video.js
- src/main/service/voice.js
-
Separate video into silent video + audio
-
Place audio in
D:\heygem_data\voice\data
is agreed with theguiji2025/fish-speech-ziming
service, can be modified in docker-compose -
Call the
Parameter example:Response example:Record the response results as they will be needed for subsequent audio synthesis
Interface: http://127.0.0.1:18180/v1/invoke
// Request parameters
{
"speaker": "{uuid}", // A unique UUID
"text": "xxxxxxxxxx", // Text content to synthesize
"format": "wav", // Fixed parameter
"topP": 0.7, // Fixed parameter
"max_new_tokens": 1024, // Fixed parameter
"chunk_length": 100, // Fixed parameter
"repetition_penalty": 1.2, // Fixed parameter
"temperature": 0.7, // Fixed parameter
"need_asr": false, // Fixed parameter
"streaming": false, // Fixed parameter
"is_fixed_seed": 0, // Fixed parameter
"is_norm": 0, // Fixed parameter
"reference_audio": "{voice.asr_format_audio_url}", // Return value from previous "Model Training" step
"reference_text": "{voice.reference_audio_text}" // Return value from previous "Model Training" step
}
-
Synthesis interface:
http://127.0.0.1:8383/easy/submit
// Request parameters { "audio_url": "{audioPath}", // Audio path "video_url": "{videoPath}", // Video path "code": "{uuid}", // Unique key "chaofen": 0, // Fixed value "watermark_switch": 0, // Fixed value "pn": 1 // Fixed value }
-
Progress query:
http://127.0.0.1:8383/easy/query?code=${taskCode}
GET request, the parameter taskCode
is the code
from the synthesis interface input above
we are now announcing two parallel service solutions:
Project | HeyGem Open Source Local Deployment | Digital Human/Clone Voice API Service |
---|---|---|
Usage | Open Source Local Deployment | Rapid Clone API Service |
Recommended | Technical Users | Business Users |
Technical Threshold | Developers with deep learning framework experience/pursuing deep customization/wishing to participate in community co-construction | Quick business integration/focus on upper-level application development/need enterprise-level SLA assurance for commercial scenarios |
Hardware Requirements | Need to purchase GPU server | No need to purchase GPU server |
Customization | Can modify and extend the code according to your needs, fully controlling the software's functions and behavior | Cannot directly modify the source code, can only extend functions through API-provided interfaces, less flexible than open source projects |
Technical Support | Community Support | Dynamic expansion support + professional technical response team |
Maintenance Cost | High maintenance cost | Simple maintenance |
Lip Sync Effect | Usable effect | Stunning and higher definition effect |
Commercial Authorization | Supports global free commercial use (enterprises with more than 100,000 users or annual revenue exceeding 10 million USD need to sign a commercial license agreement) | Commercial use allowed |
Iteration Speed | Slow updates, bug fixes depend on the community | Latest models/algorithms are prioritized, fast problem resolution |
We always adhere to the open source spirit, and the launch of the API service aims to provide a more complete solution matrix for developers with different needs. No matter which method you choose, you can always obtain technical support documents through https://duix.com
We look forward to working with you to promote the inclusive development of digital human technology!
You can chat with Heygem Digital Human on the official website: https://duix.com/
We also provide APl at DUIX Platform: https://docs.duix.com/api-reference/api/Introduction
- Tested and verified on 5090 GPU
- For installation instructions, see Server Deployment Solution for NVIDIA 50 Series Graphics Cards
Ubuntu Version Officially Released
- Adaptation and verification work for Ubuntu 22.04 Desktop version (kernel 6.8.0-52-generic) has been completed. Compatibility testing for other Linux versions has not yet been conducted.
- Added internationalization (English) for the client program interface.
- Fixed some known issues
- #304
- #292
- Ubuntu22.04 Installation Documentation
-
Check if all three services are in Running status
-
Confirm that your machine has an NVIDIA graphics card and drivers are correctly installed.
All computing power for this project is local. The three services won't start without an NVIDIA graphics card or proper drivers.
- Ensure both server and client are updated to the latest version. The project is newly open-sourced, the community is very active, and updates are frequent. Your issue might have been resolved in a new version.
- Server: Go to
/deploy
directory and re-executedocker-compose up -d
- Client:
pull
code and re-build
- Server: Go to
- GitHub Issues are continuously updated, issues are being resolved and closed daily. Check frequently, your issue might already be resolved.
- Problem Description
Describe the reproduction steps in detail, with screenshots if possible.
- Provide Error Logs
HeyGem's digital human realizes digital human cloning and non-real-time video synthesis.
If you want a digital human to support interaction, you can visit duix.com to experience the free test.
If you have any questions, please raise an issue or contact us at [email protected]
https://github.com/GuijiAI/HeyGem.ai/blob/main/LICENSE
- ASR based on fun-asr
- TTS based on fish-speech-ziming