Video Translation

SKILL前端设计
前端设计 未标注权限 许可证不明确
安装这个技能

将视频翻译并配音,使用 TTS 替换原声,保持视频画面不变。

累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

ClawHub 市场
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install clawhub_babysor/video-translation

技能档案

前端设计
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方clawhub_babysor仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式ClawHub 市场安装包 clawhub
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791737277
正文体量4.5 KBSKILL.md 原文大小,越大说明说明书写得越细

SKILL.md 全文

4.5 KB
模型实际读到的说明书原文,来自技能仓库

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.
    bash 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.

  1. 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:
json { &quot;default&quot;: { &quot;target_lang&quot;: &quot;&lt;target_lang_code&gt;&quot; } }
Render the timeline-accurate audio:
bash 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

  1. Replace Audio in Video:
    Use the replace_audio.sh script to merge the original video with the new dubbed audio.
    bash bash skills/video-translation/scripts/replace_audio.sh --video original_video.mp4 --audio dubbed.wav --output final_video.mp4

  2. 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) — 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.
  • NOIZ_API_KEY configured: bash skills/tts/scripts/tts.sh config --set-api-key YOUR_KEY
  • 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.

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。