add-subtitles-srtlisted
Install: claude install-skill huodebing-alt/Agentic-Headshot-Video-Studio
# Add SRT Subtitles / SRT 字幕
## When to use / 何时使用
YouTube, Vimeo, or any platform that consumes SRT separately. Subtitles remain toggleable.
YouTube、Vimeo 等接受独立 SRT 的平台;字幕可关。
## Inputs / 输入
- `workspace/voice/master.cues.json`.
- `workspace/script/segments/seg_*.md`.
## Output / 输出
- `workspace/subtitles/master.srt` (CRLF, UTF-8 BOM).
## Steps / 步骤
1. For each segment, split text into ≤ 42-char lines.
2. Distribute lines across the segment's duration using per-word timestamps if available, else linear.
3. Write SRT with `1`-indexed entries.
## Examples / 示例
```
claude run add-subtitles-srt
```
## Failure recovery / 失败回退
- If no per-word timestamps, fall back to AssemblyAI forced alignment.
- If line breaking yields > 2 lines per entry, reduce char limit.