计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
outputs-subtitles【效率与协作】Use WhisperX output writers and subtitle post-processing without running ASR models.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when you already have a WhisperX-style transcript result and need to validate it, write output files, or tune subtitle post-processing. It covers the txt, json, tsv, srt, vtt, and Audacity label writer surfaces, speaker prefixes, word highlighting, line width/count behavior, complex-script splitting, timestamp formatting, and safe synthetic rendering.
Do not use this sub-skill to create transcript results from audio or models. Route ASR/model loading to asr-python-api, forced word timestamps to alignment-timestamps, speaker assignment to diarization-speakers, and CLI command construction to transcription-cli.
references/output-formats.md: use for get_writer, writer classes, output extensions, writer options, timestamp styles, and speaker prefix behavior.references/subtitle-processing.md: use for SubtitlesWriter.iterate_result, SubtitlesProcessor, word highlighting, line wrapping, language-without-spaces behavior, conjunction/comma splitting, and missing-word-timing fallback.references/data-formats.md: use before handing a result dict or JSON file to a writer; includes the minimal WhisperX result schema and writer-read fields.references/troubleshooting.md: use when output rendering fails, subtitle cues look wrong, word highlighting is absent, speaker labels are unexpected, Audacity labels do not import as expected, or timestamps appear in the wrong style.scripts/validate_transcript_json.py: run this on a transcript JSON file before writing outputs; it checks the minimal WhisperX result shape and can require word timestamps for highlighting-ready subtitles.scripts/render_sample_outputs.py: render a tiny in-memory transcript or a provided transcript JSON through whisperx.utils.get_writer; it never calls ASR, alignment, diarization, model downloads, credentials, or audio decoding.language and segments fields. See references/data-formats.md.python scripts/validate_transcript_json.py transcript.json
words[].start/words[].end for highlight_words=True;max_line_width whenever max_line_count should matter.references/output-formats.md.Render speaker-labeled SRT, VTT, and JSON from an in-memory sample without model execution:
python scripts/render_sample_outputs.py --formats srt,vtt,json --highlight-words
Diagnose missing word timestamps while still producing segment-level subtitle cues:
python scripts/render_sample_outputs.py --sample missing-word-timings --formats srt,vtt --highlight-words