LPC Voice Effect

Shareable link

Settings are written to the URL as you change them. Nothing differs from the defaults yet.

Oxyd To put the result on a track with other audio, Oxyd is a multitrack editor with the same effects. Open Oxyd

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 10 resonant 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.

Questions about LPC Voice Effect

What does the LPC voice effect do?

It analyses speech 40 times a second, reduces each frame to a filter shape, a level and a pitch, and plays those numbers back through a simple synthesizer. The result is intelligible but clearly synthetic, the sound of early talking toys and computers. It reads WAV, MP3, M4A, AAC, Ogg, Opus, FLAC, AIFF and WebM audio and exports in the source format.

Is this how the talking toys of the late 1970s worked?

The method is the same: ten-pole linear predictive coding at an 8 kHz sample rate with 25 ms frames, driven by a pulse train for voiced sounds and noise for unvoiced ones, through a lattice filter. Those chips played back speech that had been analysed and hand-tuned in a lab and stored in ROM. Here the analysis runs on your recording, automatically, so the result is rougher than the factory vocabulary was.

What is the difference between the three voices?

Follow the pitch tracks the melody of the speaker's voice, so questions still rise and emphasis still lands. Monotone holds one note, 110 Hz before the Pitch slider, for a flat robot delivery. Whisper uses only the hiss, so there is no pitch at all.

Why does it work badly on music or noisy recordings?

The model assumes one voice: one pitch at a time and one mouth shaping it. A chord has several pitches and no single filter that fits it, and background noise makes voiced frames read as unvoiced. One dry, close-miked voice gives the clearest result.

What does the Poles slider change?

It sets how many resonances the filter can describe. Ten poles is enough for the first four or five formants of speech at 8 kHz and is what the classic chips used. At 4 to 6 the vowels blur toward each other. At 14 to 16 the filter starts to follow individual harmonics, which sounds more natural on low voices and buzzier on high ones.

Related tools

Browse all tools