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:
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.
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 to .
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.
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.
youtube-downloader (crazynomad/skills) — SKILL.md
Install: clone or copy the skills/youtube-downloader directory from crazynomad/skills into your skills/ folder so that skills/youtube-downloader/scripts/download_video.py is available.
tts (NoizAI/skills) — SKILL.md
If not already in this repo: clone or copy the skills/tts directory from NoizAI/skills into your skills/ folder. Ensure skills/tts/scripts/tts.sh and related scripts are present.