https://github.com/timoncool/dub-studio
The open-source CapCut for AI dubbing — dub any short video into 6 languages, 100% local, with a live editor.
https://github.com/timoncool/dub-studio
ai-dubbing asr dubbing fastapi local-first portable react subtitles translation tts video
Last synced: about 13 hours ago
JSON representation
The open-source CapCut for AI dubbing — dub any short video into 6 languages, 100% local, with a live editor.
- Host: GitHub
- URL: https://github.com/timoncool/dub-studio
- Owner: timoncool
- License: other
- Created: 2026-06-21T19:50:59.000Z (17 days ago)
- Default Branch: master
- Last Pushed: 2026-07-07T12:41:41.000Z (1 day ago)
- Last Synced: 2026-07-07T14:15:40.452Z (1 day ago)
- Topics: ai-dubbing, asr, dubbing, fastapi, local-first, portable, react, subtitles, translation, tts, video
- Language: Python
- Size: 32.3 MB
- Stars: 34
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README

# Dub Studio
**The open-source CapCut for AI dubbing** — dub any short video into 6 languages, **locally & free**, with a live editor.
[](https://github.com/timoncool/dub-studio/stargazers)
[](LICENSE)
[](https://github.com/timoncool/dub-studio/releases)



Smart auto‑defaults do the first pass; then you override **every caption, voice, blur box, font & title** with instant preview. Runs on your own GPU. No subscription, no uploads.
**[Releases](https://github.com/timoncool/dub-studio/releases)** · **[Packaging](PACKAGING.md)** · dubs into EN / RU / ZH / ES / PT / FR
**English** · **[Русский](README_RU.md)**

---
> [!IMPORTANT]
> **Dub Studio is beta — and it's 100% not perfect yet.** Many features still need polish, and you can
> help shape where it goes. The big one on the roadmap: making **every module swappable — ASR, LLM,
> vision, TTS** — so you can plug in any model and tune the whole pipeline however you like. It's a large
> effort and I'd love your help: issues, PRs, testing on real clips, and model recipes all move it forward.
> If it's useful, ⭐ the repo and jump in.
## Why
Cloud dubbing tools (HeyGen, Rask, ElevenLabs) charge per minute, upload your footage and your
voiceprint, and give you shallow editing. Open‑source CLI tools are powerful but Gradio‑grade — no
draggable canvas, no live preview. **Dub Studio is the missing middle:** a premium live‑preview
editor, the only one that also **detects, blurs and re‑captions on‑screen text**, fully local and free.
## Examples
Russian original (left) → dubbed into English by Dub Studio (right) — voice **and** on‑screen text:
Original — RU
Dubbed to English
## Features
| | |
|---|---|
| 🎙️ **Faithful dub** | clone the original timbre, auto‑cast per speaker by gender, or pick a pack voice — different voice per speaker |
| 🌍 **6 languages** | translate speech *and* on‑screen text; auto‑detects the source language |
| 🅰️ **On‑screen text** | OCR → blur the original → re‑caption localized, in the matched style (the wedge no other tool owns) |
| 🎬 **Live editor** | edit transcript, voices, caption style, blur boxes, titles — frame‑accurate preview at every step |
| 🎛️ **Caption presets** | 26 built‑in looks (karaoke / word‑by‑word / hormozi / neon / …) rendered on *your* frame |
| 😂 **Funny remix** | give a theme ("pirate", "as a news report") → the model rewrites the whole script → re‑dub |
| 🔁 **Before / after** | side‑by‑side original ↔ dubbed — the trust check |
## Dub Studio vs the alternatives
| | Dub Studio | OSS CLI tools | HeyGen / Rask / ElevenLabs |
|---|:--:|:--:|:--:|
| Local & private (no upload) | ✅ | ✅ | ❌ |
| Free | ✅ | ✅ | ❌ |
| Live‑preview editor | ✅ | ❌ | ⚠️ shallow |
| On‑screen text blur + re‑caption | ✅ | ❌ | ⚠️ few, cloud |
| Portable (one folder) | ✅ | ⚠️ | — |
## Install
> 🚀 **One-click, cross-platform install via [Pinokio](https://pinokio.co)** — Windows / Linux / macOS · NVIDIA / AMD / CPU:
>
> [](https://pinokio.co/item?uri=https://github.com/timoncool/dub-studio-pinokio) [](https://beta.pinokio.co/apps/github-com-timoncool-dub-studio-pinokio)
>
> No `install.bat`, no manual CUDA wheels — Pinokio installs the right stack for your machine and the engine falls back gracefully off-NVIDIA. Launcher repo: **[timoncool/dub-studio-pinokio](https://github.com/timoncool/dub-studio-pinokio)**.
### Windows portable (manual)
**You need:** [Git](https://git-scm.com/download/win) · an NVIDIA GPU (RTX 20xx–50xx, CUDA 12.8, ~12 GB VRAM) · several GB of free disk for the wheels and models. You do **not** need Python, CUDA, Node or ffmpeg pre-installed — the installer fetches them all into the app folder, nothing system-wide.
**1 — Clone the repo**
```bash
git clone https://github.com/timoncool/dub-studio.git
cd dub-studio
```
**2 — Install:** double-click **`install.bat`** (or run it from the folder). One-time setup, entirely inside the folder — it installs:
- embeddable **Python 3.11** + pip
- **PyTorch 2.8** (CUDA 12.8) + the engine requirements
- **llama-cpp-python** (Gemma GGUF, cu128) + **Triton** kernels
- the **`dub-engine`** package (editable install)
- **ffmpeg** (NVENC) + **Node**, then builds the web UI
- the base **voice pack**
- *optional:* a NeMo sub-venv for multi-speaker diarization (skips cleanly if it can't build)
**3 — Run:** double-click **`run.bat`**. It launches the local server and opens the editor at **http://127.0.0.1:8765**. Drop a video → the AI models (Gemma‑4 GGUF + mmproj, Parakeet, Qwen3‑TTS, Sortformer) download on first use, then it dubs. Close the window to stop.
> **Shortcut:** you can skip step 2 — on a fresh clone, **`run.bat`** auto-runs `install.bat` for you if the app isn't set up yet. Minimum path: clone → double-click `run.bat`.
**Updating:** `git pull`, then double-click **`update.bat`** (re-pulls, reinstalls the engine, rebuilds the UI).
| Script | What it does |
|---|---|
| **`install.bat`** | one-time setup — Python, CUDA wheels, engine, llama-cpp/Triton, ffmpeg, Node, UI build, voice pack |
| **`run.bat`** | start the app at `http://127.0.0.1:8765` (auto-runs `install.bat` on first launch) |
| **`update.bat`** | `git pull` → reinstall the engine → rebuild the UI |
## How it works
`analyze()` is the fixed first stage: separate → ASR (word timings) → diarize → context‑translate +
vision (caption style / titles / brands) → OCR (layout / blur boxes). It returns an editable
**Project** document. Every edit is a patch on that Project with a ~0.14 s CPU preview; export re‑runs
only the dirtied stages. The engine is a self‑contained package in this repo under `dub-engine/`, bundled into the portable build.
**Stack:** React 19 + Vite + Tailwind + react‑konva over JASSUB · single‑worker FastAPI · Parakeet
TDT (ASR) · Sortformer (diarization) · Gemma‑4‑12B GGUF (translate + vision) · Qwen3‑TTS · ffmpeg/NVENC.
## Contributing
**Dub Studio is beta and built in the open — your help is genuinely wanted.** Issues, PRs, testing on real
clips, and model recipes are all welcome; good‑first‑issues are labeled, and I aim to respond within 24 h.
**On the roadmap — great places to jump in:**
- **Swappable modules** — make ASR / LLM / vision / TTS fully pluggable, so anyone can wire in their own
model and configure the whole pipeline end‑to‑end. This is the big one.
- Smarter on‑screen‑text localization — colour / contrast matching on tricky backgrounds.
- More voice packs, caption presets, and target languages.
If any of this is your thing, open an issue to claim it — I'm happy to help you get set up.
## License
The app is open‑source; bundled models keep their own licenses (audited before each release).
---
## More portable neural nets by the author
| Project | What it does |
|---|---|
| [Foundation Music Lab](https://github.com/timoncool/Foundation-Music-Lab) | Music generation + timeline editor |
| [VibeVoice ASR](https://github.com/timoncool/VibeVoice_ASR_portable_ru) | Speech recognition (ASR) |
| [LavaSR](https://github.com/timoncool/LavaSR_portable_ru) | Audio super‑resolution |
| [Qwen3‑TTS](https://github.com/timoncool/Qwen3-TTS_portable_rus) | Text‑to‑speech (Qwen) |
| [SuperCaption Qwen3‑VL](https://github.com/timoncool/SuperCaption_Qwen3-VL) | Image captioning |
| [VideoSOS](https://github.com/timoncool/videosos) | In‑browser AI video production |
| [RC Stable Audio Tools](https://github.com/timoncool/RC-stable-audio-tools-portable) | Music & audio generation |
## Author
- **Nerual Dreming** ([t.me/nerual_dreming](https://t.me/nerual_dreming)) — [neuro-cartel.com](https://neuro-cartel.com) · founder of [ArtGeneration.me](https://artgeneration.me)
- **Neuro‑Soft** ([t.me/neuroport](https://t.me/neuroport)) — portable repacks of neural nets
---
> **If this is useful, drop a ⭐ — it helps others find the project and keeps it moving.**
## Support the Author
I build open-source software and do AI research. Most of what I create is free and available to everyone. Your donations help me keep creating without worrying about where the next meal comes from =)
**[All donation methods](DONATE.md)** | **[dalink.to/nerual_dreming](https://dalink.to/nerual_dreming)** | **[boosty.to/neuro_art](https://boosty.to/neuro_art)**
- **BTC:** `1E7dHL22RpyhJGVpcvKdbyZgksSYkYeEBC`
- **ETH (ERC20):** `0xb5db65adf478983186d4897ba92fe2c25c594a0c`
- **USDT (TRC20):** `TQST9Lp2TjK6FiVkn4fwfGUee7NmkxEE7C`
## Star History