{"slug": "real-time-interactive-streaming-digital-human", "title": "Real time interactive streaming digital human", "summary": "LiveTalking, an open-source real-time interactive streaming digital human engine from developer lipku, drives lip-synced avatars from text or audio and has been widely adopted commercially, according to its GitHub README. The project supports four avatar models (ernerf, musetalk, wav2lip and Ultralight-Digital-Human), voice cloning, interruption handling, full-body video stitching, WebRTC/RTMP/virtual-camera output and multi-concurrency, and was tested on Ubuntu 22.04 with Python 3.12, PyTorch 2.9.1 and CUDA 12.8. Its pipeline runs user text or audio through an optional LLM reply, TTS synthesis, real-time lip-sync inference and audio-video streaming, with HTTP endpoints including /human, /humanaudio and /record and a plugin registry for extending TTS, avatar and output modules.", "body_md": "中文版 ｜ [English](https://github.com/lipku/LiveTalking/blob/main/README-EN.md)\n\n实时交互流式数字人引擎，实现音视频同步对话，已在业内获得广泛商用\n\n**效果演示**: [wav2lip](https://www.bilibili.com/video/BV1scwBeyELA/) | [ernerf](https://www.bilibili.com/video/BV1G1421z73r/) | [musetalk](https://www.bilibili.com/video/BV1bUwezvEnG/)\n\n## 点击折叠\n\n|  | PackyCode 是一家稳定、高效的 API 中转服务商，一句话接入主流大模型。新用户首充立享折扣 + $1免费体验额度，多分组折扣低至 2 折起，提供专属Codex/Claude Code高速通道，点此 [链接](https://www.packyapi.ai/register?aff=4gqz) 注册 | \n|  | APIMart 是专注 AI 图片/视频生成的低价 API 平台，GPT-Image-2 低至 $0.006/张，1 美元可出图 160+ 张。图片、视频一套异步 API 通吃，提交任务拿 ID、回调取结果，跑批万张不超时、换模型不改代码。按量付费、无月费，点此 [链接](https://go.apimart.ai/tw-livetalking) 注册 | \n\n1. 支持多种数字人模型: ernerf、musetalk、wav2lip、Ultralight-Digital-Human\n2. 支持声音克隆\n3. 支持数字人说话被打断\n4. 支持全身视频拼接\n5. 支持 WebRTC、RTMP、虚拟摄像头输出\n6. 支持动作编排：不说话时播放自定义视频\n7. 支持多并发\n8. 支持自定义数字人形象\n9. 提供前端API接口对接\n\nLiveTalking 基于实时流式数字人技术，通过文本或语音驱动虚拟形象说话，结合 LLM 实现智能对话。适用于以下场景：\n\n| 场景 | 说明 | \n|---|---|\n| **虚拟主播/直播带货[LiveStream](https://github.com/lipku/livestream)** | 24 小时无人直播，通过 LLM 自动生成带货话术，配合动作编排实现自然表现 | \n| **AI 数字人客服** | 接入企业知识库，用户语音提问，数字人实时回答，支持打断重说 | \n| **在线教育/培训** | 教师数字分身录制课程，或通过 API 驱动数字人讲师实时授课 | \n| **智能语音助手** | 结合智能音箱或 APP，调用 `/human` 接口驱动数字人进行语音对话交互 | \n| **大屏讲解** | 数字人讲解员在展厅大屏、活动现场等场景进行内容讲解和互动 | \n| **短视频批量制作** | 通过 API 批量提交文案生成数字人出镜视频，无需真人拍摄，调用 `/human` +`/record` 接口 | \n\n**核心流程**：用户输入文字/音频 → LLM 生成回复（可选）→ TTS 合成语音 → 数字人实时口型同步 → 音视频推流输出\n\n已在 Ubuntu 22.04、Python 3.12、PyTorch 2.9.1、CUDA 12.8 测试通过。\n\n```\ngit clone https://github.com/lipku/LiveTalking.git \nconda create -n livetalking python=3.12\nconda activate livetalking\n# 如果 CUDA 版本不为 12.8 (运行 nvidia-smi 确认)，请根据 PyTorch 官网(https://pytorch.org/get-started/previous-versions)安装对应版本\npip install torch==2.9.1 torchvision==0.24.1 torchaudio==2.9.1 --index-url https://download.pytorch.org/whl/cu128\ncd LiveTalking\npip install -r requirements.txt\n```\n\n安装常见问题：[FAQ](https://doc.livetalking.ai/docs/faq/)\n\nLinux CUDA 环境搭建参考: [https://zhuanlan.zhihu.com/p/674972886](https://zhuanlan.zhihu.com/p/674972886)\n\n| 网盘 | 地址 | \n|---|---|\n| 夸克云盘 | [https://pan.quark.cn/s/83a750323ef0](https://pan.quark.cn/s/83a750323ef0) | \n| Google Drive | [https://drive.google.com/drive/folders/1FOC_MD6wdogyyX_7V1d4NDIO7P9NlSAJ?usp=sharing](https://drive.google.com/drive/folders/1FOC_MD6wdogyyX_7V1d4NDIO7P9NlSAJ?usp=sharing) | \n\n1. 将 `wav2lip256.pth` 拷贝到项目的`models/` 目录下，重命名为`wav2lip.pth`\n2. 将 `wav2lip256_avatar1.tar.gz` 解压后整个文件夹拷贝到`data/avatars/` 目录下\n\n```\npython app.py --transport webrtc --model wav2lip --avatar_id wav2lip256_avatar1\n```\n\n**注意**: 服务端需开放端口 TCP:8010, UDP:1-65536\n\n| 方式 | 说明 | \n|---|---|\n| 浏览器 | 打开 `http://serverip:8010/index.html` ，点击\"开始连接\"播放数字人视频，在文本框输入文字提交即可 | \n| API 调用 | 参考 [API 文档](https://github.com/lipku/LiveTalking/blob/main/docs/api.md) 通过 HTTP 接口驱动 | \n| 桌面客户端 | 下载地址: [https://pan.quark.cn/s/d7192d8ac19b](https://pan.quark.cn/s/d7192d8ac19b) | \n\n| 页面 | 地址 | 说明 | \n|---|---|---|\n| 首页 | `/index.html` | WebRTC 连接 + 文本/音频驱动 + 录制控制 | \n| Avatar 生成 | `/avatar.html` | 上传视频自动生成数字人形象 | \n| 管理后台 | `/admin.html` | 实时监控会话状态与全局配置 | \n\n1. \n使用在线镜像创建实例即可运行: [UCloud 镜像](https://www.compshare.cn/images/4458094e-a43d-45fe-9b57-de79253befe4?referral_code=3XW3852OBmnD089hMMrtuU&ytag=GPU_GitHub_livetalking)\n2. \nWindows整合包 [https://pan.quark.cn/s/a040bf5cb065](https://pan.quark.cn/s/a040bf5cb065)\n3. \n商用版体验地址 [https://www.livetalking.top](https://www.livetalking.top)\n\n**API 层**\n\n- `/human` : 接收文本，支持 echo（直接复读）和 chat（LLM 对话）模式\n- `/humanaudio` : 接收音频文件直接播放\n- 每个连接分配唯一 `sessionid` ，支持多用户并发\n\n**逻辑层**\n\n- **LLM 引擎** : 对接 Qwen 等大模型生成对话回复\n- **TTS 引擎** : 模块化设计，支持 EdgeTTS、GPT-SoVITS、CosyVoice、腾讯云等多种方案\n- **特征提取** : 同步提取音频的声学特征（如 Mel 频谱），用于口型推理\n\n**渲染层**\n\n- **模型推理** : 使用深度学习模型 (Wav2Lip, MuseTalk 等) 根据音频特征生成口型画面\n- **后处理** : 将生成的口型区域平滑贴回原始高清视频\n\n**推流层**\n\n- **WebRTC** : 低延迟浏览器端推流\n- **RTMP** : 标准直播协议，支持推流到 B站/YouTube 等平台\n- **虚拟摄像头** : 输出为系统摄像头设备\n\n**插件系统**\n\n- 基于 [registry.py](https://github.com/lipku/LiveTalking/blob/main/registry.py) 的去中心化注册机制，开发者可自行扩展 TTS、Avatar、Output 模块\n\n| 文档 | 说明 | \n|---|---|\n| [docs/api.md](https://github.com/lipku/LiveTalking/blob/main/docs/api.md) | 通用业务 API — WebRTC、文本/音频驱动、录制、动作编排 | \n| [docs/avatar_api.md](https://github.com/lipku/LiveTalking/blob/main/docs/avatar_api.md) | Avatar 生成 API — 创建任务、查询进度、删除任务 | \n| [docs/admin_api.md](https://github.com/lipku/LiveTalking/blob/main/docs/admin_api.md) | Admin 管理 API — 全局配置、会话监控、强制停止 | \n\n镜像说明:\n\n- 每路视频压缩消耗 CPU，分辨率越高 CPU 消耗越大；每路口型推理消耗 GPU\n- 不说话时并发数取决于 CPU，同时说话并发数取决于 GPU\n- 后端日志 `inferfps` = GPU 推理帧率,`finalfps` = 最终推流帧率，两者均需 >=25 才算实时\n\n| 模型 | 显卡 | FPS | \n|---|---|---|\n| wav2lip256 | RTX 3060 | 60 | \n| wav2lip256 | RTX 3080Ti | 120 | \n| musetalk | RTX 3080Ti | 42 | \n| musetalk | RTX 3090 | 45 | \n| musetalk | RTX 4090 | 72 | \n\n- wav2lip256 推荐 RTX 3060 及以上\n- musetalk 推荐 RTX 3080Ti 及以上\n\n| 维度 | 开源版 | 商用版 | \n|---|---|---|\n| 定位 | 开源社区版，Apache 2.0 | 商用付费版，面向需要高性能、可运营交付的客户 | \n| 核心目标 | 快速体验、二次开发、学习研究 | 开箱即用的商业交付：性能加速、自适应动作、实时语音互动 | \n| 技术栈 | wav2lip / musetalk / ultralight 三款模型 | 在开源版基础上新增 wav2lipls 及全套增强能力 | \n\n更多详情 [https://doc.livetalking.ai/docs/service/](https://doc.livetalking.ai/docs/service/)\n\n基于本项目开发并发布在B站、视频号、抖音等平台上的视频需带上 LiveTalking 水印和标识。\n\n如果本项目对您有帮助，期待您能给一个 Star⭐和引用\n\n```\n@software{livetalking,\n  author = {Hengzhong Li},\n  title = {LiveTalking: Real-Time Interactive Streaming Digital Human Framework},\n  year = {2025},\n  publisher = {GitHub},\n  url = {https://github.com/lipku/livetalking}\n}\n```\n\n| 社区 | 链接 | \n|---|---|\n| 知识星球 | [https://t.zsxq.com/7NMyO](https://t.zsxq.com/7NMyO) | \n| 微信 | wxwubug (加群请备注) | \n| Telegram | [https://t.me/livetalking](https://t.me/livetalking) | \n| Discord | [https://discord.gg/n5jSPCT3Uf](https://discord.gg/n5jSPCT3Uf) | \n|  | [lipku@foxmail.com](mailto:lipku@foxmail.com) | \n| 微信公众号 | 数字人技术 |", "url": "https://wpnews.pro/news/real-time-interactive-streaming-digital-human", "canonical_source": "https://github.com/lipku/LiveTalking", "published_at": "2026-11-23 10:13:30+00:00", "updated_at": "2026-11-23 10:45:21.497008+00:00", "lang": "en", "topics": ["artificial-intelligence", "generative-ai", "ai-products", "ai-tools", "large-language-models"], "entities": ["LiveTalking", "lipku", "Wav2Lip", "MuseTalk", "Ultralight-Digital-Human", "PyTorch", "EdgeTTS", "GPT-SoVITS"], "also_reported_by": [], "takeaway": "LiveTalking ships a streaming digital-human pipeline that chains LLM reply, TTS and lip-sync inference to WebRTC/RTMP output, with /human, /humanaudio and /record HTTP endpoints and a registry.py plugin system for swapping TTS, avatar and output modules.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/real-time-interactive-streaming-digital-human", "markdown": "https://wpnews.pro/news/real-time-interactive-streaming-digital-human.md", "text": "https://wpnews.pro/news/real-time-interactive-streaming-digital-human.txt", "jsonld": "https://wpnews.pro/news/real-time-interactive-streaming-digital-human.jsonld"}}