The Vocoder in the Telephone Age · Volume 6

The Vocoder in the Telephone Age — Vol 06: From Racks to Desks

SIGSALY weighed about 55 tons a terminal. Forty-four years after it entered service, the STU-III secure telephone sat on a desk, plugged into an ordinary telephone line, and was built in the hundreds of thousands. Between the two lies a story with two strands. One is the steady miniaturisation of the channel vocoder in the hands of the Army Security Agency and then the National Security Agency: the KO-6, KY-9 and HY-2, each smaller and each, users complained, sounding like a cartoon duck. The other is a change of method that came out of speech research at Bell Labs and in Japan in the late 1960s — linear prediction — which replaced the filter bank with a mathematical model of the vocal tract, ran on digital hardware, and made low-rate secure speech small enough for a desk and, in 1978, cheap enough for a child’s toy.

This volume follows both strands from 1949 to the late 1990s. Its main source for the NSA line is J. P. Campbell Jr. and R. A. Dean, “A History of Secure Voice Coding,” published in the NSA’s Cryptologic Quarterly and drawn from the career of Thomas E. Tremain (NSA, Campbell & Dean).

6.1 The channel vocoder shrinks

6.1.1 After SIGSALY

The NSA inherited the voice-coding mission from the Army Security Agency in 1952 (Campbell & Dean). By then the post-war channel vocoders were already in development. Their sequence is the clearest possible illustration of what transistors did to electronics.

Table 1 — 1.1 After SIGSALY

SystemYearRateChannelsWeightNotes
SIGSALY1943~1,550 bit/s computed (Vol 4 §5.2)12~55 tons12 terminals
AN/GSQ-3 “Junior X”WWII——six 19-inch racks in a vanNot finished in time for service (Crypto Museum)
KO-61949~1,200 bit/s——“a close approximation to the 1200-bps SIGSALY voice coder”; limited deployment
KY-919531,650 bit/s12565 lb”hand-made transistors”
HY-219612,400 bit/s16100 lb”Flyball” modular logic; “the last generation of U.S. channel vocoder technology”

Sources: Campbell & Dean unless noted.

The KY-9 had a fuller life than its NSA summary suggests. Crypto Museum gives its weight as at least 256 kg (consistent with 565 lb), its size as 110 × 78 × 59 cm, and records that 260 were made, that it was first used by President Kennedy in September 1961, and that it was phased out around 1973 (Crypto Museum: KY-9). Crypto Museum dates its introduction later than the NSA history does — “late 1950s or early 1960s”, with an estimated 1962 in its specification table — and describes the 1,650 figure as “1650 baud”; the table above uses the NSA’s 1953. A twelve-channel vocoder, like SIGSALY, in a single cabinet the size of a large refrigerator: that is roughly a 200-fold reduction in weight in ten years.

6.1.2 The Donald Duck problem

Smaller did not mean better-sounding. Campbell and Dean record that users from Churchill and Roosevelt onward disliked the vocoder’s “synthetic ‘Donald Duck’ quality,” and that President Johnson refused to use the HY-2 because of its poor quality (Campbell & Dean).

That refusal matters more than it might seem. A secure telephone that the principal will not use is not a secure telephone; it is a reason to pick up the insecure one. The quality problem was therefore a security problem, and it drove the research that followed. The HY-2 had sixteen channels, four more than SIGSALY, and ran at 2,400 bit/s, half again the rate of the KY-9. More bands and more bits had not fixed it. The faults lay deeper, in the channel vocoder’s model of speech (Vol 3 §4.4).

Figure 1 — The HY-2 sixteen-channel vocoder (1961) at the National Cryptologic Museum — at 100 lb and 2,400 bit/s, "the last generation of U.S. channel vocoder technology", and the machine President Johnson r…
Figure 1 — The HY-2 sixteen-channel vocoder (1961) at the National Cryptologic Museum — at 100 lb and 2,400 bit/s, "the last generation of U.S. channel vocoder technology", and the machine President Johnson refused to use — Photo: Daderot, CC0, 2013, via Wikimedia Commons

6.1.3 Simulating the vocoder

Thomas E. Tremain joined the NSA in 1959. In 1962–64 he ran the first mainframe-computer simulation of a channel formant vocoder, and in 1966–68 he helped develop the first digital channel vocoder (Campbell & Dean).

Simulation changed the research method. A hardware vocoder is expensive to modify: every new band plan is a new set of filters. A simulated vocoder is a program, and a researcher can try a dozen variations in a week, process the same recorded sentence through each, and listen. It also made it natural to think of the vocoder as an algorithm — a sequence of arithmetic operations on samples — rather than as a circuit. Once speech coding was an algorithm, it could adopt any algorithm that worked better, whether or not it resembled a filter bank. The one that did was linear prediction.

Secure voice gets lighter: weight per terminal (log scale) 101001,000 10,000100,000 weight per terminal (kg, logarithmic) SIGSALY 1943KY-9 1953 HY-2 1961Delilah 1943–45 ~50,000 kg (55 tons) · ~1.2–1.6 kbit/s ≥256 kg (565 lb) · 1,650 bit/s ~45 kg (100 lb) · 2,400 bit/s 39 kg · Turing's portable encipherer (not a vocoder) Sources: Boone & Peterson 2000; Campbell & Dean; Crypto Museum KY-9; Copeland, IEEE Spectrum 2025.

6.2 Linear prediction

6.2.1 Who, and when

Linear prediction was applied to speech by Fumitada Itakura (Nagoya University) and Shuzo Saito (NTT) in 1966, and by Bishnu Atal and Manfred Schroeder at Bell Labs and John Burg in 1967. In 1969 Atal presented an LPC speech coder at the Acoustical Society of America. The milestones that followed include the first real-time 2,400 bit/s LPC coder, by Hofstetter at MIT Lincoln Laboratory in 1973; the first two-way LPC packet speech over the ARPANET, at 3,500 bit/s, in 1974; and Schroeder and Atal’s code-excited linear prediction (CELP) in 1985 (Wikipedia: Linear predictive coding, citing Atal, “The history of linear prediction,” IEEE Signal Processing Magazine 23(2), 2006, and R. M. Gray, Foundations and Trends in Signal Processing 3(4), 2010).

The foundational journal paper in the West is Atal, B. S. & Hanauer, S. L., “Speech Analysis and Synthesis by Linear Prediction of the Speech Wave,” JASA 50(2B): 637–655, August 1971 (scanned copy). Atal’s US Patent 3,624,302 was granted to Bell Labs on 30 November 1971 (Google Patents).

6.2.2 The idea

Linear prediction rests on an observation about sampled speech: each sample is, to a good approximation, a weighted sum of the few samples before it. Write the speech samples as s[n]. A p-th order linear predictor estimates

ŝ[n] = a₁ s[n−1] + a₂ s[n−2] + … + aₚ s[n−p]

and the coefficients a₁ … aₚ are chosen, for each short frame of speech, to make the prediction error e[n] = s[n] − ŝ[n] as small as possible in the mean-square sense. Finding them means solving a small set of linear equations built from the frame’s autocorrelation (or covariance); efficient recursions solve a tenth-order system in a few hundred multiply-accumulates.

Why should this work? Because the source–filter model of Vol 1 §3.3 says speech is a simple excitation passed through a resonant filter, and an all-pole resonant filter is exactly a system whose output depends linearly on its own past outputs. The predictor coefficients are the vocal-tract filter. The prediction error — what the predictor cannot explain — is, ideally, the excitation: a train of pulses at the pitch period for voiced speech, noise for unvoiced.

The decoder runs the model backwards. It generates an excitation — pulses at the received pitch, or noise — and feeds it through the all-pole filter defined by the received coefficients. Out comes speech.

6.2.3 What changed, compared with the filter bank

LPC is Dudley’s vocoder in a new mathematical form, and the correspondence is exact in outline:

Table 2 — exact in outline

Dudley channel vocoderLPC vocoder
Buzz/hiss sourcePulse train / noise excitation
Spectral envelope as energy in 10–16 fixed bandsSpectral envelope as a 10th-order all-pole filter
Pitch channel, zero = unvoicedPitch parameter and voicing decision
25 Hz smoothing → ~50 samples/sFrames of 20–25 ms → 40–50 frames/s
Analog filters, rectifiersArithmetic on samples

What changed is the description of the envelope. A filter bank samples the envelope at fixed frequencies; ten bands means ten points, and a formant between two bands is smeared across both. An all-pole filter of order ten represents up to five resonances whose frequencies and bandwidths can fall anywhere, so formants are reproduced where they actually are. For the same number of parameters the envelope is far more accurate, and the speech correspondingly clearer.

The other change was in the hardware. A filter bank is a dozen analog circuits; LPC is a few thousand multiplications per frame, which became cheaper every year from 1970 onward. LPC rode the falling cost of digital arithmetic down to a single chip.

The LPC vocoder decoder: Dudley's model as arithmetic Pulse trainperiod = pitch White noiseunvoiced V/UVswitch GainG All-pole filter1 / A(z), order 10= the vocal tract Speech8 kHz samples Received each frame: pitch, voicing, gain, 10 coefficients LPC-10: 54 bits per 22.5 ms frame = 2,400 bit/s

6.2.4 What is actually transmitted

An LPC coder does not usually send the predictor coefficients a₁ … aₚ themselves. They are awkward to quantise: a small error in one coefficient can move a pole of the synthesis filter outside the unit circle, and an unstable filter produces not speech but a howl. Coders instead send transformed parameters that are equivalent but better behaved — reflection coefficients, which describe the vocal tract as a chain of acoustic tube sections and guarantee stability as long as each lies between −1 and +1, or, in later coders, line spectral frequencies, which can be quantised very efficiently. The mathematical recursion that solves for the predictor produces the reflection coefficients along the way, which is one reason they were the natural choice for the first standards.

The tube-section interpretation is worth a moment. It means an LPC coder is, quite literally, measuring the shape of a simplified vocal tract many times a second and sending the measurements. Dudley’s “vocal tract as modulator” (Vol 1 §3.1) had become a set of numbers describing the tract itself.

6.3 LPC-10: the government standard

6.3.1 The 1974 demonstration

In 1974 Tremain demonstrated “the first real-time computer simulation of LPC-10 on the CSP-30 computer”. That work led directly to the STU products built on AMD 2901 and TRW-multiplier bit-slice processors. Tremain also devised the use of the AMDF — the average magnitude difference function — in place of autocorrelation for pitch estimation (Campbell & Dean).

The AMDF is a good example of engineering for the hardware of the day. To find a pitch period, a coder compares the signal with delayed copies of itself and looks for the delay at which they match best. Autocorrelation does this by multiplying the signal by its delayed copy and summing; the AMDF subtracts, takes the absolute value, and sums, looking for a minimum rather than a maximum. Subtraction and absolute value are far cheaper than multiplication in bit-slice logic, and the result is nearly as good.

Tremain’s paper “The government standard linear predictive coding algorithm: LPC-10,” Speech Technology (April 1982): 40–49, is described by Campbell and Dean as “perhaps the most widely referenced paper in speech coding.”

6.3.2 FS-1015

LPC-10 became Federal Standard 1015, finished on 28 November 1984. The NATO equivalent, STANAG 4198, was promulgated on 13 February 1984, and the standard was re-designated FIPS PUB 137 on 20 October 1988. It runs at 2,400 bit/s with 22.5 ms frames (Wikipedia: FS-1015).

The frame arithmetic is tidy. At an 8 kHz sampling rate a 22.5 ms frame holds 180 samples; each frame is coded in 54 bits; there are 1/0.0225 ≈ 44.44 frames a second; and 54 × 44.44 = 2,400 bit/s (RadioReference wiki: LPC-10). The analysis is tenth-order, using the covariance method (DTIC ADA464963). Against 64 kbit/s G.711 PCM, 2,400 bit/s is a compression of about 26.7:1.

Table 3 — 3.2 FS-1015

LPC-10 / FS-1015Value
Sampling rate8 kHz
Frame length22.5 ms (180 samples)
Bits per frame54
Bit rate2,400 bit/s
Predictor order10
Ratio vs 64 kbit/s PCM≈ 26.7:1
StandardsFED-STD-1015 (1984); STANAG 4198 (1984); FIPS PUB 137 (1988)

Set beside SIGSALY, the comparison is striking. LPC-10’s 2,400 bit/s is about 1.5 to 2 times SIGSALY’s rate; its frame is 22.5 ms against SIGSALY’s 20 ms; and it describes the spectral envelope with ten parameters, as SIGSALY did with ten bands. Forty years of progress went not into the bit rate or the frame rate but into the quality of the description and the size of the machine.

6.3.3 What 54 bits must carry

Fifty-four bits every 22.5 ms must describe everything the decoder of §2 needs: a pitch value, a voicing decision, a gain, ten filter parameters, and some bits for framing and synchronisation. That is an average of about four bits per parameter — somewhat more than the 2.6 bits carried by each of SIGSALY’s six-level values, and spent far more carefully. The detailed bit allocation of FS-1015 is not reproduced here; the standard is the place to read it. The principle is that the parameters the ear is most sensitive to — pitch, and the lower reflection coefficients that shape the first formants — receive the most bits, and the higher-order coefficients the fewest.

6.4 The STU family

6.4.1 STU-I, STU-II, STU-III

The STU-I (Secure Telephone Unit) appeared in 1970 and the STU-II in 1975, with about 10,000 users. The STU-III, introduced by the NSA in 1987 and built by AT&T, RCA and Motorola, was produced in “hundreds of thousands” and ran at up to 9 kbit/s. Its last keys expired on 31 December 2009; it was succeeded by the STE (Wikipedia: STU-III).

The STU-III “uses an enhanced LPC-10,” and a CELP coder developed by Tremain’s team was also used in it (Campbell & Dean). The phone plugged into an ordinary telephone line, carried its speech as data through a modem, and was enabled by a physical crypto ignition key. It was the moment secure voice stopped being a facility and became an appliance.

Figure 2 — A STU-III secure telephone desk set with its crypto ignition key. Introduced in 1987 and built in the hundreds of thousands, it carried enhanced-LPC-10 and CELP speech over ordinary telephone lines
Figure 2 — A STU-III secure telephone desk set with its crypto ignition key. Introduced in 1987 and built in the hundreds of thousands, it carried enhanced-LPC-10 and CELP speech over ordinary telephone lines — Photo: ArnoldReinhold, CC BY-SA 4.0, via Wikimedia Commons

6.4.2 Forty-four years

Table 4 — 4.2 Forty-four years

SIGSALY (1943)STU-III (1987)
Size~40 racks, ~55 tonsDesk telephone
Number built12 terminalsHundreds of thousands
Speech coding12-channel vocoderEnhanced LPC-10; CELP
Voice rate~1.2–1.6 kbit/s2.4 kbit/s (LPC-10) up to 9 kbit/s
LinkDedicated HF radioOrdinary telephone line
KeyOne-time phonograph recordsElectronic keys on a physical ignition key
Operators805th Signal Service CompanyThe user

6.4.3 A modem, again

The STU-III’s trick — speech coded to a few kilobits a second, then sent through a modem over an ordinary voice line — is SIGSALY’s architecture in miniature. SIGSALY’s twelve six-level FSK tones (Vol 4 §5.1) were, in modern terms, a multi-tone modem carrying about 1.5 kbit/s of enciphered vocoder data over a voice-bandwidth radio channel. The STU-III did the same over a voice-bandwidth wire, with a modem chip in place of forty racks. The structure of secure voice — vocoder, encipherment, modem, voice channel — did not change in forty-four years; every box in it shrank.

6.5 CELP

6.5.1 Analysis by synthesis

LPC-10’s weakness was the one the channel vocoder had always had: the excitation. A pulse train or noise, switched by a voicing decision, is a crude stand-in for what the vocal folds actually do. The LPC prediction error — the residual — contains everything the predictor missed, including the talker’s individual glottal character, and LPC-10 threw it away in favour of a pitch value and a voicing bit.

Code-excited linear prediction, introduced by Schroeder and Atal at ICASSP 1985 (“Code-excited linear prediction (CELP): High-quality speech at very low bit rates”; Wikipedia: LPC), fixed this by sending a better excitation. The encoder holds a codebook of candidate excitation sequences. For each short subframe it tries candidates, runs each through the same LPC synthesis filter the decoder will use, compares the synthesised result with the real speech (through a perceptual weighting filter that de-emphasises errors the ear will not notice), and sends the index of the best match together with its gain. The decoder, holding an identical codebook, looks the index up and synthesises. A second, “adaptive”, codebook built from the recent past of the excitation captures the pitch periodicity.

This is analysis by synthesis: the encoder contains a decoder and searches for the parameters that make the decoder’s output closest to the input. An exhaustive codebook search is computationally expensive — every candidate must be filtered and compared — but it turns the excitation from a model into a measurement, and the cost fell with every generation of signal processor.

CELP: the encoder contains a decoder (analysis by synthesis) Codebookexcitation vectors × gain LPC synthesisfilter 1/A(z) − Perceptualweighting Minimiseweighted error Transmitindex, gain, LPC Input speech search: try codebook entries and gains, keep the best The decoder holds an identical codebook and runs only the left half of this loop.

6.5.2 FS-1016 and the cellular connection

Tremain’s team’s CELP coder, used in the STU-III, became Federal Standard 1016. Campbell and Dean add a sentence that links this volume to the next: “A modified form of CELP is the basis of the algorithm used in North American digital cellular systems” (Campbell & Dean). FS-1016 is usually given as 4,800 bit/s; Wikipedia’s vocoder article lists it at “2400 and 4800 bit/s” (Wikipedia: Vocoder). The 4,800 bit/s figure is the commonly cited one; the standard itself was not consulted for this dive.

The CELP family went on to dominate telephony. Its descendants — ACELP in AMR and G.729 — are examined in Vol 8 §2.

6.5.3 Six hundred bits a second

At the other extreme, NATO work on vector quantisation — coding several parameters jointly as a single index into a trained table, rather than each one separately — achieved “equivalent 2400-bps speech intelligibility at only a 600-bps rate” (Campbell & Dean). Six hundred bits a second is less than half of SIGSALY’s rate.

6.6 MELP

The last fault in Dudley’s model to be addressed was the binary voicing decision — the relay of 1939 (Vol 3 §3.1), reproduced in software as LPC-10’s voiced/unvoiced bit. Mixed-excitation linear prediction (MELP) replaces it with excitation that mixes pulses and noise in different proportions in different frequency bands, so that a voiced fricative can be buzz in the low bands and hiss in the high ones.

MELP was invented by Alan McCree at Georgia Tech around 1995 and became MIL-STD-3005 in 1997 after a Department of Defense competition, replacing LPC-10. An enhanced version, MELPe, at 2,400 and 1,200 bit/s, was adopted as MIL-STD-3005 in 2001 and as NATO STANAG 4591 in 2002, and a 600 bit/s variant from Thales followed in 2005. Texas Instruments licensed it (Wikipedia: MELP).

Table 5 — 6. MELP

MELP rateBits per frameFrameRatio vs 64 kbit/s
2,400 bit/s5422.5 ms26.7:1
1,200 bit/s8167.5 ms53.3:1
600 bit/s5490 ms106.7:1

Source: Wikipedia: MELP. The 2,400 bit/s mode uses exactly LPC-10’s frame — 54 bits every 22.5 ms — so MELP was a drop-in replacement at the same rate with far better speech. The lower rates, judging by their frame lengths, span three (67.5 ms) and four (90 ms) of those 22.5 ms intervals and code them jointly.

The mixed-excitation idea, and the multi-band voicing decision behind it, also underlies the multi-band excitation coders of the digital two-way radio world (IMBE, AMBE; Vol 8 §3). Dudley’s relay was finally retired.

6.7 The Speak & Spell: LPC in a toy

6.7.1 The product

In December 1976 Richard Wiggins of Texas Instruments demonstrated the concept of a talking spelling toy to Paul Breedlove, Larry Brantingham and Gene Frantz. The team “created Speak & Spell in April 1978.” Its key device was “the industry’s first digital signal processing integrated processor, the TMS5100” (ETHW: IEEE Milestone). The product was introduced at the summer Consumer Electronics Show in 1978, after a TI press release of 11 June 1978. Development had begun in 1976 on a budget of $25,000 (Wikipedia: Speak & Spell). The Speak & Spell is IEEE Milestone No. 91, dedicated in Dallas on 15 October 2009.

Figure 3 — An original Texas Instruments Speak & Spell (1978), with the early-style keys. Its TMC0280 / TMS5100 chip was a tenth-order LPC synthesizer reading about 1,000 bit/s of speech data from ROM
Figure 3 — An original Texas Instruments Speak & Spell (1978), with the early-style keys. Its TMC0280 / TMS5100 chip was a tenth-order LPC synthesizer reading about 1,000 bit/s of speech data from ROM — Photo: FozzTexx, CC BY-SA 4.0, 2017, via Wikimedia Commons

6.7.2 The chip

The synthesizer chip was the TMC0280, later known as the TMS5100: a tenth-order LPC synthesizer. Its speech data sat in two 128-kbit PMOS ROMs and played back at about 1,000 bit/s (Wikipedia: Speak & Spell).

Note: The chip designation is given as TMC0280 by ETHW and Wikipedia, while TMC0281 is often seen marked on circuit boards. Both may exist as revisions; the point is unverified here.

Two 128-kbit ROMs hold 256 kbit. At about 1,000 bit/s that is roughly 256 seconds — a little over four minutes — of speech in total. (This is arithmetic on the published figures; some of the ROM space also held program data, so the real speech total would be somewhat less.) That was enough for the alphabet, the numbers, a few hundred words and the toy’s phrases, and it is why the Speak & Spell’s vocabulary was fixed in silicon.

6.7.3 What the toy meant

The Speak & Spell was not a vocoder in the telephone sense: nothing was transmitted, and its “analyzer” ran once, in a TI laboratory, on recordings of a human speaker, with the resulting LPC parameters edited and stored in ROM. It was a vocoder synthesizer playing back recorded control parameters — the Voder of 1939 (Vol 2), with the operator’s year of practice replaced by a ROM.

Its significance was economic. In 1974 the NSA ran LPC-10 in real time on the CSP-30, a computer; four years later the same order of LPC synthesis ran on a single chip inside a consumer product priced for children. The toy’s retail price is not given in the sources consulted and is not stated here. Its sound — buzzy, slightly metallic, unmistakably a tenth-order all-pole filter over a pulse train — became a musical texture in its own right, a thread followed in The Vocoder in Music.

6.8 Summary: thirty-five years of the vocoder as a secret

Table 6 — 8. Summary: thirty-five years of the vocoder as a secret

YearSystemMethodRate
1943SIGSALY12-channel vocoder, PCM~1.2–1.6 kbit/s
1949KO-6Channel vocoder~1,200 bit/s
1953KY-912-channel vocoder, transistors1,650 bit/s
1961HY-216-channel vocoder2,400 bit/s
1966–67—Linear prediction applied to speech (Itakura & Saito; Atal & Schroeder; Burg)—
1973Lincoln LabFirst real-time LPC2,400 bit/s
1974NSA / ARPANETLPC-10 real-time simulation; LPC packet speech2,400 / 3,500 bit/s
1978Speak & Spell10th-order LPC synthesis on one chip~1,000 bit/s (stored)
1984FS-1015LPC-10 standard2,400 bit/s
1985CELPAnalysis by synthesis—
1987STU-IIIEnhanced LPC-10; CELP (FS-1016)2.4 kbit/s (LPC-10), up to 9 kbit/s
1997MIL-STD-3005MELP2,400 bit/s
2002STANAG 4591MELPe2,400 / 1,200 bit/s

The channel vocoder’s analyzer/synthesizer split survived every one of these steps. What changed was how the envelope was described (bands → all-pole filter), how the excitation was described (relay → codebook → mixed bands) and what the machine was made of (valves and LC filters → bit-slice processors → one chip). Vol 7 turns to a branch of the family that went the other way: instead of describing speech more compactly, the phase vocoder described it completely, and in doing so became a tool not for telephones but for music.

Comments (0)

  1. Loading…

Comments are held for moderation — nothing appears until approved.