agentleFS
ilyass-oailyass-oa/story-video-studio/skills/03-timing-alignment/SKILL.md

03-timing-alignment

Skill4 starsChanged 2 months agoMITView on GitHub

Get word-level timestamps for the narration (WhisperX forced alignment against the exact script) and fix alignment problems. Use after any new or changed narration, or when words appear on screen too early/late.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before alignment, ./sv voice has already verified each take against the script (the same two-pass transcription: a word counts as said if …

    line 17

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

03 · Timing & alignment

./sv align <slug> → 03-timing/words.json: every script word with start/end in ms from the start of narration.wav, a source (forced | rough | interpolated) and a score.

How it works: faster-whisper transcribes twice (primed with the script, and unprimed — priming makes Whisper skip passages, no priming garbles fast speech; together they are reliable) → the script is matched to the rough words (timings from the unprimed pass) → WhisperX wav2vec2 aligns each script sentence inside its window → a word stretched back over a dramatic pause is snapped to the real onset of the voice → any word still missing is interpolated and reported. Nothing is invented silently.

Before alignment, ./sv voice has already verified each take against the script (the same two-pass transcription: a word counts as said if either pass heard it) and re-taken it if a word was skipped or changed or a [tag] was read aloud.

Read the report

  • script match 100% → the voice said exactly the script. Anything below 100 % → a word was skipped or changed: listen to it, re-voice (never patch timings around a wrong word).
  • issues → words that needed fallback timing; usually harmless for one-syllable words; if a key word (an accent word) is interpolated, listen around it or re-voice.

Downstream contract

  • The compiler converts ms → frames (30 fps) from absolute times (no rounding drift), starts the voice at frame 6, and places: scene cuts slightly before the first word of each scene, each word's reveal on its own start, accent typing across the word's duration, each image's entrance on the word that names it, camera punch-ins on accents, sound cues on words.
  • Changing script.txt or the audio invalidates words.json and 04-edit/edit.json word mapping — re-run align, then ./sv check shows which scenes no longer match.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.