How a Vocoder Works · Volume 1

How a Vocoder Works — Vol 01: Modulator and Carrier

A vocoder takes two sounds and makes one. The first sound, usually a voice, is never heard directly. It is measured: its spectrum is chopped into a handful of frequency bands and the loudness of each band is tracked from moment to moment. The second sound, usually a synthesizer, string pad or noise, is chopped into the same bands, and each of its bands is turned up and down by the loudness measured in the matching band of the voice. Add the bands back together and the second sound now carries the first sound’s articulation. A string section says words; a sawtooth sings a vowel; a drum loop whispers.

That one paragraph is the whole machine. The rest of this series is about why it works, what each block has to do, and what the real designs did with real components. This first volume sets out the idea, the speech science underneath it, the vocabulary, and the block diagram that the later volumes take apart one stage at a time.

Note: This is the engineer’s dive in the Vocoders program. The history of the telephone vocoder, SIGSALY and the speech coders in every phone is in The Vocoder in the Telephone Age; the records and the players are in The Vocoder in Music; the instruments themselves are surveyed in The Classic Vocoders; and four individual machines get their own build dives: MFOS 12-Band Vocoder, Elektor Vocoder, VoIS 18-Channel Stereo Vocoder and Elektronika EM-26. Where this series needs a fact from those, it cites the primary document rather than repeating the story.

1.1 Two inputs, one output

Every channel vocoder has the same three ports, whatever the labels on the panel say:

Table 1 — Every channel vocoder has the same three ports, whatever the labels on the panel say

PortCommon namesWhat it carriesWhat happens to it
Input 1modulator, speech, voice, control, analysis inputThe sound whose articulation is wanted — normally a voiceMeasured only. Its audio never reaches the output (unless deliberately mixed in).
Input 2carrier, instrument, excitation, synthesis input, “replacement signal”The sound whose timbre and pitch are wanted — a synth, organ, noiseFiltered into bands, each band gain-controlled, then summed
Outputvocoded output, synthesis outputInput 2’s pitch and timbre, shaped band by band to Input 1’s moment-to-moment spectrum—

The naming is a mess and worth settling early. The word carrier is borrowed from radio: the carrier is the high-frequency signal that a slow message modulates. Homer Dudley used exactly this language for speech itself, calling the buzz of the vocal cords and the hiss of breath a carrier that the vocal tract modulates at slow syllabic rates (“The Carrier Nature of Speech,” Bell System Technical Journal 19(4), October 1940, archive.org). In a musical vocoder the synthesizer takes over the job of the vocal cords, so it is the carrier; the voice supplies the modulation, so it is the modulator. Ray Wilson’s MFOS documentation calls the two inputs Control (voice) and Audio (instrument), which describes the electrical roles exactly: one input generates control voltages, the other is audio that those voltages control (MFOS 12 Channel Vocoder). Elektor in 1980 described the box as having “one for a speech signal and one for a ‘carrier’ or ‘replacement’ signal (in practice, this is usually some kind of ‘music’ signal)” (Elektor, January 1980, Elektor archive). The Soviet Elektronika EM-26 calls its two line inputs Line A (analysis) and Line C (synthesis), which is the most literal naming of all (EM-26 factory manual, §3).

This series uses modulator and carrier for the two signals and analysis and synthesis for the two halves of the circuit that process them.

1.1.1 What the listener hears

Three properties of the output are worth separating, because they come from different inputs:

  • Pitch comes entirely from the carrier. If the carrier is a 110 Hz sawtooth, the output is pitched at 110 Hz no matter what note the singer sings. Elektor’s 1980 user article makes the point with a fixed 100 Hz carrier: singing up and down changes the timbre, “as if a band-pass filter were being used, but … the fundamental frequency will remain the same” (Elektor, September 1980, Part 4). This is the single most common misunderstanding of the instrument, and the reason a vocoder is not a harmonizer (Vol 7 §6).
  • Timbre, in the sense of the raw tonal colour, also comes from the carrier: a bright sawtooth gives a buzzy robot, a filtered string pad gives a choir, white noise gives a whisper.
  • Articulation — which vowel, which consonant, when a syllable starts and stops — comes from the modulator, through the band envelopes.

A vocoder therefore needs both inputs active to make any sound at all. The EM-26 manual states it plainly for its own keyboard carrier: in vocoder mode, sound appears only while a chord is held and a phrase is spoken (EM-26 manual, §6). Silence in either input is silence at the output, which is why later machines added “silence bridging” (Vol 5 §6).

1.2 Why the idea works: the source–filter model of speech

The vocoder works because human speech is, to a very good first approximation, two separable things multiplied together: a source and a filter.

1.2.1 The source

The source is whatever makes the raw sound:

  • Voiced sounds — vowels, and consonants such as m, n, l, z, v — are driven by the vocal folds in the larynx. They open and close periodically, chopping the airflow from the lungs into a train of pulses. The pulse rate is the fundamental frequency, F0, which is heard as the pitch of the voice. A pulse train has a harmonic spectrum: energy at F0, 2F0, 3F0 and so on, with the harmonics falling in level as frequency rises. Adult speaking F0 is commonly given as roughly 90–155 Hz for men and 165–255 Hz for women (see the sourcing in The Vocoder in the Telephone Age). Dudley’s 1939 patent gives a pitch range of 80–320 cycles with averages of 100–150 (US 2,151,091, Google Patents).
  • Unvoiced sounds — s, sh, f, th, the bursts of p, t, k — have no periodic source. Air is forced through a narrow constriction (the teeth for s, the lips for f) and becomes turbulent. Turbulence is noise: a continuous, non-harmonic spectrum.
  • Some sounds mix the two: a z is an s with the vocal folds buzzing underneath.

Dudley’s 1936 synthesizer already had exactly this pair of sources: “a buzzer-sounding relaxation oscillator for the vocal cords and a resistance noise for the unvoiced sounds” (H. Dudley, “Synthesizing Speech,” Bell Laboratories Record 15(4), December 1936, PDF).

1.2.2 The filter

The filter is the vocal tract: the throat, mouth and, for nasal sounds, the nose. It is a tube roughly 17 cm long in an adult male, closed at the glottis and open at the lips. A tube like that has acoustic resonances, and the tongue, jaw, lips and soft palate move them around. The resonances are called formants, numbered upward from F1. Their frequencies, not the pitch, are what make an ee different from an ah.

The classic measurement is Peterson and Barney’s 1952 study of American English vowels (“Control Methods Used in a Study of the Vowels,” Journal of the Acoustical Society of America 24(2), 1952). Their averages for adult male speakers place the first three formants of the vowel in hod (/ɑ/) near 730, 1,090 and 2,440 Hz, of heed (/i/) near 270, 2,290 and 3,010 Hz, and of who’d (/u/) near 300, 870 and 2,240 Hz. Two things in those numbers matter to vocoder design:

  1. Almost all of the vowel-identifying information sits between about 250 Hz and 3,000 Hz. That is why a telephone channel of 300–3,400 Hz is intelligible, and why every analogue vocoder band table concentrates its bands there.
  2. Different vowels differ by where the peaks are, not by how many there are. Telling an /i/ from a /u/ means resolving whether there is a strong peak near 2,300 Hz or not, and whether the low peak is nearer 270 or 300 Hz. Coarse bands can catch the first difference easily; the second needs finer bands (Vol 2 §2).

1.2.3 Source × filter

The sound that leaves the lips is the source spectrum multiplied by the filter’s response. For a vowel, a comb of harmonics at multiples of F0 is shaped by a smooth envelope with peaks at the formants. Change the pitch and the comb’s teeth move closer together or further apart, but the envelope stays put; change the vowel and the envelope moves, but the comb stays put.

-40 -20 0 dB 0 1000 2000 3000 4000 1. Source: glottal buzz, F0 = 120 Hz (net slope about −6 dB/octave) -40 -20 0 dB 0 1000 2000 3000 4000 2. Filter: vocal-tract response, vowel /ɑ/ (formants F1 730, F2 1090, F3 2440 Hz) 0 500 1000 1500 2000 2500 3000 3500 4000 -40 -20 0 Frequency (Hz) dB 3. Output: source × filter = the vowel spectrum a microphone hears Formants: Peterson & Barney (1952) male averages. Slope: glottal −12 dB/oct plus lip radiation +6 dB/oct (textbook approximation).

That separability is the whole trick. The envelope carries the words; the comb carries the pitch and much of the speaker’s identity. A vocoder’s analysis half measures the envelope and throws the comb away. Its synthesis half supplies a different comb — the carrier — and imposes the measured envelope on it. The output is a new source through the old filter.

Note: The source–filter separation is an approximation. Real vocal folds interact with the tract above them, formants move during a vowel, and the glottal pulse shape changes with loudness. For vocoder purposes the approximation is excellent, which is why an eight-band device built from 1980s op-amps can make a synthesizer speak at all.

1.3 Sampling the envelope: what a channel vocoder actually measures

The spectral envelope is a continuous curve. A channel vocoder samples it at a small number of points, one per band, and tracks each sample over time.

1.3.1 The analysis half

For each band the analysis half does three things:

  1. Band-pass filter the modulator, keeping only the energy within that band (Vol 2).
  2. Rectify the filtered signal, turning an audio waveform that swings positive and negative into a one-signed signal whose average tracks its amplitude (Vol 3 §2).
  3. Smooth the rectified signal with a low-pass filter, leaving a slowly varying voltage — the band’s envelope or control voltage (Vol 3 §3).

The three stages together are the envelope follower for that band. Dudley described his 1939 vocoder in exactly these terms: each spectrum channel was “a band filter, then a rectifier, then a 25-cycle low-pass filter” (“The Vocoder,” Bell Laboratories Record 18(4), December 1939, PDF). Forty-one years later Elektor’s description of its own analyser is the same sentence in different words: “The output from each filter is rectified and passed through a low-pass filter; the total result is a set of varying DC voltages, each corresponding to the ‘envelope’ of the speech signal within that particular frequency band” (Elektor, January 1980).

1.3.2 The synthesis half

For each band the synthesis half does two things:

  1. Band-pass filter the carrier with a filter matched to the analysis filter for that band.
  2. Multiply the filtered carrier by that band’s control voltage, in a voltage-controlled amplifier (VCA) or other multiplier (Vol 4).

The VCA outputs are then summed into the output. Elektor again: “The output level in each band is varied by a voltage controlled amplifier (VCA) that is driven by one of the varying DC control voltages produced by the analyser section … The outputs of all VCAs are then summed, to produce the total output signal.”

1.3.3 The block diagram

ANALYSIS (modulator: voice) SYNTHESIS (carrier: synth, pad, noise) Mic / linepreamp Carrierpreamp BPF f1 rectify smooth BPF f2 rectify smooth BPF f3 rectify smooth BPF f4 rectify smooth BPF f1 BPF f2 BPF f3 BPF f4 VCA 1VCA 2VCA 3VCA 4 control voltages (tens of Hz) Σ output Analysis and synthesis filters for the same band are matched (identical).

The figure is drawn for four bands; real designs use from eight (PAiA 6710) to twenty (Sennheiser VSM 201) in hardware, and many more in software. Every block in it has a volume of its own in this series:

Table 2 — The figure is drawn for four bands; real designs use from eight (PAiA 6710) to twenty (Sennheiser VSM 201) in hardware, and many more in software. Every block in it has a volume of its own in this series

BlockWhat it decidesVolume
Input stagesMic versus line level, gain, pre-emphasis, compressionVol 6 §6–7
Analysis and synthesis filtersNumber of bands, spacing, Q, slope, matchingVol 2
Rectifier and smoothingSpeed versus ripple; attack and releaseVol 3
VCA and summingMultiplier type, linearity, CV breakthrough, polarity, noiseVol 4
Unvoiced handlingWhat to do about s, t, f when the carrier has no hissVol 5
CarrierWhat makes a good oneVol 6

1.3.4 Dudley’s version and the musical version

Dudley’s vocoder and a studio vocoder share the analysis half but differ in what feeds the synthesis half.

  • Dudley’s 1939 vocoder transmitted the band envelopes plus a pitch channel — “a slowly varying current proportional to pitch, which is zero for unvoiced sounds” — and the receiving synthesizer regenerated its own source from that: a relaxation oscillator at the measured pitch for voiced sounds, and a noise source switched in by a relay for unvoiced ones (Dudley, December 1939). The receiver rebuilt the original talker’s speech, pitch and all.
  • A musical vocoder has no pitch channel at all. Harald Bode’s design, as Tom Rhea described it in 1980, has an envelope follower per channel driving a VCA on the matching carrier channel, a vocoding range up to about 5 kHz, and no pitch extractor (Tom Rhea, “Harald Bode’s Vocoder,” eContact! 13.4). The performer’s keyboard or synthesizer replaces Dudley’s relaxation oscillator.

Dudley’s own demonstrations show the musical version was always latent in the telephone one. In 1939 his demonstrator replaced the pitch-controlled buzz with fixed pitches to sing duets with himself, and with an automobile horn, an airplane roar, organ, locomotive puffs and a church bell (Dudley, December 1939; details in The Vocoder in the Telephone Age). Each of those is simply a different carrier.

Figure 1 — Dudley's 1940 schematic of the vocoder: analyser band filters, rectifiers and low-pass filters on the left, control channels in the middle, synthesizer with buzz and hiss sources on the right.
Figure 1 — Dudley's 1940 schematic of the vocoder: analyser band filters, rectifiers and low-pass filters on the left, control channels in the middle, synthesizer with buzz and hiss sources on the right. — H. Dudley, "The Carrier Nature of Speech," Bell System Technical Journal 19(4), 1940, Fig. 7, via Wikimedia Commons (CC BY-SA 3.0 as tagged)

1.4 The information-rate argument

The reason Dudley built the vocoder was bandwidth, and the arithmetic explains a good deal about what the analysis half must preserve.

1.4.1 How slow is “slow”?

A band envelope can only change as fast as the vocal tract can move. Dudley’s 1939 patent says each variable changes “no more than about 8 to 10 times per second” (US 2,151,091). His 1939 vocoder low-passed each envelope at 25 Hz (Dudley, December 1939). SIGSALY, the wartime secure telephone built on the vocoder, sampled each channel every 20 ms — 50 samples per second — after a 25 Hz low-pass (NSA Center for Cryptologic History, The Start of the Digital Revolution: SIGSALY, 2000, PDF; Crypto Museum, SIGSALY). The two numbers agree with each other by the sampling theorem: a signal band-limited to 25 Hz is fully described by samples at 2 × 25 = 50 per second.

1.4.2 The compression ratio

With 10 spectrum channels and 1 pitch channel each limited to 25 Hz, the raw information bandwidth is

11 × 25 Hz = 275 Hz

before any guard bands. Dudley’s patent allows “1.50X200 cycles or 300 cycles” for ten control channels including 50 % guard space, and for a twelve-channel circuit “270 cycles for 2900 cycle speech” — the commercial telephone band. The ratio is roughly 2,900 / 270 ≈ 10:1 (US 2,151,091). The calculation is worth carrying into the musical case because it says something about design: whatever the vocoder does, the analysis half need only deliver signals that change at tens of hertz. Anything faster in the control voltages is either ripple from the rectifier (unwanted, Vol 3 §4) or transient detail of consonants (wanted, but small).

1.4.3 What is thrown away

The analysis half discards three things, and each has consequences heard in every vocoder:

  • The harmonic fine structure. Within one band the voice may contain three or four harmonics; the envelope follower reports their combined level and nothing about where they sit. Two vowels whose formants fall in the same band look identical. This is the main reason band count matters (Vol 2 §2).
  • Phase. Dudley noted in 1940 that phase is unimportant in the carrier and important in the message, meaning the slow modulation. The channel vocoder keeps only magnitude envelopes. The phase vocoder, a different instrument with the same name, keeps the phase (Vol 7 §2).
  • Pitch. The musical vocoder replaces it with the carrier’s.

What survives is a coarse, slowly updated picture of where the energy is. That turns out to be enough for intelligible speech, provided the carrier has energy where the picture needs it (Vol 6 §2) and the unvoiced sounds are handled somehow (Vol 5).

1.5 A vocoder as a time-varying graphic equaliser

A useful engineering picture: the synthesis half is a graphic equaliser with one slider per band, and the analysis half is a robot moving all the sliders at once, tens of times per second, to copy the spectral shape of the voice.

The picture explains several things at once:

  • Why the carrier must be broadband. An equaliser can only cut or pass what is already there. If the carrier has no energy at 3 kHz, no setting of the 3 kHz slider will put any there. Vol 6 §2 works through the arithmetic for a 110 Hz and a 440 Hz sawtooth against a real band table.
  • Why a freeze switch makes a formant filter. Stop the robot, and the sliders hold one vowel’s shape; the vocoder becomes a fixed filter bank imposing that vowel on whatever is played. The VoIS brochure describes exactly this: with the envelope frozen, “the vocoder acts like a pitch-adjustable formant filter” (VoIS brochure, Stephan Hörold). Vol 5 §7 covers slew and freeze.
  • Why the band edges are audible. An equaliser with ten sliders cannot draw a smooth curve. With few bands, formant peaks get quantised to the nearest band centre, and gliding formants step from band to band. That stepping is the “robot” in robot voice as much as the fixed pitch is.
Control voltages across the word "see" (schematic, not a measurement) Darker = larger envelope. Rows: band centre; columns: 25 ms frames. 5 kHz3.4 kHz2.3 kHz1.6 kHz 1.1 kHz740 Hz500 Hz270 Hz /s/ : noise, top bands /i/ : F1 ≈ 270 Hz, F2 ≈ 2,290 Hz time → (about 18 frames ≈ 450 ms) F2F1

The schematic above shows what the control voltages of a small vocoder do across a short word such as “see”: the high bands open first for the s, then fall silent as the vowel’s energy appears in the low and middle bands. Read across a row and the row is one control voltage over time; read down a column and the column is one moment’s coarse spectrum. A real band display — the LED column on an Elektor filter module, the per-channel LEDs on the VoIS — shows exactly this pattern as it happens.

1.6 The two halves must match

A detail that sounds trivial and is not: the analysis filter and the synthesis filter for each band should be the same filter.

If the analysis filter for “band 5” is centred at 800 Hz and the synthesis filter for “band 5” is centred at 850 Hz, the voice’s energy near 800 Hz controls the carrier’s energy near 850 Hz. Every formant is then reproduced a little sharp — the same effect as Elektor’s deliberate formant shift trick, which cross-patches analyser outputs to the control inputs of higher synthesis channels and makes the voice more “Donald Duck” the further it is moved (Elektor, September 1980). One band slightly off-tune is a coloration; a systematic mismatch is a formant shift.

Every serious design addresses matching:

Table 3 — Every serious design addresses matching

DesignHow the two filters are matched
MFOS 12-channel (Ray Wilson, 2013)“each band consists of two identical active filters” — same schematic, same values, two op-amp sections of one TL072 per band
Elektor (1980)One plug-in board per channel carries both filters with the same capacitor values from one table row
VoIS (Hörold, 2018–20)C0G/NP0 capacitors fitted in alternating order from one tape, C1, C9, C2, C10 …, so analysis and synthesis filters get adjacent parts from the same reel; adjacent 10 kΩ resistors from the tape for the rectifier (VoIS Assembly and Tuning Guide, Rev. 1.07, §11)
PAiA 6710 (Craig Anderton)“If you’re really a fanatic, you can match resistors and capacitors for each pair of filters although I haven’t felt any need to do this” (PAiA 6710 manual)

The VoIS instruction is the most explicit statement anywhere of why the problem matters: consecutive parts from one reel are the closest a builder can get to matched parts without a bridge. Vol 2 §8 works out how much a 5 % capacitor tolerance moves a filter.

1.7 What a vocoder is not

Four devices are routinely called vocoders and work on different principles. They are treated properly in Vol 7 §6 and, with the records that made them famous, in The Vocoder in Music; for orientation:

  • Talk box. An instrument’s sound is pumped acoustically up a tube into the performer’s mouth, which shapes it; a microphone picks up the result. No analysis, no bands: the mouth is the filter. Ray Wilson uses it in the MFOS documentation as the intuitive model for what a vocoder does by more roundabout means.
  • Auto-Tune at fast retune speed. Pitch detection and correction of a single voice. No carrier.
  • Harmonizer. Pitch-shifted copies of the voice. No carrier; any “vocoder” preset imitates the timbre.
  • Formant filter. A fixed or swept set of resonances imitating vowels. No analysis of a live signal — in effect a vocoder permanently frozen.

The test is simple. A vocoder has two inputs and needs both. If the device has one input, it is something else.

1.8 The vocabulary, collected

Table 4 — 8. The vocabulary, collected

TermMeaning in this series
Band, channelOne analysis filter + envelope follower + synthesis filter + VCA. “10-channel” and “10-band” mean the same thing.
Analysis / analyserThe half that measures the modulator
Synthesis / synthesiserThe half that shapes the carrier
Envelope, control voltage (CV)The slowly varying output of one band’s envelope follower
Envelope followerBand-pass filter output → rectifier → smoothing filter
VCAThe multiplier that sets the carrier band’s gain from the CV
FormantA resonance of the vocal tract; a peak in the spectral envelope
F0Fundamental frequency (pitch) of the voice or carrier
Voiced / unvoiced (V/UV)Periodic (vocal-fold) versus noise-excited speech sounds
SibilanceThe high-frequency hiss of s, sh, z
HF bypassFeeding the modulator’s top band straight to the output (Bode; Vol 5 §4)
Slew, freezeSlowing or holding the control voltages (Vol 5 §7)
QCentre frequency ÷ −3 dB bandwidth of a resonant filter (Vol 2 §3)
Filter order, polesNumber of reactive elements; sets the slope, 6 dB/octave per pole

1.9 A first look at real numbers

To make the abstractions concrete before Vol 2 does so properly, here is how five designs divide the spectrum — Dudley’s and four that are on the bench in this program. Each is cited to its own documentation; the EM-26 centre frequencies are calculated in Vol 2 §5 from the component values on the factory schematic, because the manual does not list them.

Table 5 — 9. A first look at real numbers

DesignChannelsLowestHighestFilterEnvelope / VCA
Dudley vocoder (1939)10 spectrum + pitch0–250 Hz band2,650–2,950 Hz300 Hz-wide bands, linearrectifier + 25 Hz low-pass
Elektor (Jan/Feb 1980)10low-pass, 30–200 Hzhigh-pass above 4,600 Hz4th-order (24 dB/oct), stagger-tuned MFBfull-wave rectifier, active low-pass; CA3080 OTA
MFOS (Wilson, 2013)12low-pass 100 Hzhigh-pass 3,330 Hz2nd-order MFBprecision full-wave, two RC poles; LM13700 OTA
Elektronika EM-26 (c. 1988–91)10≈ 150 Hz (calc.)≈ 4.7 kHz (calc.)4th-order, two MFB sectionsprecision rectifier; КР159НТ1Е matched-pair multiplier
VoIS (Hörold, 2018–20)18, stereo120 Hz7 kHz8-pole MFBadjustable slew; V/UV, silence bridging

Two patterns are already visible. The modern designs reach higher in frequency (5–7 kHz) than Dudley’s telephone-bandwidth bank did, because a musical vocoder does not have to fit down a telephone line and sibilance lives above 4 kHz. And the designs that use fewer bands use steeper filters, which is exactly the trade Elektor described in 1980: ten channels can use 24 dB/octave filters; a twenty-channel design needs filters of “approximately 50 dB/octave” and “careful design and expensive components” (Elektor, January 1980). Vol 2 takes that trade apart.

1.10 Reading the rest of the series

The volumes follow the signal:

  • Vol 2, The Filter Bank — band count and spacing (linear, logarithmic, critical-band), Q and slope, the multiple-feedback band-pass filter, stagger tuning, matching, and the band tables of the real designs computed from their parts lists.
  • Vol 3, Envelope Followers — rectifiers, smoothing, and the trade between speed and ripple, with the time constants of the MFOS, Elektor and EM-26 worked out.
  • Vol 4, VCAs and Synthesis — operational transconductance amplifiers, matched-pair multipliers and compander chips; summing, polarity alternation, breakthrough and noise.
  • Vol 5, Voiced, Unvoiced and Sibilance — the consonant problem and its four answers: HF bypass, noise substitution, V/UV detection and silence bridging; plus slew and freeze.
  • Vol 6, Carriers and Modulators — what makes a carrier work, and what else can be a modulator; levels and compression.
  • Vol 7, Digital Vocoders and Cousins — the FFT vocoder, the phase vocoder, LPC, neural vocoders, and what the talk box, Auto-Tune and the harmonizer really are.
  • Vol 8, Design Reference — a worked ten-band design with every value calculated, a test and calibration procedure, formulas and a glossary.

Each later volume assumes the vocabulary of §8 and the block diagram of §3.3.

Comments (0)

  1. Loading…

Comments are held for moderation — nothing appears until approved.