Rebuild a voice from almost nothing. Linear predictive coding does not store or replay the waveform. It measures the voice a frame at a time and keeps a short list of numbers, then hands them to a synthesizer that has only a buzz and a hiss to work with.
What survives the analysis
Every 25 ms the recording is reduced to four things:
- the shape of the vocal tract, as a filter with
10resonant poles, - how loud the frame is,
- whether it is voiced (a vowel, an “m”) or unvoiced (an “s”, an “f”),
- the pitch, if it is voiced.
Everything else is discarded: breath, the grain of the voice, the room. Speech stays intelligible because vowels and consonants are told apart almost entirely by the filter shape.
The synthesizer
A voiced frame is rebuilt from a pulse train at the measured pitch. An unvoiced frame is rebuilt from white noise. Either one is passed through the ten-pole filter and scaled to the frame’s level.
The filter is a lattice, driven by reflection coefficients, which is the structure the speech chips of the late 1970s used. A lattice stays stable while its coefficients are interpolated from one frame to the next. That interpolation is why the voice glides between sounds and does not step.
Voice and Pitch
Follow the pitch keeps the speaker’s intonation. Pitch is measured by autocorrelation between 60 and 400 Hz.
Monotone ignores the measured pitch and holds 110 Hz. Consonants still switch to hiss, so the speech stays clear.
Whisper uses the hiss for every frame.
Pitch moves the buzz up or down by up to 12 semitones. It does not move the filter, so the voice changes register without the vowels changing size. This is the opposite of speeding a recording up, where both move together.
Poles
Poles is the order of the filter, from 4 to 16. Each pair of poles can describe one resonance.
| Poles | Result |
|---|---|
4 to 6 |
Two or three broad resonances. Vowels blur together. |
10 |
The classic chip. Four or five formants, clear speech. |
14 to 16 |
Follows fine detail. More natural on low voices, buzzy on high ones. |
Why it sounds like 1978
The whole process runs at about 8 kHz, so nothing above 3.6 kHz survives. The recording is filtered and brought down to that rate before analysis, and the synthesizer’s output is held between samples on the way back up, as a simple converter would.
The analysis itself is the textbook method: pre-emphasis, a 30 ms Hamming window, autocorrelation, and the Levinson-Durbin recursion. The same four steps, with ten poles and forty frames a second, describe the LPC-10 voice coder and the speech chips built on the idea.
Limits
It models one voice. Two people talking over each other, a voice over music, or a noisy room all break the assumption of one pitch and one filter, and the output turns to a warble.
Pitch tracking makes mistakes on creaky or very breathy voices. Monotone avoids the problem, since it does not use the measured pitch.
The output is mono and arrives 40 ms after the input, the time the analysis needs to see a frame before it can speak it. The preview and the export both account for that delay.