技能图谱SKILLSGROVE
技能图谱/视频制作/sonpiaz/kyma-dub/kyma-dub

kyma-dub

安装

$npx skills add https://github.com/sonpiaz/kyma-dub --skill kyma-dub
$git clone --depth 1 https://github.com/sonpiaz/kyma-dub.git /tmp/kyma-dub && mkdir -p ~/.claude/skills && cp -r /tmp/kyma-dub/. ~/.claude/skills/kyma-dub
请帮我安装这个 Agent Skill:https://github.com/sonpiaz/kyma-dub/tree/87f2a95878677ebc9067f023ae236c69f253381f/ ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MITDub a video into another language with a natural, time-aligned AI voiceover, all on one Kyma key. Use when the user wants to translate/dub a video (e.g. Vietnamese talk -> English voiceover), asks to "lồng tiếng", "dub this", "voiceover in English", or hands you an mp4 and a target language. Also use to discover/recommend voices and translation models. Keeps narration synced to the original timing.
以下 SKILL.md 内容转载自 sonpiaz/kyma-dub(提交 87f2a95),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2026 Son Piaz 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

kyma-dub

Time-aligned AI video dubbing. Transcribes a video, translates it to the target language fitted to the original timing, speaks it in a natural voice, and muxes the new audio over the original video. Transcribe + translate + voice all run through one Kyma key.

When to use

  • "dub this video to English", "lồng tiếng tiếng Anh", "make an English voiceover"
  • User hands an mp4 + a target language and wants the audio replaced.
  • User asks which voice or model to use → use the discovery commands below.

Best for narration / presentation / b-roll. It replaces audio only (no lip-sync) — for talking-head where mouths must match, flag that tradeoff.

Discover BEFORE you recommend (important — stay current)

Models and voices on Kyma change over time. Do NOT recommend from memory or from this file's examples — query the live catalog so your suggestion is always current and matched to the user:

kyma-dub models --json          # translation-capable models on Kyma right now
kyma-dub voices --json [--gender female --age young --use-case social_media --library]
kyma-dub preview <voice|id>     # synth a sample so the user can hear it
kyma-dub recommend --for "young female, energetic, for TikTok" --smart
kyma-dub whatsnew               # what models/voices Kyma added since last check

When the user's voice/model preference is unclear, ask their target audience (gender, age, vibe, platform), then run kyma-dub voices / recommend to surface 2-3 fitting voices and offer kyma-dub preview so they can listen. Voice labels available: gender, age, accent, use_case, descriptive, language.

Dub

kyma-dub <video> [--from <lang>] [--to <lang>] [--voice <name|id>] [--model <id>] [--tts kyma|elevenlabs] [--max-speed <n>] [--chunk-sec <n>] [--allow-voice-fallback] [--out <path>]

Examples:

kyma-dub talk.mp4                          # auto -> English, voice charlie
kyma-dub talk.mp4 --to es --voice rachel   # dub to Spanish
kyma-dub talk.mp4 --voice <id-from-voices>

Built-in voice aliases: charlie (default), will, liam, brian, rachel, adam, jessica — or any voice id from kyma-dub voices.

Subtitles

Generate translated .srt / .vtt (no audio change), or bilingual burned-in captions:

kyma-dub subs <video> [--to <lang>] [--format srt|vtt|both]      # subtitle file
kyma-dub <video> --bilingual --burn                              # dub + burn EN-on-top / source-below captions
kyma-dub subs <video> --bilingual --burn                        # bilingual captions on a non-dubbed video

--bilingual shows the target language on top and a cleaned-up original below (smaller, dimmer). --burn renders captions into the video — needs a libass ffmpeg; if missing, run kyma-dub setup-ffmpeg (downloads a static one to ~/.kyma-dub/bin/).

How it works

extract audio → transcribe with timestamps → group by speech pauses → translate each chunk fitted to its seconds → TTS (engine locked once per job so the voice never changes mid-video) → speed each clip ONLY up to fit its slot (never slowed — leftover time is a natural pause) → reassemble on the original timeline → mux into the video.

Routing & fallback

Default: transcribe + translate + TTS all on one Kyma key (eleven-v3). Engine chain (locked at job start): Kyma eleven-v3 → Kyma eleven-multilingual-v2 → ElevenLabs v3 direct → v2 direct (all voice-preserved) → Kyma minimax-speech-hd (voice CHANGES, only with --allow-voice-fallback). --tts elevenlabs flips to ElevenLabs-direct first.

Keys

KYMA_API_KEY runs everything. ELEVENLABS_API_KEY optional (direct TTS). Read from ./.env, ~/.config/kyma-dub/env, or ~/kyma-api/.env.

Notes

  • Default translation model: qwen-3.7-max (override with --model; see kyma-dub models for current options).
  • Output defaults to <name> [<LANG> dub].mp4 next to the source.
查看许可证全文(MIT)
MIT License

Copyright (c) 2026 Son Piaz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.