lattifai/lattifai-skills/lai-align
Claude Code and agent skill by lattifai/lattifai-skills
- community
Checking that the SKILL.md file is still in the repository.
Align existing captions to audio/video with word-level precision using the Lattice-1 model. Trigger when the user has both a media file AND a caption/transcript that need to be synchronized, or says "fix caption timing", "字幕对不上", "对齐字幕", "word-level timestamps", "karaoke timing", "timestamps are off". Do NOT trigger without existing text — use `/lai-transcribe` first.
Install
npx vskill@latest install lattifai/lattifai-skills/lai-alignSKILL.md
LattifAI Forced Alignment
Produces word-level and segment-level timestamps with sub-frame accuracy. Requires an API key — see /lai-setup.
Basic Command
Positional args are input_media, input_caption, output_caption. Pick a <base> (the media stem or YouTube ID) and reuse it; outputs land in the current directory:
Format is inferred from the output file extension (30+ formats — see /lai-caption). Add --direct -Y for non-interactive pipeline runs.
Output naming: prefer <base>.aligned.json for downstream pipelines (karaoke / translate / diarize all consume aligned JSON). Use <base>.srt etc. only when the alignment result is the final deliverable.
Common Options
Append as key=value pairs:
caption.input.split_sentence=false(default in examples) — preserve the source caption's original cue boundaries. Set totrueto re-segment into natural sentences via wtpsplit; useful when the source has mid-sentence cue breaks (typical for YouTube auto-captions) and you want clean segments for downstream karaoke / translation / summarizationcaption.render.word_level=true— keep per-word timestamps in the output (needed for karaoke; use a JSON or ASS output path)media.streaming_chunk_secs=300— process audio >10 min with bounded memory (up to 20 h)alignment.device=auto— override auto device (cuda/mps/cpu)
Full list: lai alignment align --help.
Word-Level JSON Output
Fan out to other formats (karaoke ASS, TextGrid, SRT, …) via /lai-caption.
Common Issues
| Problem | Fix | |
|---|---|---|
API KEY verification error | Run lai auth trial or lai auth login — see /lai-setup | |
| Timing looks wrong | Try caption.input.split_sentence=true or caption.input.normalize_text=true |
Related Skills
/lai-transcribe— generate a transcript first/lai-diarize— add speaker labels to aligned output/lai-caption— convert aligned JSON to any format/lai-youtube— YouTube URL → aligned captions in one command
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/lai-align/SKILL.md
Popularity
- Repository stars
- 32
- Repository forks
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lattifai/lattifai-skills/lai-align)