[Open-source] Real-time interactive stream digital human engine, achieving audio-video synchronous dialogue, widely used in commercial scenarios
![[Open-source] Real-time interactive stream digital human engine, achieving audio-video synchronous dialogue, widely used in commercial scenarios](https://yy123.ink/api/img/1796366445447-nrc3lt.png)
1. Project Overview
LiveTalking
Real-time interactive flow digital human engine, achieving audio-video synchronous dialogue, and widely used in the industry for commercial purposes
2. Open Source License
Licensed under Apache-2.0
3. Screenshots
4. Feature Overview
Features
-
Supports multiple digital human models: ernerf, musetalk, wav2lip, Ultralight-Digital-Human -
Supports voice cloning -
Supports digital human speaking being interrupted -
Supports full-body video splicing -
Supports WebRTC, RTMP, virtual camera output -
Supports action arrangement: playing custom videos when not speaking -
Supports multiple concurrents -
Supports custom digital human images -
Provides front-end API interfaces for connection
Usage scenario
LiveTalking is based on real-time flow digital human technology, driving virtual images to speak through text or voice, and combining LLM to achieve intelligent dialogue. It is suitable for the following scenarios:
| Scenario |
Description |
| Virtual anchors/live streaming sales |
24-hour unmanned live streaming, generating sales talk through LLM, and combining action arrangement to achieve natural performance |
| AI digital human customer service |
Accessing enterprise knowledge bases, users asking questions through voice, and digital humans responding in real-time, supporting interrupted re-speaking |
| Online Education/Training |
Teachers can record courses or drive digital lecturers to teach in real-time through API |
| Smart Voice Assistant |
Combine with smart speakers or APP, call
/human
Interface-driven digital humans for voice dialogue interaction |
| Large Screen Explanation |
Digital lecturers explain and interact with audiences on large screens, exhibition halls, and event sites |
| Batch Short Video Production |
Submit text/audio through API to generate digital humans in videos without human shooting, call
/human
+
/record
API |
Core ProcessUser input text/audio → LLM generates response (optional) → TTS synthesizes voice → digital humans' real-time lip-sync → video/audio streaming output
5. Tech Stack
1. Installation
Tested on Ubuntu 22.04, Python 3.12, PyTorch 2.9.1, CUDA 13.0
1.1 Installation of Dependencies
git clone https://github.com/lipku/LiveTalking.gitconda create -n livetalking python=3.12conda activate livetalking# If the CUDA version is not 13.0 (confirm with nvidia-smi), please install the corresponding version according to the PyTorch website (https://pytorch.org/get-started/previous-versions)pip install torch==2.9.1 torchvision==0.24.1 torchaudio==2.9.1 --index-url https://download.pytorch.org/whl/cu130cd LiveTalkingpip install -r requirements.txt
Installation FAQs
System architecture
Data Flow Diagram
Layer Explanation
API Layer
-
/human: Receive text, supporting echo (direct repeat) and chat (LLM dialogue) modes -
/humanaudio: Receive audio files for direct playback -
Each connection is assigned a unique sessionid, supporting multiple users and concurrent connections
Logic Layer
- LLM Engine
Integrate with Qwen and other large models for dialogue response generation - TTS Engine
Modular design, supporting EdgeTTS, GPT-SoVITS, CosyVoice, Tencent Cloud, and other schemes - Feature Extraction
Synchronize extraction of audio acoustic features (e.g., Mel spectrogram) for lip-sync reasoning
Rendering Layer
- Model Inference
Use deep learning models (Wav2Lip, MuseTalk, etc.) to generate lip-sync images based on audio features - Post-processing
Smoothly paste the generated lip area back to the original high-definition video
Streaming layer
- WebRTC
Low-latency browser-side streaming - RTMP
Standard live streaming protocol, supports streaming to Bilibili/YouTube and other platforms - Virtual camera
Output as system camera device
Plugin system
-
Based on registry.py's decentralized registration mechanism, developers can extend TTS, Avatar, and Output modules themselves
6. Source Code Repository
Open-source project address:
https://github.com/lipku/livetalking
Next steps