The Vocoder in the Telephone Age · Volume 7
The Vocoder in the Telephone Age — Vol 07: The Phase Vocoder
Every vocoder in Vols 1 to 6 works by throwing information away. Dudley’s carrier theory says the fine structure of speech — the exact waveform, the phase of every harmonic — does not matter to the listener, so the channel vocoder keeps only the slowly varying envelope in each band and regenerates the rest. That is what makes it a compressor, and what makes it sound like a machine.
In November 1966 two Bell Labs engineers, J. L. Flanagan and R. M. Golden, published a vocoder that kept the phase. Their phase vocoder described each band by both its amplitude and its phase, and could therefore rebuild the original signal almost exactly. The telephone, in the end, went to other branches of the family (Vol 6, Vol 8). As a way of looking at sound — as a sliding short-time Fourier transform, in later language — it became one of the most important tools in digital audio, the engine behind time-stretching, pitch-shifting and a large part of computer music. It is also the reason the word “vocoder” now has two meanings in the studio, which do not refer to the same thing.
This volume explains what the phase vocoder is, how it relates to Dudley’s channel vocoder, how it stretches and shifts sound, and how the family split.
7.1 The paper
Flanagan, J. L. & Golden, R. M., “Phase Vocoder,” Bell System Technical Journal 45(9): 1493–1509, November 1966, DOI 10.1002/j.1538-7305.1966.tb01706.x (BSTJ vol. 45 issue 9 (VTDA); Wikipedia: Phase vocoder). The paper has been reprinted in Musica/Tecnologia 7 (2013): 9–25 (FUP open journals) — a telling venue for a Bell System telephone paper.
The phase vocoder represents speech by short-time amplitude and phase spectra (CCRMA: Phase Vocoder). Its motivation was still the telephone. The channel vocoder was intelligible but unnatural — Manfred Schroeder, the same year, called it an “unpleasant electrical accent” (CCRMA) — and much of the unnaturalness came from discarding phase and regenerating the excitation with a buzz source and a pitch tracker (Vol 3 §4.4). Flanagan and Golden’s approach removed the pitch tracker entirely. If each band’s phase is transmitted, the excitation does not need to be regenerated: it is carried, band by band, in the phase.
Note: The 1966 paper’s own bandwidth-compression figures are not given here. The paper was not read in full for this dive, and secondary sources do not quote them reliably. Readers wanting the numbers should go to the BSTJ original or the 2013 reprint.
7.2 From filter bank to Fourier transform
7.2.1 What a channel actually measures
In the channel vocoder (Vol 3 §2.2), each channel is a band-pass filter followed by a rectifier and a low-pass filter. The rectifier and low-pass together extract the envelope of the band-passed signal — its slowly varying amplitude — and throw away everything else.
Consider what “everything else” is. A band-passed signal centred on f_c can be written as a slowly varying amplitude A(t) multiplying a cosine whose phase φ(t) also varies:
x_band(t) = A(t) cos(2πf_ct + φ(t))
The channel vocoder keeps A(t). The phase φ(t) — which encodes exactly where in the band the energy lies, and therefore which harmonic of the voice is present — is discarded. The synthesizer then puts energy into the band from its own source at its own frequencies.
The phase vocoder keeps both. Instead of rectifying, it demodulates each band coherently: it multiplies the band signal by a cosine and a sine at the band’s centre frequency and low-passes both products. The two outputs, the in-phase and quadrature components, together form a complex number per band per instant, whose magnitude is A(t) and whose angle is φ(t). Both are slowly varying and can be sampled at a low rate. At the receiver, each band is rebuilt as a cosine at the centre frequency, shifted by the received phase and scaled by the received amplitude, and the bands are summed. If the filter bank is designed properly, the sum is the original signal.
7.2.2 The STFT reading
The second idea, which made the phase vocoder important outside telephony, is that this bank of coherently demodulated filters is a Fourier transform. A bank of band-pass filters with equally spaced centres, each followed by complex demodulation, computes at each instant the Fourier transform of a short, windowed stretch of the signal around that instant — a short-time Fourier transform (STFT). The filter shape becomes the window; the filter spacing becomes the frequency resolution; the sampling of the outputs becomes the hop between successive transforms (CCRMA: Phase Vocoder).
In 1966 that equivalence was mostly of theoretical interest; the phase vocoder was built, or simulated, as a filter bank. Once the fast Fourier transform had become routine in the following decade, the reading reversed. A phase vocoder became an FFT taken every few milliseconds on overlapping windows, with the magnitude and phase of every bin as its “channels”. A 1,024-point FFT at a 44.1 kHz sample rate gives 513 such channels, each about 43 Hz wide — a phase vocoder with fifty times Dudley’s channel count, computed in software.
7.2.3 The ancestor of the spectrogram reading
Dudley’s own figures already pointed this way. The December 1939 Bell Laboratories Record printed oscillograms of the phrase “She saw Mary” analysed into its ten band currents plus pitch, stacked one above another against time (Dudley, Record, Dec 1939, p. 125). That is a coarse time–frequency picture of speech — ten rows of magnitude against time, with no phase. A modern spectrogram is the same picture with hundreds of rows. The phase vocoder adds the one thing the picture lacks: the phase in every cell, which is what makes the picture invertible.

7.2.4 Window, hop and resolution in numbers
The STFT reading turns the phase vocoder’s design into three numbers: the window length N (in samples), the hop R between successive windows, and the sample rate fₛ. The channel spacing is fₛ/N; the time span of each analysis is N/fₛ; and the frame rate is fₛ/R. Two typical settings, one for telephone speech and one for music, make the trade-off concrete. (The values are illustrative choices, not taken from any standard.)
Table 1 — 2.4 Window, hop and resolution in numbers
| Setting | fₛ | N | Window span | Channel spacing | Hop R | Frame interval |
|---|---|---|---|---|---|---|
| Telephone speech | 8 kHz | 256 | 32 ms | 31.25 Hz | 64 | 8 ms |
| Music | 44.1 kHz | 1,024 | 23.2 ms | 43.1 Hz | 256 | 5.8 ms |
| Dudley, 1939 (for comparison) | analog | — | ~25 Hz smoothing | 300 Hz bands | — | ~20 ms (≈ 1/50 s) |
The product of window span and channel spacing is fixed at one for a given window shape: halve one and the other doubles. That is the time–frequency uncertainty principle in its engineering form, and it governs everything in §4.4. Dudley’s 300 Hz bands sit at the opposite extreme from a modern STFT: very coarse in frequency, which is why each band needs only a 25 Hz envelope and why the channel vocoder could not possibly keep phase usefully — a 300 Hz band holds several harmonics of a voice, and a single phase cannot describe them all. A 31 Hz channel holds at most one harmonic of a typical voice, and its phase then means something precise: the phase of that harmonic.
7.3 Phase as frequency
7.3.1 Instantaneous frequency
Why would anyone want the phase of a channel? Because the rate of change of phase is frequency. If a single harmonic of the voice lies in a channel centred on f_c but actually sits at f_c + Δf, the channel’s demodulated phase advances by 2πΔf radians every second. Measuring how much the phase advances between two successive frames, separated by a hop of R samples at sample rate f_s, gives
Δf = (Δφ / 2π) · (f_s / R)
and so the true frequency of the component inside the channel, to a precision far finer than the channel width. A 43 Hz-wide FFT bin can locate a harmonic to a fraction of a hertz.
There is a practical snag. A measured phase is only known modulo 2π, so the measured advance between frames is ambiguous by whole turns. The phase vocoder resolves it by knowing the channel’s expected advance (from its centre frequency and the hop size), subtracting that, wrapping the remainder into the range −π to π, and adding it back. This phase unwrapping works provided the hop is short enough that a component’s offset from the channel centre advances the phase by less than half a cycle per hop: |Δf| < fₛ/(2R). With a hop of a quarter of the window (R = N/4), that limit is two channel spacings, comfortably wider than the channel itself — one reason phase vocoders use heavily overlapped windows, typically four or more frames per window length.
7.3.2 Why this matters
With instantaneous frequency per channel, the phase vocoder knows, at each frame, what frequencies are present and how loud each one is. That is a complete, editable description of the sound, and it is the key to everything in §4. It also explains the phase vocoder’s relationship to Dudley’s carrier theory. Dudley separated speech into a slow message and a fast carrier and discarded the carrier. The phase vocoder keeps the carrier — the frequencies — but represents it slowly, as a phase that changes from frame to frame. Phase is the carrier, sampled.
7.3.3 A worked example
Take the music setting of §2.4: fₛ = 44,100 Hz, N = 1,024, R = 256. Channel k = 10 is centred on 10 × 44,100/1,024 ≈ 430.66 Hz. Suppose a partial of 440 Hz — concert A — falls in that channel.
- Expected advance. A component exactly at the channel centre advances by f × R/fₛ = 430.66 × 256/44,100 = 2.500 cycles per hop. Modulo one cycle, that is 0.500 cycle, or π radians.
- Measured advance. The 440 Hz partial actually advances 440 × 256/44,100 = 2.554 cycles per hop. The phase vocoder sees only the fractional part, 0.554 cycle (about 3.48 rad).
- Deviation. Subtracting the expected fractional advance leaves 0.554 − 0.500 = 0.054 cycle (about 0.34 rad), well inside ±0.5 cycle, so there is no ambiguity.
- Frequency. The deviation corresponds to 0.054 × 44,100/256 ≈ 9.3 Hz above the channel centre: 430.66 + 9.3 ≈ 440.0 Hz.
A channel 43 Hz wide has located the partial to within the rounding of this arithmetic. Had the hop been four times longer (R = 1,024, no overlap), the deviation would have been four times larger, 0.22 cycle — still unambiguous for this partial, but a component at the channel edge (21.5 Hz from the centre) would then reach half a cycle, and anything further out, such as a neighbouring partial leaking into the channel, would be assigned to the wrong frequency. Overlap buys unambiguous phase.
7.4 Stretching and shifting
7.4.1 Time-stretch
To make a sound last longer without changing its pitch, a phase vocoder analyses the input at one hop size, Rₐ, and resynthesises at a larger one, Rₛ. Each analysis frame becomes one synthesis frame; there are as many of each, but the synthesis frames are spread further apart in time, so the output is longer by the ratio Rₛ/Rₐ.
Spreading the frames is easy. The subtle part is the phase. If each output frame simply reused its input frame’s phase, adjacent output frames would no longer join smoothly, because each component would have advanced by a phase appropriate to Rₐ but been placed Rₛ later. Instead the phase vocoder advances each channel’s output phase by its measured instantaneous frequency (§3.1) multiplied by the synthesis hop. Every component then continues at its own frequency across the gap, and the overlap-added result is a smooth, longer sound at the original pitch.
That is the operation behind the “time-stretch” control in every digital audio workstation: slowing a recording down for transcription, fitting a drum loop to a new tempo, extending a sustained note.
7.4.2 Pitch-shift
Pitch-shifting is time-stretching followed by resampling. To raise the pitch by a ratio r without changing the duration, the phase vocoder first stretches the sound in time by r (so it is r times longer at the original pitch) and then resamples it to play r times faster (so it returns to its original duration, with every frequency multiplied by r). The same logic run the other way lowers pitch. Variants of the method shift the frequencies in the spectral domain directly, but the principle is the same: the phase vocoder separates time from frequency, so either can be changed without the other.
A pitch shift moves the formants with the harmonics, which is why a vocal shifted up a fifth by a plain phase vocoder sounds like a smaller person. Correcting that — shifting the harmonics while keeping the spectral envelope where it was — requires separating envelope from fine structure, which is precisely what Dudley’s channel vocoder does. Modern formant-preserving pitch shifters combine the two families: the phase vocoder for the harmonics, an envelope estimate in the spirit of the channel vocoder for the formants.
7.4.3 A stretch in numbers
With the music setting, a 2:1 stretch uses Rₐ = 256 and Rₛ = 512. One second of input contains 44,100/256 ≈ 172 analysis frames; the output places the same 172 frames 512 samples apart, so it lasts about 2 s. In each frame, channel 10’s output phase advances not by the 2.554 cycles measured over the analysis hop but by 2 × 2.554 = 5.108 cycles over the synthesis hop — the partial keeps oscillating at 440 Hz for twice as long. A 1.5:1 stretch would use Rₛ = 384 and multiply the advance by 1.5; any ratio is available, including ratios below one for time-compression.
For a pitch shift up a perfect fifth (ratio 3:2), the same machinery stretches by 1.5 and the result is then resampled to play 1.5 times faster: the duration returns to the original, and the 440 Hz partial comes out at 660 Hz. In practice the two steps are often merged, but the arithmetic is the same.
7.4.4 The artefacts
The phase vocoder’s flaws became as famous as its abilities.
- Phasiness. Stretched sounds acquire a diffuse, reverberant, “underwater” quality. The cause is that a single sinusoid spreads across several adjacent FFT channels, and the basic algorithm advances each channel’s phase independently, so the channels belonging to one partial lose their phase relationships. Phase locking, introduced by Laroche and Dolson in 1999, identifies the peak channel of each partial and locks its neighbours’ phases to it (Wikipedia: Phase vocoder).
- Transient smearing. A drum hit or consonant onset is sharp in time, but the phase vocoder’s windows are long enough to give good frequency resolution, so the transient is spread across a window and its attack is softened or pre-echoed. Roebel’s 2003 work on transients addressed it (Wikipedia: Phase vocoder).
- Inconsistent spectra. Once magnitudes and phases have been edited, the modified STFT may not correspond to any real signal. Griffin and Lim (1984) gave an iterative method for finding the signal whose STFT is closest to a modified one (Wikipedia: Phase vocoder) — a technique that, decades later, became the simplest way for a speech-synthesis network to turn a predicted magnitude spectrogram back into sound (Vol 8 §6).
These artefacts are the time–frequency uncertainty principle made audible. A window long enough to resolve the harmonics of a low voice is too long to resolve a consonant’s onset, and no choice of window size gives both. Every phase-vocoder refinement is a way of choosing different compromises for different parts of the signal.
7.5 In music
7.5.1 Why it went to the studio
For telephony, the phase vocoder’s promise of better quality had to compete with its cost in channels and parameters, and it was the channel vocoder’s descendants and then LPC (Vol 6) that went into service. What the phase vocoder offered musicians was something no other technique gave: independent control of time and pitch over any sound, with a complete, editable time–frequency representation in between. Composers working with computers took it up in the decades that followed.
Works that the Wikipedia article on the phase vocoder names as landmarks include Trevor Wishart’s Vox 5 and Roger Reynolds’s Transfigured Wind, and IRCAM’s SuperVP engine is a long-lived phase-vocoder implementation used for analysis, transformation and resynthesis (Wikipedia: Phase vocoder). The wider musical history — the composers, the software, the sounds — belongs in The Vocoder in Music.
7.5.2 Cross-synthesis, again
The phase vocoder can also do what Dudley’s 1939 demonstrations did with an organ and a church bell (Vol 3 §5): impose the spectral envelope of one sound on another. With an STFT of both, the magnitudes of one signal can be smoothed into an envelope and multiplied onto the spectrum of the other. The result is a high-resolution version of the classic music vocoder — a “vocoder” in the music-studio sense, built from a “phase vocoder” in the signal-processing sense. That overlap is the source of much confusion, and is the subject of §6.
7.6 How “vocoder” split in two
7.6.1 Two meanings
By the end of the twentieth century the word “vocoder” meant two different things to two communities.
Table 2 — 6.1 Two meanings
| Channel vocoder (and descendants) | Phase vocoder | |
|---|---|---|
| Origin | Dudley, 1928–1939 | Flanagan & Golden, 1966 |
| What a channel keeps | Amplitude envelope only | Amplitude and phase |
| Excitation | Regenerated: buzz/hiss, pitch, or external carrier | Carried in the phase |
| Resynthesis of the original | Approximate; speech intelligible, voice altered | Near-exact if unmodified |
| Purpose in telephony | Bandwidth compression; secrecy | Higher-quality analysis/synthesis (not the line that reached service) |
| Purpose in music | Imposing a voice’s envelope on a synthesizer (“talking synth”) | Time-stretch, pitch-shift, spectral processing |
| Typical studio form | Hardware or plug-in “vocoder” with modulator and carrier inputs | Inside time-stretch, pitch-correction and spectral tools |
| Descendants in speech coding | LPC, CELP, MELP, MBE (Vols 6, 8) | Sinusoidal and harmonic models (in part) |
In a studio, a “vocoder” is almost always the first column: an instrument with a modulator (voice) and a carrier (synthesizer), a filter bank and envelope followers — Dudley’s machine with the buzz source replaced by a keyboard (How a Vocoder Works; The Classic Vocoders). The “phase vocoder” is the second column, usually invisible inside other tools. The two share an ancestor and a word, and in a modern FFT-based music vocoder they share an implementation, but they are built for opposite ends: one discards the fine structure to make the voice into a control signal, the other keeps it to make the sound malleable.
7.6.2 Which one is in a vocoder plug-in?
A modern software “vocoder” for music may be built either way. A classic design uses a bank of band-pass filters and envelope followers, as in 1939, with sixteen or more bands. An FFT-based design computes STFTs of modulator and carrier, estimates the modulator’s spectral envelope, and imposes it on the carrier’s spectrum, discarding the modulator’s fine structure and phase — so it uses a phase vocoder’s machinery to perform a channel vocoder’s job. The sound differs (an FFT design can have many more effective bands, and its own artefacts), but the function is Dudley’s. The design choices, and how to recognise them by ear, are covered in How a Vocoder Works.
7.6.3 The third meaning
A third meaning arrived in the 2010s, when speech-synthesis researchers began to call the neural network that turns a predicted spectrogram into a waveform a “vocoder”. That usage descends from both families at once: it inherits the channel vocoder’s analyzer/synthesizer split and the phase vocoder’s time–frequency representation, and it solves the phase vocoder’s hardest problem — inventing a consistent phase for a magnitude spectrum — by learning it. Vol 8 §6 takes it up.
7.6.4 Reading the word in a manual
Because the word is shared, the first thing to establish about any product or paper that says “vocoder” is which meaning is in play. Three questions settle it.
- Does it have two inputs? A device with a modulator (or “voice”) input and a carrier (or “synth”) input is a channel vocoder in the music sense, whatever its internals.
- Does it change duration or pitch of a single input? Then it is a phase vocoder, or a relative of one, whether or not the word appears.
- Does it turn parameters into a waveform? In a speech-coding or text-to-speech context, “vocoder” means the decoder or synthesizer half: the AMBE+2 decoder in a radio, or the neural network after a spectrogram predictor.
All three are Dudley’s word, and all three are correct.
7.7 Summary
Table 3 — 7. Summary
| Item | Value | Source |
|---|---|---|
| Paper | Flanagan & Golden, “Phase Vocoder,” BSTJ 45(9): 1493–1509 | VTDA |
| Date | November 1966 | Same |
| Representation | Short-time amplitude and phase spectra | CCRMA |
| Modern reading | Sliding short-time Fourier transform | CCRMA |
| Key capability | Near-exact resynthesis; independent time-stretch and pitch-shift | Wikipedia |
| Later refinements | Griffin & Lim 1984; Laroche & Dolson 1999; Roebel 2003 | Wikipedia |
| In music | Wishart, Vox 5; Reynolds, Transfigured Wind; IRCAM SuperVP | Wikipedia |
| Compression figures in the 1966 paper | Not verified for this dive | — |
Comments (0)