What is forced alignment? Match transcript words to audio times
Forced alignment estimates word and phone boundaries from a recording and its transcript. Use Montreal Forced Aligner (MFA) 3.4+ for an English example, then inspect the inputs and output.
Forced alignment uses an existing recording and transcript to estimate when each transcribed word and phone was spoken. Unlike automatic speech recognition (ASR), it does not create a transcript from audio. If the transcript differs from the recording, the alignment is unreliable. MFA user guide
Prepare the inputs
MFA needs audio, an accurate transcript, and language-matched acoustic and pronunciation resources (or an MFA 3.4+ Hugging Face model that bundles them). Put a same-named WAV and .lab transcript under each speaker folder; the .lab contains the words actually spoken. Long recordings with interval transcripts in Praat TextGrid are also supported. Corpus formats
corpus/
└── speaker1/
├── sample.wav
└── sample.labAlign with MFA 3.4+
The official installation guide uses Conda. This English example uses a Hugging Face model that bundles its dictionary. Replace the paths for your system. Model ID: MontrealCorpusTools/english_mfa. Install · Command reference
conda create -n aligner -c conda-forge montreal-forced-aligner -y
conda activate aligner
mfa --help
mfa align_hf ./corpus MontrealCorpusTools/english_mfa ./aligned --use_g2pVerify the result and understand its limits
A successful run normally writes Praat TextGrid files with word and phone intervals. Open one and listen around several boundaries. If timing drifts or gaps appear, check the audio, transcript, out-of-vocabulary (OOV) words, dictionary, and language model. --use_g2p asks a grapheme-to-phoneme model to suggest OOV pronunciations; review names, abbreviations, and homographs because suggestions can be wrong. Versions before MFA 3.4 use the legacy mfa align workflow. The aligner fits supplied text to audio; it does not verify that the transcript is true. Manually spot-check material used for subtitles or research. First steps · Dictionary · Compare alignments