TalkAlive – Real-time WebRTC lip-sync and emotion avatar runtime (Apache-2.0) TalkAlive, released under the Apache-2.0 license, is a modular real-time digital human engine that decouples low-latency WebRTC lip-sync streaming, LLM-driven `[emo:*]` emotion choreography, and six explicit-allowlist pluggable module slots. Verified on an NVIDIA RTX 4090 D, TalkAlive streams at a steady 25fps live WebRTC (1080×1920 render plus 48kHz stereo audio) with ~850ms first-token-plus-emotion latency, under 50ms barge-in interrupt latency, and ~3.4 GB steady VRAM, running MuseTalk 1.5, Wav2Lip-256/384, and QuickTalk through unified adapters. The project ships a 60-second zero-GPU quickstart with a 9-state Web Mock avatar pack and commits zero model weights, with download scripts surfacing upstream license terms. English | 简体中文 https://github.com/dingguoliang8-eng/TalkAlive/blob/main/README ZH.md Live Demo -live-demo · Why TalkAlive -key-highlights--why-talkalive · Architecture %EF%B8%8F-system-architecture · 60s Quickstart -60-second-zero-gpu-quickstart · Hardware -hardware--lip-sync-backend-comparison · v2.0 White-Model Evolution -next-gen-architecture-v20-3d-white-model--offline-motion-transfer · Community -community--contributing TalkAlive is an Apache-2.0 modular real-time interactive digital human engine that cleanly decouples low-latency WebRTC lip-sync streaming , LLM-driven emo: emotion choreography , and 6 explicit-allowlist pluggable module slots : - 💻 60-Second Zero-GPU Quickstart : Run the full interactive web console, 9-state motion choreography, and streaming subtitle sanitizer on any Mac/Linux laptop with zero GPU and no API key. - 🚀 Seamless Switch to NVIDIA GPU Streaming : Unified adapters for MuseTalk 1.5, Wav2Lip-256/384, and QuickTalk — verified on RTX 4090 D at 25fps live WebRTC, ~850ms first-emotion latency, and ~3.4 GB steady VRAM . Captured end-to-end on an RTX 4090 D MuseTalk 1.5 real-time lip-sync + Edge-TTS voice + local LLM streaming + 25fps WebRTC . Watch idle breathing → welcome wave → explain N-1 frame-anchor transition → happy smile → mid-sentence 6ms barge-in back to idle . All emo: control tags are stripped on the fly so they drive body motion without ever leaking into speech or subtitles. demo-live-gpu.mp4 ⚡ 5-Emotion Quick Showcase 11.5s · 4 explain rotations + interrupt · Play Inline demo-showcase.mp4 🧩 All 9 Avatar States Overview 7.9s · idle / welcome / thinking / explain ×4 / nod / happy · Play Inline demo-9states.mp4 📈 Verified RTX 4090 D Benchmark Summary click to expand | Metric | Measured Result | |---|---| | Lip-Sync Backend | musetalk-1.5 default GPU recommendation, MIT code | | Streaming Output | Steady 25fps live WebRTC 1080×1920 render + 48kHz stereo audio | | First Token + Emotion Latency | ~850 ms from user prompt to emo:welcome switch & first streaming delta | | Barge-In Interrupt Latency | < 50 ms cancels upstream LLM stream, flushes PCM queue, snaps to demo idle | | Steady GPU Memory | ~3.4 GB VRAM easily co-hosted with local LLM + TTS on a single 24 GB GPU | | 9-State Seam Quality | Explicit BT.709 matrix + 10-frame cosine seamlock , < 0.22 drift, zero flicker | - ⚡ 60-Second Zero-GPU Quickstart : Ships with a royalty-free 9-state Web Mock avatar pack and a zero-key Local Rehearsal mode for instant laptop evaluation. - 🎭 Scheme A 9-State Seamless Choreography : Centers on 5 core emotions neutral / welcome / explain / nod / happy with weighted 6:3:3:1 anti-repeat rotation across 4 explain gesture variants and an optional thinking slot thinking trigger ms=0 by default . - 🧩 6 Explicit-Allowlist Pluggable Slots : Swap ASR, LLM, TTS, LipSync, Knowledge, and Tools independently with zero vendor lock-in. - 🎬 5 Lip-Sync Backends + Zero-Weight Compliance : Unified runtime for mock , musetalk-1.5 , wav2lip-256 , wav2lip-384 , and quicktalk . Zero model weights are committed ; download scripts surface upstream license terms explicitly. - ⏹ True End-to-End Streaming Barge-In : Triggering interrupt cancels the live LLM HTTP stream llm.interrupt turn id , flushes TTS/PCM queues, and smoothly returns to natural dynamic idle . - 🛠️ Built-In avatar-pack Toolchain & Skill : Standard CLI + AI Skill skills/avatar-pack to turn custom footage into flicker-free, BT.709-locked 9-state avatar packs. | Common Digital Human Pain Point | Typical Open-Source Projects | How TalkAlive Solves It | |---|---|---| | High Setup Barrier | Requires CUDA + 10 GB weights just to see a UI | ./scripts/quickstart.sh launches full UI in 60s on CPU | | Stiff Loops & Flickering Cuts | Single-clip loop or harsh color jumps on switch | Scheme A 9-state rotation + 10-frame BT.709 seamlock | | Control Tags Spoken Aloud | Fragile regex leaks happy or emojis into TTS | 128-char streaming prefix parser & sanitizer | | Half-Baked Interruption | Mutes browser audio while LLM/TTS keep burning | End-to-end turn id cancellation + PCM flush + instant idle | | Hidden License Traps | Bundles non-commercial weights silently | Zero weights in repo + explicit license gate per engine | flowchart LR subgraph Client "🌐 Browser Web UI Zero-Build ES Module · zh/EN " UI "Chat / Subtitles / Barge-In" EC "EmotionController