Free resources for forced phonetic alignment in Brazilian Portuguese based on Kaldi toolkit
Paper · 2022 · Cassio Batista, Ana Larissa Dias and Nelson Neto
Summary
A transcript tells a researcher which words were spoken. To study how they were pronounced, the researcher may also need to know when a particular vowel began or where a consonant ended. Marking those boundaries by hand takes time, especially when a study requires measurements over many recordings. This paper presents an update to UFPAlign, a toolkit that takes a recording and its written transcript and estimates the timing of the speech sounds. The task is called forced phonetic alignment. The update supplies resources for Brazilian Portuguese and supports both the Linux command line and Praat, a program for examining and annotating speech. Speech and spoken language
UFPAlign uses a pronunciation dictionary to turn the written words into a sequence of phones, the individual sound units whose timing it estimates. A rule-based converter supplies pronunciations for words missing from the dictionary. Kaldi then searches for a timing of the expected sequence that fits the recording. UFPAlign assembles the result into a Praat TextGrid with separate layers for phones, syllables, words, and the phonetic and written transcriptions. The authors release the Kaldi training scripts, pretrained acoustic resources, and dictionaries under the MIT license. The dictionaries draw on a list of about 200,000 Brazilian Portuguese words.
The authors compare the automatic phone intervals against hand annotations for 385 utterances from a female and a male speaker. They measure how far each automatic endpoint falls from its reference and how much of the corresponding intervals overlaps. UFPAlign’s Kaldi systems based on Gaussian mixtures generally score best. The setting that uses neighboring phones and features describing how the signal changes over time, called tri-delta, places 50.44% of the female speaker’s endpoints and 46.28% of the male speaker’s endpoints strictly less than 10 ms from the reference. It also leads the reported overlap summaries for both speakers. The other Gaussian-mixture settings are close, and Montreal Forced Aligner becomes considerably more competitive when trained on the material it aligns.
The default factorized time-delay neural network gives weaker results at the tightest boundary tolerances. A follow-up experiment within the paper recovers much of the lost precision by changing the state structure used to train the network. Adding or removing features that describe the speaker has a smaller effect. The comparison concerns phone timing on a small, filtered corpus. The scoring also depends on reconciling different phonetic alphabets, a process that sometimes requires constructing an internal boundary where the original annotation has only a single interval.
Deep dive: Free resources for forced phonetic alignment in Brazilian Portuguese based on Kaldi toolkit
How UFPAlign uses Kaldi to place phone boundaries in Brazilian Portuguese speech, and how closely those boundaries match hand annotations. · about 33 minutes to read
The problem and its context
A transcript supplies the words, and the recording supplies the timing
A phonetician examining a recording can mark intervals for the sounds in an utterance. Each interval carries a label and occupies a stretch of time that can be inspected against the waveform. Once the intervals are in place, the researcher can examine properties such as how long a vowel lasts or how the timing of sounds varies through an utterance. The paper names prosody as one use for this information. For a substantial set of recordings, locating the boundaries becomes a task in its own right. Even an experienced annotator has to work through the signal, consider where successive sounds meet, and record a decision at each transition. Linguistic annotation
Forced alignment starts from a recording paired with a transcript. The transcript constrains the search to the sounds expected for those words, in their given order. The aligner must still decide which part of the audio belongs to each sound. A transcript can establish that a consonant follows a vowel while leaving the exact transition open. The recording supplies acoustic evidence for that transition. The pronunciation resources determine which sound labels the system can place there. This distinction between identifying a sequence and placing its boundaries explains why a method adapted from speech recognition still needs a timing evaluation.
Spelling introduces another layer of interpretation. The written form specifies words, while the alignment operates on phones. The tool has to supply a pronunciation, including decisions about the different sounds a letter can represent. The authors’ converter assigns pronunciations from spelling and stress rules. A human annotator can hear changes that take place when words are spoken together. For instance, a vowel near a word boundary can disappear or combine with an adjacent sound. An automatic alignment that starts from a pronunciation for each word may therefore begin with a different account of the sound sequence from the one the annotator heard.
That disagreement matters even when the timestamps themselves are the main object of study. Comparing the end of a sound in the automatic output with the end of a sound in the manual annotation presupposes that both annotations identify a corresponding sound. A discrepancy in labels may be easy to resolve when it amounts to a difference of notation. A discrepancy in the number of sounds changes which boundaries are available for comparison. The paper treats these as separate stages of the evaluation. It first makes the phone sequences comparable and then scores the timings.
How previous aligners approached the task
The paper describes hidden Markov models paired with Gaussian mixtures as a longstanding approach. A hidden Markov model represents speech as a progression through states whose identities have to be inferred from the acoustic signal. In a phone aligner, that progression gives the system a way to represent the stages of a sound and to vary the time spent in them. A Gaussian mixture represents the range of acoustic observations that a state can plausibly produce. Combining these components lets a search procedure weigh the match to the current stretch of audio while also respecting the order in which the states can occur.
Much of the earlier software described in the paper used the Hidden Markov Model Toolkit, or HTK. Prosodylab-Aligner wrapped the HTK workflow in a Python interface. It supplied resources for North American English and allowed a user to train resources for another language, including on the data they intended to align. Its word and phone timings could be viewed in Praat. LaBB-CAT offered a train-and-align procedure that estimated speaker-dependent resources for its HTK alignment. The paper treats the ability to fit an aligner to a particular dataset as a practical feature with direct consequences for how an evaluation should be interpreted.
Other systems illustrate how language, input, and output requirements can differ. The Munich Automatic Segmentation system combined weighted pronunciation rules with an HTK search. Its web interface offered European Portuguese, a distinction that matters for an investigation specifically concerned with Brazilian Portuguese. Aeneas used text-to-speech to obtain a synthetic version of the transcript and dynamic time warping to match it in time to the recording. DSAlign used a speech detector and DeepSpeech transcriptions to align text fragments, with word-level output organized around the detected regions. These are examples of automatic text-to-audio alignment with different assumptions about the language resources and the units that receive timestamps.
The authors identify EasyAlign and Montreal Forced Aligner as the alternatives they could compare directly with UFPAlign using Brazilian Portuguese resources. EasyAlign put HTK alignment behind a Praat interface, allowing users to produce a multi-level TextGrid from within software they already used for phonetic work. Montreal Forced Aligner, abbreviated MFA, adapted the trainable design of Prosodylab-Aligner to Kaldi. The paper describes its use of context-dependent phones and speaker adaptation, and identifies a 22-h portion of GlobalPhone as the source of the pretrained Brazilian Portuguese resources used in this comparison.
The related-work survey also mentions Portuguese support in SPPAS, whose Portuguese acoustic resources were obtained from adapted French and Spanish material. The distinction the authors draw is between offering a language option and having a suitable pretrained acoustic system for the variety under study. An aligner needs a way to convert the transcript to pronunciations, a compatible phone inventory, and acoustic estimates that can be applied to the recording. Availability of these pieces together was the gap that motivated UFPAlign.
Why update UFPAlign again?
The original UFPAlign combined HTK with FalaBrasil’s pronunciation converter and syllabifier. An earlier update moved acoustic training and alignment to Kaldi and explored feed-forward neural training through Kaldi’s nnet2 framework. The present paper updates that work to the nnet3 framework, adapting a Kaldi recipe from Mini-librispeech to the Brazilian Portuguese training corpora. The new recipe made a more specialized time-delay architecture available alongside the established sequence of Gaussian-mixture training stages.
That transition served a practical purpose. Pretrained resources make it possible to align a file without first assembling a training corpus. Releasing the training recipe also makes the choices behind those resources visible and gives other researchers a route to adapting them. UFPAlign retains a Praat interface for inspecting the boundaries and a command-line interface for Linux users. The authors’ contribution thus spans acoustic estimation, linguistic resources, and a format that can be opened for direct inspection.
The update also gives the authors a reason to separate progress on speech recognition from progress on phonetic segmentation. Recognition assesses the words recovered from a recording. In forced alignment, the words are supplied and the quality of the result depends on where the system places the sounds. A change that improves the representation of speech can help both tasks, but their scoring rules reward different outcomes. The paper examines that distinction by evaluating successive Kaldi training stages on phone timing and by comparing them with the Brazilian Portuguese resources from other toolkits.
The method, step by step
From a recording and written words to a TextGrid
A UFPAlign run starts with a WAVE recording and its matching written transcript. The system checks the transcript against a pronunciation dictionary and a syllable dictionary. When a word is missing, the embedded FalaBrasil tools generate its phone sequence and syllabification. Kaldi receives the audio, the expected pronunciations, and the information needed to associate the transcript with the recording. It computes a sequence of time assignments. UFPAlign then turns those assignments into intervals that can be viewed in Praat.
How UFPAlign turns a recording into timed annotations
The steps in order.
The pronunciation dictionary gives each word a sequence of sound labels. Its converter works from graphemes, the written units in a word, to the phones expected in its pronunciation. This is the operation abbreviated G2P. FalaBrasil’s implementation first uses rules for determining stress, which informs the choice of sounds the spelling represents. It assigns a single pronunciation per word and works within word boundaries. The rule set was designed without selecting a particular Brazilian dialect as its target. The phone inventory uses 38 speech sounds and a silence label, with symbols inspired by the computer-readable SAMPA phonetic alphabet.
Syllabification supplies a different description of the same word. It indicates which sounds belong to each syllable so that the display can group the timed material accordingly. UFPAlign uses these divisions to construct the syllable tier in the output. Kaldi’s acoustic training instead uses the phone inventory and pronunciation lexicon. The distinction is useful when reading the output because the tool can display a syllable interval even though the authors train and test the system at the level of phones.
Before the search, UFPAlign creates the Kaldi files that tie the written words to their audio and identify the utterance and speaker. The transcript goes into text, the audio reference into wav.scp, and the associations between speakers and utterances into utt2spk and spk2utt. The language preparation script compiles the pronunciation dictionary into L.fst. A finite-state transducer, the kind of graph stored in that file, represents relationships between sequences. The lexicon graph lets Kaldi connect the transcript’s word labels to the phone sequences needed for the acoustic search.
The dictionaries can be extended during preparation. The word missing from the supplied dictionary has its pronunciation and syllable divisions generated before alignment and output assembly. This allows the aligner to handle new spellings using its existing acoustic inventory. It also makes the assumptions for a newly generated entry the same as for a pre-defined one. In particular, the phonetic form comes from the written word and the converter’s rules, while the signal determines how the resulting sequence is placed in time.
Kaldi represents the audio as a sequence of short-window features. The exact representation depends on the chosen acoustic system. The monophone and tri-delta stages use cepstral features and their temporal changes. Later Gaussian-mixture stages use transformed features, while the default neural configuration includes information derived from the speaker’s signal. The features provide an acoustic observation for each part of the search. The phone sequence determines the paths that the search can consider.
UFPAlign uses Viterbi beam search to find a likely progression through those paths. Viterbi search accumulates evidence for sequences of states over time. A beam limits the search to competitive partial paths as it proceeds. For forced alignment the words are already specified, so a separate statistical prediction over possible word sequences is unnecessary at this stage. The useful decisions concern the boundaries between the states and phones associated with the supplied words.
Kaldi’s time-marked output, called CTM, records numeric labels along with their start times and durations. The conversion stage reads the timing files and interprets their labels using the prepared dictionaries. A Python script builds the TextGrid with phone, syllable, and word tiers and with phonetic and orthographic transcription tiers. Praat can show the tiers against its displays of the recording. The vertical marks thus represent the timing estimated by Kaldi, while the tier labels and groupings also reflect the dictionary and syllabifier.
Preparing the Brazilian Portuguese resources
The training recordings come from the FalaBrasil collection. Its constituent datasets include LapsStory and LapsBenchmark, recordings of the Constitution and Consumer Protection Code, the Spoltech and West Point corpora, and CETUC. The paper gives a combined duration of 170 h:51 m. CETUC supplies 144 h:39 m of that total. These are training durations, separate from the duration of the hand-timed recordings used for evaluation. The audio used for training is stored in uncompressed WAVE format at a sampling rate of 16 kHz and a bit depth of 16 bits.
The written vocabulary comes from a broader collection than the speech transcripts alone. The authors include words from Projecto Natura and LibreOffice’s VERO spelling dictionary, as well as text from CETENFolha. FrequencyWords, derived from OpenSubtitles, and the transcripts of the training audio also contribute entries. GNU Aspell filters possible misspellings before the authors apply the FalaBrasil tools. The resulting list contains approximately 200,000 words. Building both dictionaries from that list gives the aligner a common underlying vocabulary for pronunciation and syllable lookup.
The training recipe uses an additional statistical resource that describes sequences of words. The authors built it with SRILM from ∼ 1.5 million CETENFolha sentences for earlier work and reuse it during acoustic training. The release thus draws on several distinct kinds of evidence. The recordings and their transcripts support acoustic estimation. The word list supports lexical coverage. The CETENFolha sentences provide the text statistics used by the training recipe. When UFPAlign aligns a particular file, the supplied transcript directly fixes its word sequence.
The paper names FalaBrasil’s distribution points for the trained files, scripts, and lexical resources. It describes the pretrained Kaldi release as covering monophones, several triphone stages, and the nnet3 neural configuration. The MIT-licensed files let a user run the acoustic portion of UFPAlign with Kaldi already installed. The training recordings have their own access conditions, which affect whether someone can reproduce the complete training run from the same inputs.
Building the Gaussian-mixture systems
The first training stage turns the waveform into features that summarize its local spectrum. The paper describes 25 ms windows with 10 ms of overlap and a 39-dimension representation for the initial acoustic pipeline. Mel-frequency cepstral coefficients, or MFCCs, summarize spectral information in a compact form. The initial representation includes 12 cepstral coefficients, with C0 serving as the energy component alongside them. It also contains 13 delta coefficients and 13 acceleration coefficients. The delta features describe how the local measurements change, and the acceleration features describe how those changes vary over time.
The first acoustic estimates are for monophones. A monophone system uses the same phone identity regardless of which sounds occur on either side. The authors initialize the 38 speech phones and the silence class using a left-to-right hidden Markov structure with 3 states per unit. A state can loop back to itself, which allows a segment to occupy additional frames before the search advances. This simple structure gives training a way to assign different durations to successive sounds without requiring hand-timed boundaries for the training utterances.
The initial acoustic distributions start from the global mean and variance of the training features. The transition probabilities also start out equal. This initialization is called a flat start because the acoustic estimates have yet to specialize to individual phones. Viterbi alignment assigns states to the feature sequence given the current estimates. Viterbi training then updates those estimates. The recipe aligns the data again after training stages, so subsequent stages can use state assignments produced by the current system.
The next stage uses triphones, which distinguish instances of a phone by the phone to its left and the phone to its right. Neighboring sounds can affect the acoustic evidence around a central phone, so conditioning on them lets the system represent patterns that a monophone pools together. Training independent estimates for every possible context would leave some contexts with little evidence. The decision tree used by Kaldi groups acoustically similar states so that they can share estimates. These tied states are the units called senones that appear in the paper’s discussion of neural outputs.
The tri-delta configuration uses context-dependent phones together with the delta and acceleration features. The following stage, called tri-LDA in the results, runs linear discriminant analysis and a maximum likelihood linear transform. The first technique combines information from neighboring frames and projects it into a smaller feature space. The second adjusts the representation for likelihood estimation. This stage changes the features available to the acoustic distributions while retaining the context-dependent basis for assigning frames to phones.
The speaker-adapted stage, tri-SAT, builds on those transformed features. The recipe applies feature-space maximum likelihood linear regression to estimate a transformation used for speaker normalization. In speaker adaptive training, the system fits its distributions in a space that accounts for variation among the training speakers. The intended effect is to make the estimates more transferable to a speaker outside the training set. The paper evaluates tri-SAT as an aligner in its own right and also uses its state assignments to train the neural configuration.
The successive stages therefore have a dual purpose. Each can generate an alignment to evaluate, and later stages can use the work done by earlier ones. This is especially important for the move to neural training. Although the network estimates acoustic evidence differently from Gaussian mixtures, the Gaussian-mixture pipeline still supplies reference state assignments. The neural experiment changes the final estimator and its training setup after those assignments have been obtained.
Training the time-delay network
For the neural stage, the authors adapt Kaldi’s Mini-librispeech recipe in nnet3. The recipe perturbs the speed and volume of the training recordings, producing five times as much training material as the original set. The network receives higher-resolution, normalized cepstral features with 40 features and a 100-dimensional i-vector representation. An i-vector summarizes characteristics of the speaker’s signal and gives the network that information alongside the frame-level acoustics. The tri-SAT system supplies alignment information used as training supervision.
The final architecture is a factorized time-delay neural network, or TDNN-F. A time-delay layer takes account of representations at selected times around the frame being processed. This gives it access to earlier and later acoustic evidence when estimating the state at the current time. The network remains feed-forward and can perform much of this processing in parallel. The recipe also uses frame sub-sampling, so some computations are performed at a reduced set of time positions. A reduced set of output times can matter for an experiment whose score depends on the exact location of a boundary.
Factorization reduces the number of parameters in the hidden layers by representing the weight transformations in lower-rank form. The recipe uses narrow intermediate layers and bypass connections that carry part of an earlier layer’s output forward. Its transformations are followed by rectified linear units, which suppress negative activations. Batch normalization is applied through the hidden part of the network, and regularization is used throughout. The final softmax gives a distribution over the tied acoustic states used as the outputs.
The paper reports a dimension of 768 for the main TDNN-F and prefinal layers. It lists a bottleneck dimension of 96 inside the TDNN-F layers and 192 for the prefinal layer. The bypass scale is 0.66, and the learning rate goes from 0.002 to 0.0002. The reported regularization parameter is 0.015 for the output layer and 0.03 elsewhere. These settings describe the adapted recipe the authors evaluated. The paper leaves a broader search over layer sizes, context, and sub-sampling for future work.
The default neural recipe also changes the state structure used to estimate the acoustic scores. Kaldi’s chain setup rebuilds the decision tree with a single-state topology in place of the traditional three-state left-to-right structure used in the Gaussian-mixture stages. That change accompanies the use of the network in the main comparison. The separate chain and chain-free runs give the authors a way to examine how much of the observed timing behavior accompanies that topology change.
Putting different phone sets on a common footing
The authors need a separate procedure to compare the output against a phonetician’s annotation. UFPAlign and the EasyAlign configuration in the comparison use the FalaBrasil inventory. MFA uses symbols from ARPAbet. The hand annotation uses a version of SAMPA whose distinctions differ from FalaBrasil’s. A simple replacement table can help where labels correspond individually. Other cases involve a sequence on one side that corresponds to a shorter or longer sequence on the other.
The authors use m2m-aligner to discover these correspondences across the evaluation utterances. They pair entire phonetic sentences with sequences in the FalaBrasil representation and put the pairs into a file with a separate column for each sequence. Grouping sentences this way allows the mapping to use context across word boundaries. The aligner uses an edit-distance-based procedure and frequencies of observed correspondences to infer which groups go together. A recurring correspondence, for example, is the sequence /t/ /S/ aligning to /tS/. The same procedure is used to bring MFA’s output into the scoring inventory.
After a correspondence has been found, a separate script adjusts the time intervals. For a merge, the endpoint of the last contributing phone becomes the endpoint of the combined segment. For a split, the available interval is divided into equal parts. The outer endpoints survive, while the newly introduced endpoints are spaced uniformly inside. These rules create intervals that can be paired in the scoring stage. They also give newly created internal boundaries a different evidential status from the boundaries that the phonetician placed directly.
Measuring how closely intervals agree
The first measure concerns the end of a phone. The authors use the magnitude of the difference between the automatic endpoint and the corresponding reference endpoint. Their procedure can be written as follows.
d = |eₐ − eᵣ|
Here d is the phone boundary error, expressed in milliseconds in the evaluation. eₐ is the ending time from the automatic alignment and eᵣ is the manual ending time used as the reference after any required conversion. The minus sign subtracts the reference time from the automatic time. The vertical bars take the absolute value, so an equally early or late endpoint contributes the same error.
The second measure is intersection over union, abbreviated IoU. It treats each occurrence of the phone as a time span, with a start and an end. The overlap of the spans is divided by the time covered by either span.
IoU = |A ∩ R| ÷ |A ∪ R|
A is the automatic phone interval and R is its corresponding reference interval. The symbol ∩ selects the times present in both intervals, and ∪ selects the times in at least one. The vertical bars indicate the duration of the resulting set of times. The division sign gives the proportion of the union that the intervals share. A small endpoint error can still come with poor overlap if the starts differ appreciably or if the phone is short. The two measures therefore capture different features of the same aligned occurrence.
Experiments and results
The evaluation recordings and comparison conditions
The manual corpus begins with 200 recordings from the male speaker and 199 from the female speaker. The combined duration before filtering is 15 m:32 s. A phonetician adjusted the phone timestamps in Praat, and those annotations serve as the reference. The speakers read the same set of sentences, so the corpus allows the authors to compare behavior on largely shared linguistic material spoken by different people. The design also means that the vocabulary repeats across the speaker portions.
Some utterances contain pronunciation changes at word boundaries that prevent a defensible pairing between the annotated sequence and the lexicon-derived one. The authors exclude fourteen files, comprising about 34 s of audio, before scoring. They retain 193 utterances for the male speaker and 192 for the female speaker, for 385 recordings and 14 m:58 s in the retained corpus. They ignore pauses and silences within and between words. The retained material is described as containing 2518 words, with 686 distinct words, and 10,537 phone tokens. A token here is one occurrence of a phone in the material being scored.
The toolkits receive the same recordings and orthographic transcripts. Their automatic TextGrids supply the predicted intervals, and the hand-adjusted TextGrids supply the references. After harmonizing the phone inventories, the authors score only the phonetic intervals. The syllable and word tiers that UFPAlign generates remain part of the output available to users. The experiments report results separately for the female and male subsets of the corpus.
The comparison includes the older HTK version of UFPAlign, EasyAlign, and MFA alongside the new Kaldi-based UFPAlign systems. MFA is evaluated in align-only mode, using its existing Brazilian Portuguese resources, and train-and-align mode, fitting acoustic estimates on the data to be aligned. EasyAlign’s Brazilian Portuguese resources also have a connection to the evaluation material through their original training. The paper discloses that overlap. The comparison thus addresses the behavior of these concrete systems and modes under the paper’s protocol, with different degrees of exposure to the recordings or dataset.
For each speaker, the boundary results are reported as cumulative percentages below increasingly permissive thresholds. A phone counted below 10 ms is also counted below 25 ms, and the tables go on to < 50 ms and < 100 ms. The smallest cutoff measures tight agreement. The wider cutoffs show how many endpoints avoid larger displacements. The IoU analysis examines corresponding intervals and presents summaries for each speaker as well as distributions by phone type.
Boundary precision at the tightest tolerance
The female portion shows a clear advantage for UFPAlign’s Gaussian-mixture configurations at the strictest cutoff. Tri-delta gives the largest share of phone ends below 10 ms. The monophone and tri-LDA versions are close to each other at that cutoff, and tri-SAT falls somewhat below them. The default TDNN-F has a smaller share of closely placed endpoints, even though it uses the same toolkit and depends on an earlier Gaussian-mixture alignment during training.
Phone endpoints with error below 10 ms in the female evaluation recordings
UFPAlign tri-delta has the largest share of closely placed phone endpoints.
The numbers
| System or setting | Phone tokens % |
|---|---|
| UFPAlign HTK | 31.40 |
| EasyAlign | 36.59 |
| MFA align-only | 39.34 |
| MFA train-and-align | 37.65 |
| UFPAlign monophone | 47.47 |
| UFPAlign tri-delta (this paper) | 50.44 |
| UFPAlign tri-LDA | 47.48 |
| UFPAlign tri-SAT | 45.69 |
| UFPAlign TDNN-F | 34.41 |
For the male portion, tri-delta places 46.28% of endpoints below 10 ms. MFA’s train-and-align mode reaches 45.12%. UFPAlign monophone scores 43.51%, tri-LDA scores 43.49%, and tri-SAT reaches 42.14% at that cutoff. The default TDNN-F reaches 32.02%, close to EasyAlign at 31.53% and MFA align-only at 32.81%. The old HTK UFPAlign reaches 30.73%. This portion of the test shows a closer contest between MFA after training and UFPAlign’s strongest settings.
MFA’s comparison between modes is especially dependent on the speaker and threshold. In the female portion, its align-only mode places 39.34% of endpoints below 10 ms, ahead of train-and-align at 37.65%. At < 25 ms the ordering reverses, with 78.69% for train-and-align and 75.99% for align-only. On the male recordings, train-and-align leads its pretrained counterpart at both cutoffs. The < 25 ms results are 83.34% for train-and-align and 64.85% for align-only. These figures describe the benefit of fitting and aligning on the supplied material for this experiment. They do not estimate MFA’s performance after training on a separate corpus of the same size.
Among the HTK systems, EasyAlign consistently leads the earlier UFPAlign at the reported cutoffs on both speakers. On the female portion at < 25 ms, EasyAlign scores 78.12%, against 63.94% for HTK UFPAlign. On the male portion the corresponding values are 67.51% and 62.45%. The EasyAlign scores establish how the particular resources supplied with that setup behave on the corpus. Given the training overlap, they are best read alongside the details of how those resources were obtained.
The ranking changes as the cutoff widens
The female-speaker results at < 25 ms still favor the Gaussian-mixture configurations. Tri-delta reaches 89.88%, tri-LDA 89.22%, and tri-SAT 88.20%. The monophone configuration reaches 87.70%. Default TDNN-F reaches 75.94%, close to MFA in align-only mode at 75.99%. At < 50 ms, tri-delta remains ahead at 98.34%, with tri-LDA at 98.27% and tri-SAT at 98.15%. TDNN-F then reaches 97.61%, very close to the 97.55% obtained by the monophone configuration. A reader looking only at the broad cutoff would see a much smaller separation than a reader interested in fine timing.
On the male recordings, tri-delta leads at < 25 ms with 85.55%, followed by tri-LDA at 84.50%. At < 50 ms, MFA’s train-and-align result of 97.23% is slightly higher than tri-delta at 97.13%. Tri-LDA and tri-SAT each reach 97.19% there. Default TDNN-F reaches 96.65% and the monophone system reaches 96.29%. The male portion provides a useful example of why the authors describe tri-delta as the overall leader while treating the Gaussian-mixture configurations as similar. The identity of the leading system at a particular cutoff depends on which part of the error distribution the cutoff captures.
At < 100 ms, default TDNN-F gives the highest reported shares in the main comparison, at 99.87% for the female portion and 99.94% for the male portion. Tri-delta reaches 99.62% and 99.74% respectively. The result for TDNN-F concerns the frequency of relatively large endpoint errors. Its weaker performance at tight cutoffs concerns a different part of the distribution, with practical consequences for studies that need boundaries on the scale of individual sounds. Reporting both cutoffs makes that difference visible.
MFA’s align-only mode shows a different pattern. At < 100 ms it reaches 95.65% for the female recordings and 90.61% for the male recordings, behind both of the HTK systems at that threshold. In train-and-align mode, it rises to 99.08% and 99.66% for the respective speaker portions. The authors suggest that the training source may contribute to the weaker pretrained results. The comparison includes differences in data and pronunciation representation, so it leaves the contribution of the 22-h training duration unresolved.
How much the intervals overlap
The overlap measure broadly supports the ranking from the tight boundary comparisons. For the female portion, tri-delta has a mean IoU of 0.729 and a median of 0.769. Tri-LDA gives 0.717 for the mean and 0.751 for the median. The monophone result is 0.711 for the mean and 0.755 for the median. Tri-SAT reaches a mean of 0.710 and a median of 0.743. The means and medians tell a similar overall story while allowing different orders among the nearby settings.
For the male portions, tri-delta again leads in mean overlap. MFA in train-and-align mode is close to the other Gaussian-mixture systems from UFPAlign. The default TDNN-F ranks near the older HTK UFPAlign and MFA align-only by mean IoU, in spite of its strong showing at the widest endpoint tolerance.
Mean phone interval overlap on the male evaluation recordings
UFPAlign tri-delta leads, with MFA train-and-align close to UFPAlign’s other Gaussian-mixture settings.
The numbers
| System or setting | Mean IoU |
|---|---|
| UFPAlign HTK | 0.558 |
| EasyAlign | 0.578 |
| MFA align-only | 0.567 |
| MFA train-and-align | 0.691 |
| UFPAlign monophone | 0.686 |
| UFPAlign tri-delta (this paper) | 0.704 |
| UFPAlign tri-LDA | 0.694 |
| UFPAlign tri-SAT | 0.690 |
| UFPAlign TDNN-F | 0.563 |
The male tri-delta median is 0.743. MFA train-and-align reaches a median of 0.736 in the same portion. For the female recordings, MFA train-and-align gives a mean of 0.678 and a median of 0.722, while the align-only mode gives a mean of 0.650 and a median of 0.723. The female TDNN-F mean is 0.600 and its median is 0.645. These results show why the paper includes both interval and endpoint measures. The ordering from a generous boundary cutoff misses much of the difference visible when comparing whole intervals.
The authors illustrate the calculation with the /f/ of an utterance in the corpus. Its manual endpoint is 905 ms. UFPAlign’s monophone configuration places it at 910 ms, for a reported boundary error of 5 ms. The default TDNN-F places it at 1080 ms, for a reported error of 175 ms. On that same phone, the monophone interval has IoU 0.96 and the TDNN-F interval has IoU 0.37. The example shows the same occurrence through each measure. One score says how far the endpoint moved, and the other says how well the complete interval matches. The corpus results pool many occurrences, including ones where the systems agree more closely.
Some phone labels are much easier to place than others
For the tri-delta configuration, several fricatives, including /f/, /s/, and /S/, tend to show high overlap for both speakers. The open /O/ and nasal /õ/ also score well, as do stops in general. The study reports lower overlap for the labels /R/, /r/, and /X/, which correspond to the spelling “r” in the paper’s analysis. The female speaker’s intervals for these labels show particularly poor agreement. This variation is easier to see in the per-phone distributions than in a speaker-level mean.
Several vowel and semivowel labels also yield low overlap. The authors draw attention to /i/, /j/, and the nasal semivowel /j̃/. In particular, /j̃/ often appears in merged groups when the reference representation is converted. The figures also show below-average scores for /w/ and /w̃/. These patterns locate where the systems and references differ. The results involve the acoustic decision, the pronunciation supplied by the lexicon, and the mapping used for comparison. The paper leaves the contribution of each of those components open.
The authors include per-phone overlap distributions for the other systems as well and report that much of the pattern recurs. The plots show the spread of individual occurrences, the means for particular phones, and outlying observations. The authors suggest that some low outlying values could help explain why medians tend to exceed means. Looking at the distributions also gives context to, for instance, a low score for an “r” label that might be hidden by good results on more frequently or more accurately aligned labels.
What the ablations show
Changing the neural state structure and the input features
The follow-up neural experiment asks whether the default TDNN-F result depends on the structure of the states used in training or on the inclusion of i-vectors. The authors train four additional configurations using the same tri-SAT Gaussian-mixture system as the source of preliminary alignments. They pair each of the chain and chain-free setups with two input choices. One uses high-resolution MFCCs with i-vectors, and the other uses the MFCCs alone. The chain setup rebuilds the tree with the modified single-state topology. The chain-free setup retains the ordinary state structure.
TDNN-F phone endpoints with error below 10 ms in the female evaluation recordings
Keeping the ordinary state structure improves tight boundary placement with either feature set.
The numbers
| System or setting | Phone tokens % |
|---|---|
| Chain with MFCCs and i-vectors | 33.09 |
| Chain with MFCCs | 32.24 |
| Chain-free with MFCCs and i-vectors | 47.05 |
| Chain-free with MFCCs (this paper) | 48.78 |
For the female portion, the strong separation between chain and chain-free runs persists at < 25 ms. With MFCCs alone, the chain result is 68.76% and the chain-free result is 85.30%. With i-vectors included, the corresponding results are 70.49% and 83.46%. At < 50 ms the chain-free runs reach 96.08% with i-vectors and 96.80% without them. Their chain counterparts reach 92.37% and 91.84%. The results indicate that the structure change matters across several scoring tolerances for these recordings.
The male portion shows the same direction at the tight cutoffs. At < 10 ms, the chain run with i-vectors reaches 34.14% and the chain-free run with i-vectors reaches 46.60%. With MFCCs alone, the results are 33.67% for chain and 46.75% for chain-free. At < 25 ms, the chain-free MFCC run reaches 83.59%, while the equivalent chain run reaches 68.84%. At < 50 ms, they reach 96.87% and 91.38%, respectively. The consistency across feature conditions is the main evidence in this controlled comparison.
The feature result is smaller and depends on the topology. With chain training, the female results are higher with i-vectors at each reported cutoff. For the male recordings the i-vectors improve the tightest chain cutoffs, and the < 100 ms scores are 99.23% with i-vectors and 99.25% without them. In the chain-free runs, the MFCC-only configuration leads its i-vector counterpart at each reported cutoff for both speakers. These observations associate i-vector usefulness with the rest of the setup. They leave open how another feature design or another training corpus would change the outcome.
Chain-free training brings the neural system close to the strongest Gaussian-mixture results and changes the comparison at some individual cutoffs. For the male speaker at < 10 ms, its MFCC-only score of 46.75% exceeds tri-delta’s 46.28% in the main comparison. At < 25 ms, tri-delta leads with 85.55% against 83.59%, and the female tri-delta result at < 10 ms is higher than the chain-free result at the same threshold. The follow-up supports the authors’ judgment that the Gaussian-mixture systems remain strong across tolerances. It also shows that the weakness of the default neural recipe is sensitive to how the network is trained. The ablation reports endpoint tolerances, so its improvement in those scores leaves the effect on interval overlap uncertain.
What the staged comparison can explain
The Gaussian-mixture sequence offers another comparison, though its stages combine changes instead of varying just one property. The move from monophones to tri-delta lets the system condition on neighboring sounds and use the associated dynamic feature configuration. The succeeding stages introduce frame splicing, feature projection, and speaker adaptation. In the female portion, tri-delta leads all of these settings below 10 ms. The same is true in the male portion. At the wider cutoffs, some of the later stages match or exceed it. Training stage order on its own is therefore a poor predictor of performance on the tight phone-boundary measure.
The authors emphasize how close the Gaussian-mixture systems are. The feature transforms and speaker normalization were developed in an acoustic training workflow where later stages can improve word recognition. In this evaluation, the optional stages offer different tradeoffs across tolerances and speakers. The paper gives no independent test of each transformation with every other component fixed. It is possible to rank the configurations on the reported scores, while assigning a causal effect to any transform would require a different comparison.
The paper raises frame sub-sampling as a possible reason for the default TDNN-F’s timing behavior. The neural boundaries in its illustrated utterance follow a coarser grid than the comparison boundaries. A coarser grid restricts where a system can put a phone endpoint, which becomes relevant at a tight tolerance. The chain comparison provides direct evidence about the associated topology and training setup. The paper does not present a separate sub-sampling experiment that would establish how much accuracy a finer grid recovers. The available data likewise leave the roles of corpus size and network capacity as hypotheses.
The HTK and Kaldi comparison prompts a further hypothesis. The authors point to the use of Baum–Welch training in HTK and Viterbi training in Kaldi as a possible contributor to the observed difference. Baum–Welch re-estimation distributes responsibility across possible state paths, while the Viterbi procedure uses the best path in the current estimates. The reported toolkit comparison changes other elements as well, including configurations and training resources. It establishes the relative performance of the tested systems. A direct comparison of the training algorithms would require holding those other elements fixed.
Limitations
Limits the authors identify
The authors describe the hand-aligned corpus as small in both recording time and speaker coverage. It contains a female speaker and a male speaker, with 14 m:58 s in the scored set. They attribute the scarcity to the labor of producing phonetic time annotations and the difficulty of obtaining suitable material. The authors had access to a further hand-aligned recording collection at the end of the work and proposed using it for a larger test. That plan would still leave relatively few speakers, even with considerably more annotated speech.
They also acknowledge a problem with the timing rule used when a mapped phone must be split. The conversion assigns equally long pieces to the new units. Actual speech gives different sounds different durations, and an even division can place an internal boundary away from the acoustic transition. The authors adopt it for simplicity and report that splits appear with roughly similar frequency across the tested aligners. Their proposed alternative is to estimate typical phone durations from the available annotations. They recognize that the small corpus may limit estimates for particular neighboring-phone contexts.
The paper treats the small separations among Gaussian-mixture configurations cautiously. The authors regard tri-delta as the overall leader but question whether the observed differences are large enough to justify preferring it decisively over the nearby alternatives. This caution is reflected in the results. The strongest configuration at the tight cutoff can be overtaken at a wider cutoff. The comparison shows a general advantage for the Gaussian-mixture pipeline on the chosen measures, with a less settled ordering inside that family.
The neural conclusions are provisional as well. The training corpus supplies roughly 171 h, which the authors suggest may be limited for the network training in question. They discuss the computational demands of training in Kaldi and point out that the main TDNN-F recipe leaves several architecture settings at their Mini-librispeech defaults. They propose investigating sub-sampling and changing layer dimensions, depth, and temporal context. They also discuss different Gaussian-mixture stages as sources of supervision and other neural architectures. These are conditions under which the observed ranking might change.
Access to the data imposes a separate practical limit. The authors identify CETUC, LapsBenchmark, the Constitution, and the Consumer Protection Code as freely available training datasets. LapsStory is unavailable publicly for licensing reasons, and the Spoltech and West Point data are available for purchase through the Linguistic Data Consortium. The evaluation corpus cannot be publicly released, although the authors say it can be requested. The released scripts, dictionaries, and pretrained acoustic files make alignment possible without reproducing the training corpus. Replicating the complete training and evaluation requires access to the relevant recordings.
Limits visible in the experimental design
The speaker results apply to the two voices in the corpus. With one person in each speaker portion, properties of those individuals are inseparable from the female and male labels used in the tables. Having people read the same sentences helps control the lexical material. It gives less information about alignment across a diverse set of speakers, regional pronunciations, or speaking conditions. The large count of phone tokens reflects repeated observations within the same speakers and utterances, so it supplies a more detailed picture of these recordings than of the population of possible speakers.
The scores are also conditional on the retained examples. The files removed from the original corpus are cases where connected speech complicates correspondence, which is itself part of what an aligner may encounter in practice. The exclusion is understandable for an evaluation that needs paired phone intervals. It means the reported percentages measure accuracy after resolving or filtering such cases. They leave the frequency and size of timing errors on the excluded cases unmeasured. The same qualification applies to pauses and silence, which the authors omit from the scored tokens.
Even inside the retained material, a common inventory changes some of the objects being measured. Merging sounds removes internal boundaries. Splitting a sound introduces boundaries whose locations come from the conversion rule. The frequency-based mappings use phone sequences from the evaluation utterances themselves. This preparation helps the authors compare systems that use incompatible symbols, but it makes the outcome specific to the correspondence procedure as well as to the acoustic alignment. The shared FalaBrasil inventory used by UFPAlign and EasyAlign and the separate conversion required for MFA are relevant when interpreting small differences.
The baselines also differ in how directly they have been exposed to the test material. Align-only MFA represents a user applying its existing pretrained Brazilian Portuguese resources. Its train-and-align mode represents fitting a system on the material that it will segment. EasyAlign’s resources were already trained using the dataset that supplies the reference here. These comparisons are informative about the available modes and packages. They neither isolate the effects of the underlying algorithms nor supply a common held-out estimate for every system.
Finally, the numerical outcomes concern short-range phonetic timing. They provide no direct accuracy estimate for the word and syllable tiers, although those tiers are an important part of the release. The observed differences in phone duration and endpoint placement do not resolve whether a given alignment is accurate enough for a downstream measurement such as a particular prosodic analysis. The paper evaluates agreement with one set of manually adjusted phone intervals. It leaves agreement among independent annotators, and the performance of the systems relative to that agreement, unmeasured.
What came after
Subsequent use of the paper remains undocumented in the available record of citing work. The developments the authors describe at the close of the paper are research plans and preliminary experiments within their own project.
The planned evaluation on a larger collection of hand-timed utterances addresses one immediate question. It would allow the authors to test whether the tight-boundary advantage of their Gaussian-mixture settings and the gains from chain-free training recur on another voice. They also propose estimating durations for individual phone types and using those estimates when a manual interval has to be split. That would change the construction of the scoring reference. Comparing the resulting scores with those from equal division could reveal how much the inferred split points affect the evaluation.
On the acoustic side, the authors discuss increasing the number of Gaussian components, providing neural supervision from other stages of the Gaussian-mixture pipeline, and varying temporal context and frame sub-sampling. They mention long short-term memory networks as another architecture to investigate. On the software side, they report work toward a train-and-align mode for UFPAlign and plan to make their acoustic resources compatible with MFA or Gentle. Those directions follow from distinct outcomes of the study. The release makes Brazilian Portuguese alignment resources available, while the experiments leave open how much finer timing can be gained through different training and measurement choices.
Cite
Cite as Cassio Batista, Ana Larissa Dias and Nelson Neto. 2022. Free resources for forced phonetic alignment in Brazilian Portuguese based on Kaldi toolkit. EURASIP Journal on Advances in Signal Processing.
@article{batista2022free,
title = {{Free resources for forced phonetic alignment in Brazilian Portuguese based on Kaldi toolkit}},
author = {Cassio Batista, Ana Larissa Dias and Nelson Neto},
journal = {EURASIP Journal on Advances in Signal Processing},
year = {2022},
doi = {10.1186/s13634-022-00844-9},
url = {https://doi.org/10.1186/s13634-022-00844-9}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/batista-2022-free-resources-forced-phonetic-alignment/