Figures

Figures FIG. 03

Voice-Dub makes you read the transcript first

In a dubbing pipeline, a wrong word in the transcript becomes a wrong translation, a cloned voice saying it, and lips redrawn to match. So the one human check sits before all of that.

· 2 min read · Voice-Dub, speech, pipelines

Dubbing a video into English usually costs the speaker their own voice. Voice-Dub keeps it: each speaker is cloned and the lips are redrawn to the new audio, all with open-source models on one local GPU. The part I care about most is the least impressive one: before any of that runs, you read the transcript.

Every later step trusts the first

The pipeline runs in order. FFmpeg pulls out the audio. faster-whisper large-v3 writes the transcript, pyannote marks who is speaking, and the words are aligned to the timeline. Then SeamlessM4T v2 translates, XTTS-v2 speaks the translation in each speaker's cloned voice, and LatentSync 1.6 redraws the lips.

None of the later steps can tell that a word was heard wrong. A misheard name gets translated, spoken in a convincing voice, and lip-synced. The error gets more believable at every step, and harder to spot in the finished video.

The check sits where it is cheapest

So the pipeline stops after transcription. You check and correct the transcript in a Gradio app, and only then does translation start. Fixing a word there takes seconds. Finding it in the dubbed video means reading lips.

Timing is checked, not hoped for

A dub that runs longer than the original falls out of sync. SeamlessM4T v2 keeps the translation whose length best fits the original timing, within 10%. XTTS-v2 clones each voice from a 6 to 10 second sample and matches the speed to within 5%. If LatentSync fails, Wav2Lip is the fallback.

One GPU, one model at a time

Everything runs locally on one GPU, loading one model at a time; I built it on an RTX 5090 with 32 GB. XTTS-v2 is licensed for non-commercial use only, which limits where this can go. Speed work, batch runs and polish are not done yet.

The general rule I took from it: in any pipeline where each step trusts the one before, put the human check at the first step whose output a person can read.

Questions about FIG. 03

What does Voice-Dub do?

It dubs a video into English in each speaker's own cloned voice and redraws the lips to match, with open-source models on one local GPU.

Why check the transcript first?

Every later step trusts the transcript. A misheard word gets translated, spoken in a cloned voice and lip-synced, so the error only gets harder to spot. Fixing it in the transcript takes seconds.

Which models does it use?

faster-whisper large-v3 for the transcript, pyannote for who is speaking, SeamlessM4T v2 for translation, XTTS-v2 for the cloned voices, and LatentSync 1.6 for the lips, with Wav2Lip as a fallback.

How does it keep the dub in sync?

SeamlessM4T v2 keeps the translation whose length best fits the original timing, within 10%, and XTTS-v2 matches each speaker's speed to within 5%.

What are its limits?

XTTS-v2 is licensed for non-commercial use only, and speed work, batch runs and polish are not done yet.