What is forced alignment and how does MFA work?
mainForced alignment is a technique that takes an orthographic transcription of an audio file and generates a time-aligned version. It uses a pronunciation dictionary to look up phones (phonemes) for words.
Montreal Forced Aligner (MFA) performs this process through a four-stage training pipeline:
- Monophone models: The first pass models each phone identically, regardless of context.
- Triphone models: The second pass accounts for the acoustic context on either side of a phone.
- LDA+MLLT: The third pass learns a feature transform to maximize the difference between phone features.
- Speaker Adaptation: The final pass enhances the triphone model by accounting for individual speaker differences and calculating a transformation of the Mel Frequency Cepstrum Coefficients (MFCC) features for each speaker.
MFA is built on the Kaldi ASR toolkit and uses pynini for grapheme-to-phoneme capabilities.