YouTube multi-language audio tracks from your subtitles, in your own cloned voice

youtube-multi-language-audio is an open-source Python command-line tool that turns translated subtitle files (SRT/VTT) and the original video into dubbed audio tracks for YouTube's multi-language audio feature. It voices every subtitle cue in a cloned voice, fits each line into its cue's time slot, and exports one upload-ready track per language, exactly as long as the video, with re-timed captions and a YouTube Studio checklist. A self-hosted alternative to YouTube auto dubbing. Code on GitHub (MIT).

youtube-multi-language-audio demo: a Spanish video dubbed into English and German audio tracks with two cloned voices, each line inside its subtitle cue

Listen: real demo output

An 11.3 s Spanish two-person clip, dubbed from translated subtitles labelled [Marco] and [Lucia]. Each speaker has a cloned voice (CMU ARCTIC reference clips).

English dub tracksynced English SRT
German dub track

Quick start

export MIRAGEA_API_KEY=...   # https://miragea.ai/workspace/api
uvx --from git+https://github.com/RTY2345RR/youtube-multi-language-audio ytmla dub \
  my-video.mp4 my-video.es.srt my-video.de.srt my-video.pt-BR.srt --voice my-voice.wav

Then follow UPLOAD-CHECKLIST.md: YouTube Studio → Languages → Add language → Dub → upload the track. Using an AI agent? Install https://miragea.ai/skills/miragea-audio/install.md

How it works

Workflow: inputs, parse and label speakers, clone and voice each line, fit each cue, export one track per language, upload in YouTube Studio

Features

Comparison

youtube-multi-language-audioAuto-Synced-Translated-DubsYouTube auto dubbing
TranslationYours (any tool)Google Cloud / DeepLYouTube, automatic
VoiceCloned, one per speakerStock Azure / Google TTSYouTube's AI voices
Resume, fit checkYesNon/a
LicenseMITAGPL-3.0Proprietary

FAQ

How do I add multiple audio tracks to a YouTube video?

In YouTube Studio open Languages, choose the video, click Add language, then next to Dub click Add and select an audio-only file roughly as long as the video. youtube-multi-language-audio creates those files, one per language, plus a checklist.

Can the YouTube API upload multi-language audio tracks?

No. The public YouTube Data API v3 cannot add audio tracks, so upload is a manual step in YouTube Studio. This tool stops at upload-ready files and a checklist.

Who can use YouTube multi-language audio?

YouTube says the feature is available to creators with access to Advanced features. If an automatic dub already exists for a language, delete it before uploading your own track.

Is this an alternative to YouTube auto dubbing?

Yes. You bring the translation and the dub uses your own cloned voice (or one per speaker), so the channel keeps sounding like you.

How does it keep the dub in sync?

Each line starts at its subtitle cue and must end before the next one. Long lines are voiced again at a faster speaking speed, then stretched with pitch preserved up to a limit; anything left over is reported so you can shorten it.

What file does it produce for YouTube?

One audio-only M4A (AAC, 48 kHz) per language, padded to the exact video length and named by language code, plus re-timed SRT captions and a preview MP4. WAV, MP3 and FLAC are optional.

Related

Voices by the Miragea voice-cloning engine. Demo reference voices: CMU ARCTIC (bdl, slt), © Carnegie Mellon University, free for any use.