lipku/LiveTalking

Real time interactive streaming digital human

What is LiveTalking?

LiveTalking is a real-time interactive streaming digital human engine. In plain terms, it lets you create a lifelike virtual person on screen that can talk, sync its lips to audio, and hold a conversation — all live, with low delay. The README says it has already been widely adopted in commercial settings.

Core idea

The basic flow is: you give it text or audio → an optional LLM (large language model) generates a reply → a TTS (text-to-speech) system turns that into speech → a deep-learning model animates the digital human's lips to match → the result streams out as audio-video. The user can interrupt the digital human mid-sentence and it will stop and respond to the new input.

What it can do (features listed in the README)

  • Multiple digital human models: supports ernerf, musetalk, wav2lip, and Ultralight-Digital-Human
  • Voice cloning: replicate a specific voice
  • Interruption support: the digital human can be interrupted while speaking
  • Full-body video stitching: can combine the face with a full-body video
  • Multiple output methods: WebRTC (low-latency browser streaming), RTMP (standard live-streaming protocol, e.g., to Bilibili/YouTube), and virtual camera (appears as a system webcam)
  • Action choreography: when the digital human is not speaking, it can play a custom video (e.g., idle animations)
  • Multi-concurrency: multiple users/sessions at once
  • Custom appearance: upload your own video to create a custom digital human avatar
  • Frontend API: provides HTTP endpoints for integration

Where it's used (from the README)

Scenario Description
Virtual anchor / live e-commerce 24/7 unattended live streams with LLM-generated sales scripts
AI customer service Voice Q&A with a digital human, supports interruption
Online education Teacher avatars for recorded or live lessons
Smart voice assistant Drive a digital human via the /human API from a smart speaker or app
Large-screen presentations Digital human presenter at exhibitions or events
Batch short-video production Submit scripts via API to generate talking-head videos without filming

How to run it

Requirements (tested on): Ubuntu 22.04, Python 3.12, PyTorch 2.9.1, CUDA 12.8.

  1. Clone the repo, create a conda environment, install PyTorch and dependencies.
  2. Download model files (from Quark cloud drive or Google Drive) and place them in the right folders.
  3. Start the server with a command like: python app.py --transport webrtc --model wav2lip --avatar_id wav2lip256_avatar1
  4. Connect via browser (http://serverip:8010/index.html), API, or a desktop client.

There are also Docker images and a Windows all-in-one package available.

System architecture (as described in the README)

  • API layer: /human accepts text (with echo or LLM-chat modes), /humanaudio accepts audio files. Each connection gets a unique sessionid for multi-user concurrency.
  • Logic layer: pluggable LLM engine (e.g., Qwen), pluggable TTS engine (EdgeTTS, GPT-SoVITS, CosyVoice, Tencent Cloud, etc.), and feature extraction (e.g., Mel spectrograms) for lip-sync.
  • Rendering layer: deep-learning models (Wav2Lip, MuseTalk, etc.) generate lip-synced frames; post-processing smoothly pastes the mouth region back onto the original high-res video.
  • Streaming layer: WebRTC, RTMP, or virtual camera output.
  • Plugin system: a decentralized registration mechanism (registry.py) lets developers extend TTS, Avatar, and Output modules.

Performance (from the README's benchmark table)

Model GPU FPS
wav2lip256 RTX 3060 60
wav2lip256 RTX 3080Ti 120
musetalk RTX 3080Ti 42
musetalk RTX 3090 45
musetalk RTX 4090 72

The README notes that for real-time performance, both inferfps (GPU inference frame rate) and finalfps (final streamed frame rate) must be ≥ 25. Recommended minimum GPUs: RTX 3060 for wav2lip256, RTX 3080Ti for musetalk.

License and commercial version

The open-source version is licensed under Apache 2.0. There is also a paid commercial version that adds performance acceleration, adaptive actions, real-time voice interaction, and an extra model (wav2lipls). The README also states that videos published on platforms like Bilibili, WeChat Channels, or Douyin that are built from this project must include the LiveTalking watermark.

Additional notes

  • The README lists sponsor links (API resellers) and community channels (WeChat, Telegram, Discord, etc.).
  • A citation format is provided for academic reference.
  • The project has a documentation site at doc.livetalking.ai.

Bottom line: LiveTalking is a production-ready framework for building real-time talking digital humans — from lip-sync animation to streaming output — with pluggable AI components and multiple deployment options.

Related

  • Project
  • Project
  • Project
  • Project
  • Project