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.
Нужны ли API-ключи для AI-частей или можно обойтись бесплатно?Обычно настраивается LLM с OpenAI-совместимым API (по умолчанию DeepSeek V4 Flash через OpenRouter), WhisperX и сервис TTS — один ключ 302.ai закрывает все три пункта. Для бесплатного варианта запустите Ollama локально и используйте Edge-TTS — тогда API-ключи вообще не нужны.
Где она ещё не дотягивает?Фоновый шум ухудшает распознавание речи, субтитры, заканчивающиеся числом, могут обрезаться, а слабые LLM иногда не справляются со строгими шагами проверки JSON — тогда удаляют папку с результатом и пробуют другую модель. Озвучка не идеальна на 100%, при многоязычном аудио сохраняется только основной язык, а отдельные голоса для разных персонажей не поддерживаются.
На каких системах она работает?Поддерживаются Windows, macOS и Linux — для каждой системы есть свои шаги установки, плюс вариант с Docker, для которого нужна видеокарта NVIDIA. Сам интерфейс — это локальное веб-приложение на Streamlit.
Какая у неё лицензия — есть ли ограничения?Apache 2.0 — разрешительная лицензия: можно свободно использовать и изменять проект, в том числе в коммерческих целях.
Мне нужна видеокарта NVIDIA?Видеокарта помогает при локальном распознавании речи через WhisperX, а для варианта с Docker нужны CUDA 12.4 и драйвер NVIDIA выше 550; пользователям Windows с NVIDIA стоит сначала установить CUDA Toolkit 12.6 и CUDNN 9.3.0. Вместо локального распознавания можно переложить его на API 302.ai.
Что на самом деле происходит с видео, когда я его отдаю?Программа скачивает видео через 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 (без многострочных), более высокое качество перевода и более бесшовная озвучка.
Какие есть похожие проекты?pyvideotrans, voice-pro, Index-Translate, baocut, OpenCreator, VoiceStudio, autoclip, seamless_communication
Автор
Huanshere
Размер
21 MB
Звёзды
19.4K
Возраст
2 г
Коммиты · 90 дней