subtitle-translate
Use when translating subtitles/captions to another language and/or generating + exporting SRT/VTT/ASS for a media-studio video — including bilingual (stacked) subs and the audio-dub (TTS) path. Covers the tiered local→hosted MT engine (TranslateGemma GGUF via llama.cpp, language-aware routing +.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- subtitle-translate
- description
- Use when translating subtitles/captions to another language and/or generating + exporting SRT/VTT/ASS for a media-studio video — including bilingual (stacked) subs and the audio-dub (TTS) path. Covers the tiered local→hosted MT engine (TranslateGemma GGUF via llama.cpp, language-aware routing +.
03 SKILL.md 正文
Subtitle translate / generate / export (+ dub)
This skill is distilled from the REAL media-studio implementation. Every command, field name, model id, and gotcha below is taken from these source files (read them when in doubt):
media_studio/features/subtitles.py— the pure track logic:generate,edit,translate,export,stack_bilingual, and the SRT/VTT/ASS serializers + parsers + timestamp helpers.media_studio/models/translation.py— the TieredTranslator MT engine (tier1/tier2 local GGUF + tier3 hosted), language routing, fallback chain.media_studio/handlers/media_ops.py— the RPC wire shapes (subtitles.generate/edit/export/translate).media_studio/features/tts/dub.py— the audio-dub pipeline (tts.dub.start).media_studio/features/ctc_align.py— word-timing forced alignment (karaoke).media_studio/features/caption.py— ASS document build + ffmpeg burn/soft-mux argv.media_studio/features/transcribe.py— faster-whisper (upstream source of cues).
The frozen schemas (CONTRACTS.md §3, identical on both sides):
Word = {text, start, end}
Segment = {start, end, text, words:[Word]}
Transcript = {language, segments:[Segment], durationSec}
Cue = {index, start, end, text} # +optional speaker / emphasis / emoji
SubtitleTrack = {id, lang, name, format, kind:"soft"|"hard", cues:[Cue]}
FORMATS = ("srt", "ass", "vtt") (subtitles.py:44). "ssa" is normalized to
"ass" (_normalize_format, subtitles.py:753).
RPC surface (what the UI actually calls)
Recipe A — translate an existing track
The tiered MT engine (the actual translation model)
Bilingual (stacked) subtitles
Recipe B — generate a track from a transcript
Recipe C — export to SRT / VTT / ASS
Recipe D — burn or soft-mux captions (caption.py)
Recipe E — audio dub (TTS) path
Pitfalls that actually bite
GPU + Hugging Face model notes
Worked example
1. Build the tiered translator (handler does this via translation.get_translator;
here we show the pure call). settings carries cloudApiKey/localBaseUrl etc.
04 同仓库更多 Skills
clarify-requirements
Resolve genuine pre-execution ambiguity by scanning repo context, generating 1-6 grounded options, and asking 1-3 focused questions via AskUserQuestion. NOT for mid-task use (injection risk); NOT when the goal is already unambiguous; use to disambiguate vague prompts before any file edits.
openmm-md
Run FREE, open-source, Windows-native GPU molecular dynamics via the openmm-md MCP (OpenMM + CUDA on the local NVIDIA GPU). Use for protein / protein-ligand MD when you want a free stack or are on Windows without a Schrodinger license. Covers the full workflow (prepare, solvate, minimize, equilibrate, production, analyze, mmgbsa) AND an honest decision guide vs Schrodinger Desmond, including how to run Desmond legitimately on Linux or a cloud GPU with a real license. This is a deliberately LESSER free alternative and does NOT replace the schrodinger MCP tools. Do NOT use it to pick a free tool when a validated FEP+, WaterMap, IFD-MD, or Prime MM-GBSA result is actually required.
visual-review
Take screenshots of web pages and UI using Playwright for visual review and iteration
status
Diagnostic status report — shows metaswarm installation state, project setup, and potential issues
start
Use when starting work on any task, when the user mentions metaswarm, or when the user wants to begin tracked development work
setup
Interactive project setup — detects your project, configures metaswarm, writes project-local files