Hermes Skill subtitle-quality-check 如何找出 SRT 和 WebVTT 字幕問題
Your captions flash by too fast. Here is how to find every bad cue
Robin Beraud-Sudreau 開源了 Hermes Skill subtitle-quality-check,可逐條檢查 SRT 或 WebVTT 字幕的閲讀速度、行長、顯示時長、重疊及多餘雙空格。
You export subtitles from your editor, upload them, and a week later someone comments that they cannot read the text before it disappears. Auto-generated captions are the usual culprit: some cues are crammed with words, some stay on screen for a third of a second, and some overlap the next one.
Checking by eye means rewatching everything. Most people skip it.
I wrote a small Hermes skill called subtitle-quality-check that does the boring part. Point it at an SRT or WebVTT file and it reports, cue by cue, where the problems are: reading speed too high, lines too long for the screen, cues that are on screen too briefly or too long, overlaps, and stray double spaces. It runs locally, needs no account and no API key.
The second half is the agent's job. Given the report, it proposes fixes: shorten the wording, split a long cue at a natural pause, merge two tiny ones, move a start time. It shows you before and after, and saves a new file instead of overwriting yours.
A tiny example:
cue 2 (00:03.00) too-short: 0.40s on screen (min 1.0)
cue 3 (00:03.30) line-too-long: 77 chars
cue 3 (00:03.30) overlap: starts 0.10s before previous cue ends
The limits are adjustable (shorter lines for vertical video, say). They are rules of thumb, not platform rules.
It checks form, not accuracy: a misheard word will still slip through, so give the text a quick read yourself.
It is open source (MIT) in hermes-skills.
Skill (MIT): https://github.com/RobinBeraud/hermes-skills/tree/main/content-creation/subtitle-quality-check
All skills: https://github.com/RobinBeraud/hermes-skills
This post was written with AI assistance and reviewed through automated checks.
來源:DEV Community · dev.to