Problemcore
Formant estimation
Also called formant tracking.
Find the resonance frequencies of the vocal tract over time, often as the angles of the roots of an LPC polynomial.
Formant estimation is the problem of finding the formants of speech, the resonance frequencies and bandwidths of the vocal tract, in each short frame, and formant tracking adds the task of linking them across frames into smooth tracks . The usual method fits an all-pole model by linear predictive coding and reads the formants from the roots of its polynomial, which turns the problem into polynomial root finding. It is the inverse of formant synthesis, which makes speech from given formants, and it is a different task from pitch detection: the pitch is a property of the source, the formants are properties of the filter in the source-filter model.
In plain words
Your mouth and throat are a tube, and a tube makes some frequencies louder than others. These loud regions are the formants. When you change a vowel, from "ee" to "ah", you change the shape of the tube and the formants move. The first two formants are enough to tell most vowels apart. A formant estimator looks at a short piece of a recording, about 25 milliseconds, and says where these loud regions are and how wide they are. A tracker does this every few milliseconds and joins the answers into lines. The hard parts are telling the formants apart from the harmonics of the voice, finding two formants that are close together, and not losing a weak formant.
Definition
Input. A speech signal sampled at , cut into frames (often 20 to 30 ms, every 5 to 10 ms), and a number of formants to report (often 3 or 4).
Model. In a voiced frame without nasal coupling, the vocal tract acts as an all-pole filter,
excited by a periodic source. Each pole pair is a formant with frequency and bandwidth
Output. For each frame , the values with , the formants of the vocal tract, or no value for frames without a clear resonance structure, such as silence.
Measure. Errors are measured against hand-labeled tracks or against synthetic speech with known formants, as the mean absolute error in Hz per formant. No exact answer exists for real speech, since the all-pole model is an approximation.
Variants
- Frame estimation. Each frame alone, giving candidate resonances.
- Tracking. Assign the candidates to over time with continuity, usually by dynamic programming or a Kalman filter.
- With antiresonances. For nasals and some consonants the tract has zeros as well as poles; a pole-zero model is then needed.
- Formants of singing. The high pitch of sopranos samples the spectral envelope at widely spaced harmonics, which makes the formants hard to see.
Examples
One pole pair. The polynomial has the roots . Their modulus is and their angle is rad. At Hz this gives Hz and Hz. This is the resonator of the example on the formant synthesis page, so estimation recovers what synthesis put in.
A synthetic vowel. Pass a 100 Hz pulse train at Hz through two resonances, (500 Hz, 60 Hz) and (1500 Hz, 100 Hz), so the true is
Take 400 samples from sample 1000, apply a Hamming window, and fit LPC of order 4 by the autocorrelation method and the Levinson-Durbin recursion. The fitted polynomial is , and its roots give
| true | estimated | |
|---|---|---|
| , | 500, 60 | 500.3, 44.0 |
| , | 1500, 100 | 1501.5, 91.6 |
The frequencies are within 2 Hz, but the bandwidths come out too small; the window and the harmonic source bias them. With order 10 on the same frame, the two formants are again found (500.1 Hz with = 42.5 Hz and 1500.1 Hz with = 89.7 Hz), together with three extra root pairs at 813, 2467 and 4202 Hz whose bandwidths exceed 3600 Hz. A bandwidth limit removes them.
A non-example. In a nasal such as /m/, the closed mouth adds antiresonances. An all-pole fit then places poles to imitate the dips, and the roots no longer match the resonances of the tract.
Known algorithms
- LPC roots. Fit LPC of order about , find the roots of with a companion matrix eigenvalue solver or the Durand-Kerner method, keep the roots with positive angle and a bandwidth under a limit, and sort them by frequency. This is the most common method; the order rule is a heuristic.
- LPC spectrum peaks. Evaluate on a grid and pick the peaks, which avoids root finding but can merge close formants. McCandless (1974) used peaks of the LPC spectrum with rules for continuity between frames.
- Cepstral smoothing. Keep the low quefrencies of the cepstrum to get a smoothed spectrum without the harmonics, and pick its peaks.
- Tracking by dynamic programming. Score each assignment of candidates to by bandwidth and by the change from the last frame, and find the best sequence, as for the candidates of the RAPT pitch tracker.
- Kalman and learned trackers. State space models smooth the tracks, and neural networks trained on labeled data predict formants directly.
Bounds
- At most formants from order . A real polynomial of degree has at most complex-conjugate root pairs, so LPC of order can show at most resonances. This is a theorem.
- Resolution. In a frame of samples the spectral resolution is about Hz, so two formants closer than that are hard to separate with spectral peak picking. Parametric fits do better, but not much better when noise is present. This is a heuristic.
- Sampling by harmonics. A voiced spectrum has values only at multiples of . With Hz, a formant at 500 Hz lies between the harmonics at 300 and 600 Hz, and the estimates are pulled toward the harmonics. This bias grows with and is a known measured effect.
- Cost. The autocorrelation LPC of a frame costs and the roots with a companion matrix. At the usual orders, 10 to 18, this is small next to the cost of reading the signal.
Reductions
- To root finding. Given the LPC polynomial, the formants are its roots mapped by and .
- To the normal equations. Fitting the all-pole model by least squares is the linear prediction problem, solved by the Levinson-Durbin recursion in time.
- Tracking to shortest paths. With a cost per candidate and per transition, choosing a track is a shortest path in a layered graph.
Applications
- Phonetics. Vowel charts of against , studies of accents, and speech development.
- Speech synthesis. The parameters for formant synthesis come from formant analysis of natural speech.
- Forensic and clinical work. Speaker comparison and voice disorder assessment use formant measurements.
- Features. Early speech recognizers used formants; modern ones use MFCC or learned features, which carry the same information less explicitly.
References
- Stanley S. McCandless, An algorithm for automatic formant extraction using linear prediction spectra, IEEE Transactions on Acoustics, Speech, and Signal Processing 22(2), 1974, 135 to 141, the formant candidates from the peaks of the LPC spectrum and the use of continuity between frames
- Lawrence R. Rabiner and Ronald W. Schafer, Digital Processing of Speech Signals, Prentice-Hall, 1978, Chapter 8 (linear predictive coding of speech, including formant analysis from the predictor polynomial) and Chapter 7 (homomorphic speech processing, formants from the smoothed spectrum)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 6E4ZBZ Edit this page History Report an error Markdown