Skip to content
Content
Skill

/video-translation

Translate and dub videos from one language to another, replacing the original audio with TTS while keeping the video intact.

From plugin
noizai-skills
53210 skills

Claude Code

$ npx -y skills add noizai/skills --skill video-translation --agent claude-code

SKILL.md

video-translation.SKILL.md
name: video-translation
description: Translate and dub videos from one language to another, replacing the original audio with TTS while keeping the video intact.

Video Translation

Translate a video's speech into another language, using TTS to generate the dubbed audio and replacing the original audio track.

Triggers

  • translate this video
  • dub this video to English
  • 把视频从 X 语译成 Y 语
  • 视频翻译

Use Cases

  • The user wants to watch a foreign language YouTube video but prefers to hear it in their native language.
  • The user provides a video link and explicitly requests changing the audio language.

Workflow

When the user asks to translate a video:

1. **Download Video & Subtitles**: Use the `youtube-downloader` skill to download the video and its subtitles as SRT. Make sure you specify the source language to fetch the correct subtitle.

   python path/to/youtube-downloader/scripts/download_video.py "VIDEO_URL" --subtitles --sub-lang <source_lang_code> -o /tmp/video-translation

2. **Translate Subtitles**: Read the downloaded `.srt` file. Translate its contents sentence by sentence into the target language using the following fixed prompt. Keep the exact same SRT index and timestamp format!

**Translation Prompt**: > Translate the following subtitle text from <Source Language> to <Target Language>. > Provide ONLY the translated text. Do not explain, do not add notes, do not add index numbers. > The translation must be colloquial, natural-sounding, and suitable for video dubbing.

Save the translated text into a new file `translated.srt`.

3. **Generate Dubbed Audio**: Use the `tts` skill to render the timeline-accurate audio from the translated SRT. The Noiz backend automatically aligns the duration of each sentence to the original video's subtitle timestamps.

To ensure the cloned voice matches the original speaker's exact tone and emotion for each sentence, pass the original video file to `--ref-audio-track`. The TTS engine will automatically slice the original audio at each subtitle's exact timestamp and use it as the reference for that specific segment.

Create a basic `voice_map.json`:

   {
     "default": {
       "target_lang": "<target_lang_code>"
     }
   }

Render the timeline-accurate audio:

   bash skills/tts/scripts/tts.sh render --srt translated.srt --voice-map voice_map.json --backend noiz --auto-emotion --ref-audio-track original_video.mp4 -o dubbed.wav

4. **Replace Audio in Video**: Use the `replace_audio.sh` script to merge the original video with the new dubbed audio. To keep the original video's non-speech audio background outside of translated segments, pass the `--srt` file.

   bash skills/video-translation/scripts/replace_audio.sh --video original_video.mp4 --audio dubbed.wav --output final_video.mp4 --srt translated.srt

5. **Present the Result**: Return the `final_video.mp4` file path to the user.

Inputs

  • **Required inputs**:
  • `VIDEO_URL`: The URL of the video to translate.
  • `target_language`: The language to translate the audio to.
  • **Optional inputs**:
  • `source_language`: The language of the original video (if not auto-detected or specified).
  • `reference_audio`: Specific audio file/URL to use for voice cloning instead of the dynamic original video track.

Outputs

  • Success: Path to the final video file with replaced audio.
  • Failure: Clear error message specifying whether download, TTS, or audio replacement failed.

Requirements

  • **Dependencies (other skills)**
  • **youtube-downloader** ([crazynomad/skills](https://github.com/crazynomad/skills)) — [SKILL.md](https://github.com/crazynomad/skills/blob/master/youtube-downloader/SKILL.md)

Install: clone or copy the `skills/youtube-downloader` directory from [crazynomad/skills](https://github.com/crazynomad/skills) into your `skills/` folder so that `skills/youtube-downloader/scripts/download_video.py` is available.

  • **tts** ([NoizAI/skills](https://github.com/NoizAI/skills)) — [SKILL.md](https://github.com/NoizAI/skills/blob/main/skills/tts/SKILL.md)

If not already in this repo: clone or copy the `skills/tts` directory from [NoizAI/skills](https://github.com/NoizAI/skills) into your `skills/` folder. Ensure `skills/tts/scripts/tts.sh` and related scripts are present.

  • `NOIZ_API_KEY` configured for the Noiz backend. If it is not set, first guide the user to get an API key from `https://developers.noiz.ai/api-keys`. After the user provides the key, ask whether they want to persist it; if they agree, either write/update `NOIZ_API_KEY=...` in the project's `.env` file or run `bash skills/tts/scripts/tts.sh config --set-api-key YOUR_KEY` to store it.
  • `ffmpeg` installed.

Limitations

  • The source video must have subtitles (or auto-generated subtitles) available on the platform for the source language.
  • Very long videos may take a significant amount of time to translate and dub.
Read more
@noizai
Ships withnoizai-skills

Central repository for managing Skills to "human" vibe-talking.

Stars on GitHub

Momentum

stars in total
532
Star history of noizai/skills on GitHub, a chart by star-history.com

Other skills on noizai-skills.

characteristic-voice

characteristic-voice

Use this skill whenever the user wants speech to sound more human, companion-like, or emotionally expressive. Triggers include:…

chat-with-anyone

chat-with-anyone

Chat with any real person or fictional character in their own voice by automatically finding their speech online, extracting a…

daily-news-caster

daily-news-caster

Fetches the latest news using news-aggregator-skill, formats it into a podcast script in Markdown format, and uses the tts skill…

music-video

music-video

Build a music video from an existing song and lyrics, either as p5.js/p5.brush animation or by assembling local images and clips.…

sound-fx

sound-fx

Use this skill whenever the user wants to generate sound effects, ambient audio, or short audio clips from a text description.…

speech-to-text

speech-to-text

Use this skill whenever the user wants to transcribe audio to text, convert speech to text, or get a transcript from an audio or…

More skills from other plugins.

prompt-lookup

prompt-lookup

Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use…

@gh-f@gh-fInstall Skill
ppt-master

ppt-master

AI-driven presentation workflow for generating editable PPTX decks and slides, reconstructing page visuals, creating reusable…

@hugohe3@hugohe3Install Skill
morph-ppt

morph-ppt

Use this skill when the user wants a .pptx with smooth cross-slide animation — PowerPoint Morph transitions, Keynote-style…

officecli11d33k
@iofficeai@iofficeaiInstall Skill

Questions about video-translation.

Which coding agents can use video-translation?
video-translation installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.