How AI dubbing works: your video in another language, in your own voice
A simple, step-by-step look at how an open-source app dubs a video on your laptop. It splits the sound, writes down the words, translates them, and speaks them in your cloned voice.
Kevin PatelAI Solutions Engineer· 5 min read

About 1.53 billion people speak English. That sounds like a lot, but it's only about 1 in 5 people in the world (Ethnologue 2025). So if you post only in English, most people who find your video can't follow it.
AI dubbing fixes that. You give it a video, and you get the same video back in another language, spoken in your own voice. This week an open-source app that does this on a normal laptop, VoiceStudio (opens in a new tab), passed 122,000 stars on GitHub.
I wanted to know what actually happens inside, so I read its docs. Here's how it works, one step at a time, in plain words.
The whole process in one picture
Dubbing isn't one AI. It's six small steps, each with its own tool. Each step does one simple job and hands its result to the next.
Let's walk through them with one real line from a video: "This bag is made by hand from one piece of leather."
Step 1: Split the sound
Your video's sound is your voice and the background music, mixed together. If the app translated it as it is, your music would be lost.
So first it uses Demucs (opens in a new tab), an AI model from Meta that splits a sound file into parts. You get two files: one with only your voice, and one with only the music and room sound. The music is kept aside for the end.
The app also makes two copies of the audio. One is small and simple (16 kHz, mono) and is easy for the speech model to read. The other is high quality (44.1 kHz, stereo) and is used for the final sound.
Step 2: Write down the words, with times
Next, a speech-to-text model listens to your voice and writes down what you said. VoiceStudio uses faster-whisper (opens in a new tab), a faster version of OpenAI's Whisper model.
The important part isn't only the words. It's the times. Every line comes out with a start and an end, like a subtitle file:
#4 00:00:03.2 --> 00:00:06.0
This bag is made by hand from one piece of leather.These times are the backbone of the whole dub. Every new line has to fit back into the same time slot, or the voice won't match the picture.
Step 3: Translate, line by line
Now each line is translated. You can pick how:
- Offline, fast. Translation models like Argos (opens in a new tab) or Meta's NLLB-200 run on your own computer. No internet, no account.
- With an AI chat model (LLM). A local model through Ollama (opens in a new tab), or your own ChatGPT, Claude or Gemini key. This sounds more natural.
The LLM mode has two smart extras. First, it reads the whole script once and makes a glossary, a short list of names and terms, so your product name is translated the same way in line 3 and line 300. Second, a reflect pass: the AI checks its own translation and rewrites it to sound like real speech, not a textbook. That takes 3 AI calls per line instead of 1, so it's slower.
Step 4: Speak it in your voice
This is the part people find magic. VoiceStudio's default voice model is OmniVoice (opens in a new tab). Its paper says it was trained on 581,000 hours of speech in more than 600 languages.
The trick is called zero-shot cloning. "Zero-shot" means the model is not trained on your voice at all. You give it a short clip of you talking (5 to 15 seconds is best) and the words you said in it. The model uses that clip as a hint for how you sound: your tone, your pitch, your pace. Then it says the new Spanish line in that style.
That's why it works in seconds, not hours. It's also why it isn't perfect. Paid "professional" voice clones, like ElevenLabs' Professional Voice Clone, are trained on 30 minutes or more of your speech and catch more emotion. A 15-second clip can copy your sound, but not every habit of your voice.
Step 5: Make it fit the time
Here's a problem nobody thinks about. The same sentence in another language is often longer. Spanish is usually longer than English.
So before making any voice, the app predicts how long each translated line will take to say. It starts with a table of how fast each language is usually spoken. Then it corrects itself using the lines it has already made in your voice.
If a line won't fit, the Autofit mode asks the AI to rewrite it shorter with the same meaning. If it's still a little long, the app speeds the voice up slightly and marks that line "Tight fit" so you can check it. Its Smart Fit option can instead slow the video down a tiny bit at that moment.
Step 6: Mix and export
Last, the new voice is laid back over the music from Step 1, and everything is saved as a new MP4.
An MP4 file can hold more than one audio track. VoiceStudio keeps your original voice and adds the dub as a second track, each labelled with a three-letter language code (eng, spa). The dub is set to play first. You can also burn the subtitles into the picture.
One catch: Instagram and most social apps play only one track. So for Reels, export one video per language.
Why it runs on a laptop now
Each model in the chain is small enough for a normal computer. OmniVoice has 0.6 billion parameters (the "size" of an AI model), which is small for a voice model. The app says about 8 GB of RAM is enough to start, and a graphics card with about 6 GB of memory makes it much faster.
It also saves work. If you fix one line, it remakes only that line and reuses the others.
Quick answers
How does AI dubbing work?
It splits your voice from the music, turns your speech into text with timestamps, translates each line, speaks it in a cloned voice, fits it to the original timing, and mixes it back with the music into a new video.
What is zero-shot voice cloning?
The model copies how you sound from a short clip, about 5 to 15 seconds, without being trained on your voice. It works right away but catches less emotion than clones trained on many minutes of speech.
Can I dub videos on my own computer for free?
Yes. VoiceStudio is open source and its app is free with no account needed. About 8 GB of RAM is enough to start, and a graphics card makes it faster.
Why does dubbed speech sometimes sound rushed?
The translated line was longer than the original time slot. Good dubbing tools rewrite the line shorter before speaking, and only speed up the voice slightly as a last step.
Can Instagram play two audio languages in one Reel?
No. Instagram plays one audio track, so post a separate Reel for each language.


