真实时间戳字幕
SkillMediaLets your agent generate subtitle files timed to your final narration audio or video, exporting SRT and VTT.
Then ask your AI: use the 真实时间戳字幕 skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add it as a step in a pipeline you build on Ahel, or connect Ahel to Claude, ChatGPT, Cursor, Claude Code or Codex and ask your AI to use it.
About this skill
Generate production subtitle artifacts from the final narration audio or final merged video using Volcengine Doubao ASR word timestamps. Use for local IndexTTS2 videos, Xiaohei page videos, talking-head delivery subtitles, SRT/VTT export, or whenever subtitle timing must match the final audio. Do no
What this skill tells your AI
The instructions your AI receives, as published by pluviobyte/rnskill in skills/ra-audio-to-subtitles/SKILL.md and read by Ahel’s review.
Use the final audio stream as the only timing source. Never estimate final subtitle timing from character count, scene duration, TTS segment duration, or fixed delays.
Required workflow
- Finish and concatenate narration first. If the user recorded or merged a video, use that final merged media instead.
- Run
scripts/generate_subtitles.pyagainst the final media and the exact narration script. - Inspect phrase segmentation. Keep English product/model tokens intact,
merge isolated one-word fragments, and place connectors such as
比如说,但是, and只是with the phrase they introduce. - Render captions from
captions.json; exportcaptions.srtfor Bilibili, YouTube, editing software, and archive. - Require
caption-qc.jsonto reportstatus: passbefore final render or delivery. The gate includes alignment, overlap, fragments, connector splits, caption duration, and reading speed. - If ASR fails or alignment coverage is below the gate, stop. A character- count estimate may be used only for an explicitly labeled scratch preview.
Commands
Project with narration_segments.json:
python3 .claude/skills/ra-audio-to-subtitles/scripts/generate_subtitles.py \
<project>/media/final-voiceover.mp3 \
--script <project>/narration_segments.json \
--out-dir <project>/media/captions
Recorded or merged video with a Markdown handoff containing - 口播: lines:
python3 .claude/skills/ra-audio-to-subtitles/scripts/generate_subtitles.py \
<project>/merged.mp4 \
--script <project>/handoff.md \
--out-dir <project>/media/captions
Health check:
python3 .claude/skills/ra-audio-to-subtitles/scripts/generate_subtitles.py --doctor
Offline regression test with an existing Volcengine response:
python3 .claude/skills/ra-audio-to-subtitles/scripts/generate_subtitles.py \
<audio> --script <script> --asr-result <volcengine-result.json> \
--out-dir <output>
Output contract
The output directory must contain:
asr-result.json: raw Volcengine responsecaptions_words.json: word/character timestamps and detected gapscaptions.json: phrase captions consumed by HyperFrames or Remotioncaptions.srtandcaptions.vtt: portable subtitle filescaption-qc.json: alignment coverage and timing validation
Read references/artifact-contract.md before integrating another renderer or delivery checker.
Hard rules
- Transcribe the exact final audio used by the MP4. Do not transcribe an earlier segment, draft voice, or a differently trimmed file.
- Use the original narration text for display and ASR only for timing. This preserves names, English terms, punctuation, and intentional wording.
- Align the original script to ASR tokens before grouping phrases. Do not scale boundaries by total character count.
- Phrase captions remain the default. Word timestamps are the timing substrate, not a requirement to show karaoke-style one-character captions.
- Preserve meaningful spaces inside English names such as
Claude Max; never split an ASCII product/model token across captions. - Reject captions shorter than 0.5 seconds, isolated fragments, split discourse connectors, and reading speeds above 12 units/s. Treat speeds above 9 units/s as a review warning.
- Keep one canonical caption timeline. Scene changes, keyword reveals, and component cues should look up caption text or timestamps from that timeline.
VOLCENGINE_API_KEYcomes from the workspace root.envor the environment. Never print or copy it into an artifact.- Default resource ID is
volc.seedasr.auc; override only withVOLCENGINE_RESOURCE_IDwhen the account uses a different enabled resource. - Final delivery requires alignment coverage at least 0.90 unless a stricter project contract is set. Lower coverage is a failure, not a warning.
Signals
- GitHub stars
- 2k
- Forks
- 192
- Last commit
- Sep 2026
Ahel review
K6low
bundled executables the agent is told to run
Automated review, not a security audit. Ruleset v1+k2.
Advanced
- Item type
- skill
- Key
ra-audio-to-subtitles- Source
- github.com/pluviobyte/rnskill