liuzhao1225/YouDub-Desktop

★ 5,873⑂ 631

Open-source AI video localization and dubbing for YouTube/Bilibili: speech recognition, subtitle translation, voice cloning, audio mixing and rendering. 开源 AI 视频翻译配音工具。

About liuzhao1225/YouDub-Desktop

liuzhao1225/YouDub-Desktop is an open-source project on GitHub, mainly written in TypeScript. Open-source AI video localization and dubbing for YouTube/Bilibili: speech recognition, subtitle translation, voice cloning, audio mixing and rendering. It currently holds 5,873 stars and 631 forks with 5 open issues, and was last pushed on 2026-11-21 (repository created 2023-12-26).

Project Overview

Git Homed tracks it on the Video Trending board and on the AI Video Trending list.

GitHub Repository Details

Repository liuzhao1225/YouDub-Desktop · default branch main · size 135062 KB · watchers 35 · source: GitHub REST API and repository README

README

https://github.com/liuzhao1225/YouDub-Desktop/blob/HEAD/YouDub

YouDub Desktop

开源视频本地化工作台:导入视频,识别、翻译并逐句克隆原声,生成字幕和配音成片。

English · 官网与试听 · 下载最新版 · 安装与升级 · 社区交流

效果示例

默认演示为 2026-10-09 生成的黄仁勋采访:逐句原声克隆、中文字幕与背景音保留,完整时长约 59 秒。源视频链接用于说明样例出处,工作台支持视频链接和本地文件导入。

1. 黄仁勋采访 · 最新效果

原视频链接 · YouTube Shorts · 英文 -> 中文

原始英文中文配音版

https://github.com/user-attachments/assets/befd11ca-e720-4faa-b4e0-d89bfe73df87

https://github.com/user-attachments/assets/60d5dbb0-f346-4c14-adad-2d0c481ac4fb

2. 历史样例:How much YT paid me for 129 million shorts views

原视频链接 · YouTube 横屏长视频 · 英文 -> 中文 · 下方为开头 40 秒切片,完整版可在 demo-assets Release 下载

原始英文中文配音版

https://github.com/user-attachments/assets/bd02936f-cf3c-4e4b-85b5-0410d38f69f5

https://github.com/user-attachments/assets/158de60a-7de4-4ddf-b3d8-478d0423aee6

3. Me at the zoo

原视频 · 英文 → 中文 · 19 秒

在官网切换中英文试听。工作台和环境准备页的“查看官网示例”打开官网试听。安装包只保留黄仁勋采访原视频,可直接用作本地工作流输入。

能做什么

| 输出模式 | 生成内容 | | --- | --- | | 原声 + 字幕 | 保留原始音轨,生成并烧录目标语言字幕 | | 配音 | 生成目标语言配音,可保留分离后的背景音 | | 字幕 + 配音 | 输出带字幕的配音视频,可选语音强制对齐 |

工作台选择视频和工作流,并显示节点声明的快捷设置。语言、模型、设备、声音和字幕参数保存在工作流节点中;模型供应商、本地环境与模型安装在设置中管理。

界面预览

工作台:导入视频,选择语言和输出内容。

YouDub 工作台:视频导入、原文与目标语言、配音与字幕选项
查看任务库与任务详情

任务库:视频封面、处理状态和历史任务。

YouDub 任务库:视频封面与已完成任务

任务详情:成片预览、处理步骤、配音音频和字幕下载。

YouDub 任务详情:带中文字幕的成片、八个已完成步骤与生成文件

下载与使用

Windows EXE 安装包 · macOS DMG · 版本说明与便携包

首次启动准备基础运行环境;所需模型和推理依赖按工作流准备。安装要求与升级方法见安装指南。

1. 在「设置 → LLM 供应商」添加供应商、密钥和翻译模型。 2. 在「工作台」导入视频,选择工作流并调整节点选项,按提示准备所需资源后创建任务。 3. 在「任务库」查看进度,播放或下载结果。

社区交流

QQ 交流群:618246010

https://github.com/liuzhao1225/YouDub-Desktop/blob/HEAD/YouDub QQ 交流群二维码

从源码运行 YouDub Desktop

YouDub 采用纯粹的三层架构:超薄 Electron 桌面壳(apps/desktop) + Vite 8 React 19 SPA(apps/web) + 纯 Python FastAPI 运行时(backend/app/server + backend/app/v1)。

环境要求:Node.js ^22.19.0 || >=24.0.0、Python 3.12(.venv 或 uv)、npm 与 Git。在仓库根目录执行:

npm --prefix apps/web ci --registry=https://registry.npmmirror.com
npm --prefix apps/desktop ci --registry=https://registry.npmmirror.com
npm run build
npm start

开发联调与辅助命令:

首次启动选择界面语言和数据目录,页面会检查 FFmpeg、yt-dlp、Python 依赖和本地模型准备状态(Whisper 默认使用 large-v3-turbo,也可按需切换下载其他 Whisper 模型或一键更新 yt-dlp)。

架构概览

apps/desktop (Electron 主进程 & safeStorage 凭据桥)
      ↕  HTTP / SSE (/api/events)
backend/app/server (FastAPI + SQLite WAL + DAG 引擎 + LLM 翻译 + ResourceManager)
      ↕  子进程 ML 执行
backend/app/v1 (Whisper + SentenceX + Demucs + Qwen Aligner + VoxCPM2 + FFmpeg)

当前范围

开发与测试

.venv/bin/pytest
npm run typecheck
npm run lint
npm test
npm run build
backend/app/server/  FastAPI 控制面、SQLite 持久化、DAG 调度、LLM 客户端、资源管理与 SSE Hub
backend/app/v1/      Whisper、Demucs、Qwen Aligner、VoxCPM2 与 FFmpeg 媒体处理内核
backend/tests/       Python 后端与推理阶段单元测试(pytest)
apps/web/            Vite 8 + React 19 + Tailwind CSS v4 SPA 前端、UI 原语、画布与校对页面
apps/desktop/        超薄 Electron 桌面壳(main.ts / preload.ts / inno-updater.ts)
scripts/             开发联调、桌面打包、macOS 签名与更新源工具脚本
submodule/demucs/    Demucs 源码子模块

欢迎通过 Issue / PR 改进安装体验、适配模型或优化字幕与音画对齐。详细模块文档见 Web 前端说明 与 桌面端说明。

开源许可

本项目使用 Apache License 2.0,详见 LICENSE。

国内镜像:AtomGit,由 GitHub 主仓库单向同步。Release、Issue 和 PR 在 GitHub 维护。

作者:刘朝 Zhao Liu · GitHub · Bilibili 黑纹白斑马

Star History

GitHub Stars & Activity

5,873Stars
631Forks
5Open issues
TypeScriptLanguage

GitHub Popularity

GitHub stars5,873
Forks631
Open issues5
Primary languageTypeScript
LicenseApache-2.0
Stars gained today0
Created2023-12-26
Last pushed2026-11-21

Trending History

Trending statusnot on today's boards

Related GitHub Projects

1

heygen-com / hyperframes

TypeScript★ 89,846⑂ 0
→
2

mifi / lossless-cut

TypeScript★ 46,407⑂ 0
→
3

hypit-ai / hypit

TypeScript★ 31,461⑂ 0
→
4

HBAI-Ltd / Toonflow-app

TypeScript★ 22,779⑂ 0
→
5

Vincentwei1021 / video-shotcraft

TypeScript★ 22,517⑂ 0
→
6

nexu-io / openmotion

TypeScript★ 16,176⑂ 0
→
7

waooAI / waoowaoo

TypeScript★ 14,984⑂ 0
→
8

krillinai / OpenCreator

TypeScript★ 14,533⑂ 0
→

More Trending Repositories