bakrianoo/mazinger

End-to-end video dubbing pipeline

What it solves

Mazinger Dubber provides an end-to-end pipeline for dubbing videos into different languages. It automates the complex process of downloading a video, transcribing the speech, translating the text, cloning the original speaker's voice (or using a preset), and generating a final dubbed video or audio file while maintaining synchronization with the original timing.

How it works

The system chains ten resumable stages: Download, Transcribe, Thumbnails, Describe, Review, Translate, Re-segment, Speak, Assemble, and Subtitle. It uses voice-activity detection on a vocals stem (separated via Demucs) to create a speech map, ensuring dubbed lines start and end exactly where the original speech did. The pipeline supports various backends for transcription (CohereX, Faster Whisper, Deepgram) and TTS (Qwen3-TTS, OmniVoice), and includes a Gradio-based web UI called Mazinger Studio for visual management and chunk-level editing.

Who it’s for

Content creators, translators, and developers who need to localize video content with high-fidelity voice cloning and precise timing without manually managing multiple separate AI tools.

Highlights

  • One-Command Workflow: Handles everything from video download to final assembly in a single command or via a Web UI.
  • Voice Cloning: Can automatically clone the original speaker's voice from the source video or use pre-defined voice themes and profiles.
  • Precise Synchronization: Syncs dubbed audio to the original speech spans rather than just subtitle slots, preserving original background music and effects.
  • Chunk-Level Editor: Allows users to manually correct transcriptions, translations, or timing for specific segments and re-dub only the changed parts.
  • Flexible Backends: Supports local LLMs via Ollama and multiple transcription engines to balance between privacy, cost, and GPU availability.

Related

  • Project
  • Project
  • Project
  • Project
  • Project