Blog

Keep background music when dubbing a video

To dub a video into another language but keep the background music, separate the voice from the music first, replace only the speech, and mix the new voice back over the original music. OpenDub (opendub.app) does all three for you: in the OpenDub app on your computer, choose Replace the voice, and the music and effects stay while only the speech changes. In the browser on a computer, with your own Higgs Audio or ElevenLabs key, the card removes the original voice on your device in the same way, for videos up to five minutes. With the free stock voice in the browser the voice is not separated: the music stays, and the original voice is turned down under the new one.

A dubbed video should have new words and the same soundtrack. If the whole audio track is replaced, the music and effects go with the old voice. OpenDub replaces only the speech. This is how it keeps the rest.

Step by step: dub a video and keep the background music

  1. Open OpenDub. The app on your computer has no length limit; the card at the top of opendub.app dubs videos up to five minutes.
  2. Choose the video. An MP4, MOV or WebM file on your device. Its language is detected automatically.
  3. Choose the language to dub into. One of the 17 OpenDub dubs into.
  4. Choose a voice that clones the speaker. OmniVoice in the app, free for non-commercial use, or your own Higgs Audio or ElevenLabs key.
  5. Keep the music. In the app, choose Replace the voice. In the browser on a computer with a key, the original voice is removed on your device; the separator downloads once.
  6. Start the dub and download it. You get the dubbed MP4 with the music in place, the dub audio as WAV and subtitles as SRT.

Separate first

The first step of a dub is separation. Demucs splits the voice from the music and effects. That does two things: the soundtrack survives the dub, and every later step hears a clean voice, which matters for transcribing the words and for cloning the speaker.

Separation runs on your own device, like speech detection, word timing, mixing and rendering. The video file never leaves it.

Two modes: replace the voice, or voice-over

  • Replace the voice keeps the music and effects and swaps only the speech.
  • Voice-over leaves the original faintly underneath.

Replace the voice is the one to use when the video has background music you want to keep and you do not want to hear the original speaker under the new one.

Mixing the new voice back in

At the end, the new voice goes over the music, matched to the original's loudness. Subtitles are timed to the dubbed voice and burned in.

Each line is also made to fit the moment it replaces. Translations get a character budget sized to how long the speaker took to say the line, and a spoken line more than 15% longer or shorter than the original is tried again, then stretched between 0.75× and 1.3×. So the new speech starts and ends where the old speech did, over the same music.

In the browser

The card at the top of opendub.app dubs videos up to five minutes in your tab. On a computer, with your own Higgs Audio or ElevenLabs key, it removes the original voice on your device, keeps the music and swaps only the speech; the voice separator, 172 MB, downloads once. If the browser has no WebGPU, removing the voice runs on the CPU and can take a long time.

With the free stock voice, on a computer or an Android phone, and on phones in general, the voice is not separated, to leave memory for the rest of the dub. The music is still there, and the original voice is turned down under the new one rather than removed. For a clean result with the music kept, use the app on your computer or a key on a computer.

In the app on your computer

The app on your computer has no length limit, and the voice is removed faster. It is also where the free OmniVoice voice runs; OmniVoice's model weights are licensed for non-commercial use only. With Higgs Audio or ElevenLabs you use your own API key and pay that provider directly.

What you get

The app gives you the dubbed MP4, the dub audio as WAV, subtitles in both languages as SRT, and the clip the voice was cloned from. OpenDub is open source under AGPL-3.0-or-later, so the separation and mixing steps are code you can read in the repository.

Questions

How do I dub a video into another language but keep the background music?

Separate the voice from the music, replace only the speech, and mix the new voice back over the music. In OpenDub, choose Replace the voice in the app on your computer, or dub in the browser on a computer with your own Higgs Audio or ElevenLabs key; both keep the music and effects and swap only the speech.

Does the free voice in the browser keep the music?

Yes, but it does not remove the original voice: the music stays and the original voice is turned down under the new one.

Is there a length limit?

Up to five minutes in the browser. The app on your computer has no length limit; see AI dubbing for long videos.

Is my video uploaded to separate the music?

No. Separation runs on your own device, in the browser or in the app. With a cloud voice, only speech clips and text go to that provider.

Is there a watermark?

No. OpenDub adds no watermark and no logo; the only thing drawn on the picture is the subtitles.

This is the same AI dubbing as on the OpenDub home page.

The music is kept the same way whatever the language. For the steps for one language pair, see translate video to English, Hindi, Spanish, French or Chinese, or the video language changer for any other pair.

Related reading

Dub a video on opendub.app · All posts