VideoLingo README

项目的 README,来自 github.com/Huanshere/VideoLingo。合并为一个 markdown 文件:README.md。

VideoLingo Logo

Connect the World, Frame by Frame

Huanshere%2FVideoLingo | Trendshift

English|简体中文|繁體中文|日本語|Español|Русский|Français

🌟 Overview (Try VL Now!)

VideoLingo combines speech recognition, subtitle translation, segmentation and dubbing in a Streamlit interface. It produces subtitle files and optionally subtitled or dubbed videos. Translation quality depends on the source audio, language and chosen models.

Key features:

The workflow combines transcription, translation, subtitle layout and dubbing in one project.

🎥 Demo

Dual Subtitles


https://github.com/user-attachments/assets/a5c3d8d1-2b29-4ba9-b0d0-25896829d951

Cosy2 Voice Clone


https://github.com/user-attachments/assets/e065fe4c-3694-477f-b4d6-316917df7c0a

GPT-SoVITS with my voice


https://github.com/user-attachments/assets/47d965b2-b4ab-4a0b-9d08-b49a7bf3508c

Language Support

Input languages:

🇺🇸 English 🤩 | 🇷🇺 Russian 😊 | 🇫🇷 French 🤩 | 🇩🇪 German 🤩 | 🇮🇹 Italian 🤩 | 🇪🇸 Spanish 🤩 | 🇯🇵 Japanese 😊 | 🇨🇳 Chinese 🤩

Dubbing languages depend on the selected TTS method.

Installation

VideoLingo supports Windows, macOS (Apple Silicon / Intel), and Linux.

Ask your local AI agent 🤖

If you use an AI agent that can operate your computer, send it this prompt:

Install and launch GitHub's Huanshere/VideoLingo on my computer.

Windows: one-click install 🎉

  1. Download Source code (zip) from the latest Release, extract it to your Desktop or another folder, and open the folder.
  2. Double-click OneKeyStart.bat and keep the window open. On the first run, it automatically installs uv, Python 3.12, the app dependencies, and FFmpeg. An internet connection is required.
  3. After installation, VideoLingo opens automatically in your browser. Enter your API URL, key, and model in the sidebar to start using it.

Install from source (Windows, macOS, Linux)

git clone https://github.com/Huanshere/VideoLingo.git && cd VideoLingo
uv run start.py

To start it later, run uv run start.py again from the VideoLingo folder. Apple Silicon uses MLX; Intel Macs use CPU recognition. By default, Intel Mac dubbing uses the new voice without the original background sound.

Docker (optional)

For a Linux NVIDIA container deployment, install Docker, a compatible GPU driver and the NVIDIA Container Toolkit. The image uses the same Python 3.12 setup and application dependencies, with CUDA 12.8.1/cu128 by default. See Docker docs for the matched CUDA 12.6 alternative and persistence settings.

docker build -t videolingo .
docker run -d -p 8501:8501 --gpus all videolingo

HTTP API (replaces Excel batch mode)

For agents and scripts, use the local HTTP API instead of the former Excel batch mode. It shares the Streamlit pipeline and processes one operation at a time using output/. Configure config.yaml and start it from the project root. The command also installs missing dependencies on first use:

uv run start.py --api

See the HTTP API guide for input, processing, progress, downloads, retries and serial batch processing. Interactive endpoint docs: localhost:8000/docs.

LLM, ASR and TTS providers

VideoLingo supports OpenAI-Like API format and various TTS interfaces:

For detailed installation, LLM configuration, and usage instructions, please refer to the documentation: English | 中文

Current Limitations

  1. Background noise and language-specific alignment models affect recognition and word timestamps. Vocal separation may help. Numbers and symbols may lack reliable word timings; inspect the resulting subtitles.

  2. LLM output must satisfy the workflow's JSON structure. For failures, inspect output/gpt_log/error.json. Existing successful response caches and completed outputs can be reused on retry; changing the model alone does not regenerate every completed stage. Do not delete all output as the first troubleshooting step.

  3. Dubbing quality and timing depend on translation, the TTS service and speech rate. Speed adjustment does not guarantee natural delivery or perfect synchronization.

  4. Local recognition uses one primary recognition/alignment language per audio segment. Mixed-language speech is not guaranteed to retain accurate text and timing in every language.

  5. The dubbing workflow does not automatically assign a separate voice to each speaker.

📄 License

This project is licensed under the Apache 2.0 License. Special thanks to the following open source projects for their contributions:

Qwen3-ASR, MLX Audio, whisperX, yt-dlp, json_repair, BELLE

📬 Contact Me

⭐ Star History

Star History Chart


If you find VideoLingo helpful, please give me a ⭐️!

VideoLingo (Huanshere/VideoLingo)

正在搜索数据库…

这是什么东西?VideoLingo 是一款一站式 AI 工具,用于视频翻译、本地化和配音。它能生成 Netflix 品质的单行字幕,还可以加上高质量配音,全程一键自动完成。
它是在线服务,还是要装在我自己的电脑上运行?在本地运行:它会在浏览器里启动一个 Streamlit 界面,整个流程都从这里操作,也可以改用 Docker 方式。
我怎么把它跑起来?用系统的包管理器安装 FFmpeg,克隆仓库,然后运行一条命令的 uv 安装——它会帮你装好 Python 3.10 和所有依赖。在 Windows 上也可以直接双击 OneKeyStart.bat。
AI 部分需要我配置 API 密钥吗,能不能免费使用?通常你需要配置一个兼容 OpenAI 的大语言模型(默认是通过 OpenRouter 使用 DeepSeek V4 Flash)、WhisperX 和一个 TTS 语音合成服务——302.ai 用一个密钥就能覆盖这三项。想免费使用的话,可以在本地跑 Ollama,再搭配不需要任何 API 密钥的 Edge-TTS。
它还有哪些不足?背景噪音会影响语音识别的准确度,以数字结尾的字幕可能被截断,较弱的大语言模型可能无法通过严格的 JSON 校验步骤——这时你可以删掉输出文件夹,换一个模型重试。配音不是百分之百完美,多语言音轨只保留主语言,也不支持按角色分配不同声音。
它支持哪些系统?Windows、macOS 和 Linux 都支持,每个系统都有各自的安装步骤,另外还有一条需要 NVIDIA 环境的 Docker 路线。界面本身是一个本地运行的 Streamlit 网页应用。
它用什么许可证?有什么限制吗?Apache 2.0,这是一个宽松的许可证——你可以自由使用和修改,包括商用。
我需要 NVIDIA 显卡吗?在本地用 WhisperX 做语音识别时显卡才有帮助,Docker 方式需要 CUDA 12.4 和 550 以上的 NVIDIA 驱动;Windows 的 NVIDIA 用户应先安装 CUDA Toolkit 12.6 和 CUDNN 9.3.0。你也可以把语音识别交给 302.ai 的 API,而不在本地跑。
视频交过去之后,实际会发生什么?它会用 yt-dlp 下载视频,用 WhisperX 生成词级的字幕,再通过 NLP 和 AI 把字幕切分成自然的段落,然后用自定义或 AI 生成的术语表进行翻译,外加一轮三步的 Translate-Reflect-Adaptation 翻译流程,最后导出符合 Netflix 标准的单行字幕——还可以在上面加配音。
它支持哪些语言?输入支持英语、俄语、法语、德语、意大利语、西班牙语、日语和中文,之后还会增加更多。翻译支持所有语言,配音则取决于你选择的 TTS 方式。
配音是怎么做的?能克隆我自己的声音吗?配音可以通过 GPT-SoVITS、Azure、OpenAI、fish-tts、siliconflow 或 edge-tts 实现,customtts.py 还能让你接入自己的 TTS。演示里用作者本人的声音,通过 Cosy2 和 GPT-SoVITS 展示了声音克隆。
和其他字幕工具相比,为什么选它?作者从三点把自己和其他同类项目区分开:只做符合 Netflix 标准的单行字幕(不做多行)、翻译质量更好、配音体验更顺畅。
作者
Huanshere
大小
21 MB
星标
19.4K
时长
2年
提交 · 90 天