executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
alignment-timestampsGuides WhisperX forced alignment, multilingual alignment model selection, word and character timestamps, and timestamp interpolation troubleshooting.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a task needs WhisperX forced alignment after ASR: selecting a language-specific wav2vec2 alignment model, calling load_align_model and align, producing word or character timestamps, preserving timestamps for digits/symbols, or diagnosing why an aligned result lacks timing fields.
segments and audio arrays/paths and return aligned segments plus word_segments.--align_model, --interpolate_method, and --return_char_alignments.asr-python-api or transcription-cli.diarization-speakers.outputs-subtitles.whisperx.load_align_model, whisperx.align, alignment metadata, result schemas, progress callbacks, or char alignment options.language_code, --language, --align_model, cache-only settings, a custom Hugging Face model, or when handling Japanese/Chinese text without spaces.4,9, mixed alphanumeric words, symbols, or when choosing nearest, linear, or ignore interpolation.punkt_tab, empty segments, timestamps beyond the audio duration, char alignments, and languages without spaces.4,9 receives timestamps without downloading any model.import whisperx
# ASR result creation is owned by asr-python-api; alignment consumes its segments.
model_a, metadata = whisperx.load_align_model(
language_code=result["language"],
device="cpu",
model_name=None, # or a custom wav2vec2 model id/name
model_dir=None, # optional model cache directory
model_cache_only=False,
)
aligned = whisperx.align(
result["segments"],
model_a,
metadata,
audio,
device="cpu",
interpolate_method="nearest", # nearest | linear | ignore
return_char_alignments=False,
)
python scripts/check_alignment_contract.py --help
python scripts/check_alignment_contract.py
python scripts/check_alignment_contract.py --interpolate-method ignore --text "halt mit 4,9 nicht ins parlament" --required-word "4,9" --language de
The helper is a bundled mock-contract check only. It does not validate real acoustic quality, does not download alignment models, and does not replace a real wav2vec2 alignment run when the downstream task requires production timestamps.