alignLyricsWithMMS
Align lyrics or subtitles to an audio file to get frame-accurate word- and line-level timestamps, confidence scores, LRC drift corrections, and optional beat snapping for precise sync.
Instructions
Perform frame-accurate forced alignment of lyrics/subtitles against an audio file using bundled MMS-Align / CTC-Segmentation (Neural CTC ONNX + Silero VAD v6 + Viterbi CTC-Segmentation trellis). Returns exact word-level and line-level timestamps, confidence scores, LRC drift corrections, and nearest drum beat offsets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endTime | No | Optional end time in seconds to filter alignment | |
| audioPath | Yes | Path to the audio file (.mp3, .wav, .flac, .m4a) | |
| startTime | No | Optional start time in seconds to filter alignment | |
| lyricsText | No | Optional raw lyrics text or LRC-formatted text string | |
| lrcFilePath | No | Optional path to a .lrc lyric file (if omitted, automatically looks for a matching .lrc file or uses lyricsText) | |
| snapWordsToBeats | No | Whether to automatically snap word entrances within tolerance to the nearest drum/beat transient (default: false) | |
| maxSnapToleranceMs | No | Maximum tolerance in milliseconds when snapping words to beats (default: 75) |