Type a branch, a subject or a topic — “round robin”, “paging”, “civil”.

PCM, Quantisation and Companding

Sampling can be lossless; quantisation never is. Then a ladder with uneven rungs buys four bits for free, which is why a phone channel is 64 kbit/s.

Skip to the animation

Quantisation rounds each sample to the nearest of a finite set of levels, adding an error that behaves like noise and gains 6 dB per bit — and companding, by making the steps fine near zero and coarse at the extremes, delivers 12-bit speech quality from 8 bits.

Two different discretisations

Sampling discretises time and, above Nyquist, loses nothing. Quantisation discretises value, and it always loses something. The two steps are often conflated, and only one of them is irreversible by nature.

Quantisation noise

The rounding error is bounded by half a step and, for a complex signal, is effectively random — so it is modelled as noise with power Δ²/12. Each extra bit halves the step, halves the error, and gains 6 dB.

BitsLevelsSNRUsed in
825650 dBTelephony (companded), early samplers
12409674 dBInstrumentation, control
1665 53698 dBCD audio
2416.7 M146 dBStudio recording — beyond any analogue noise floor

The noise model breaks for simple signals. A pure tone produces an error correlated with the signal, which sounds like distortion rather than hiss — which is why dither is deliberately added in high-quality converters.

Why uniform steps are wrong for speech

With uniform steps the error is the same size regardless of signal level, so the SNR falls with the signal. Speech spends most of its time far below its peak, which makes this precisely the wrong arrangement for telephony.

Companding

Compand = compress + expand. Compress the signal before quantising and expand it afterwards, which is equivalent to a non-uniform ladder: fine steps near zero, coarse at the extremes.

  • The SNR becomes roughly constant across the signal range, which is what perception rewards.
  • Eight companded bits sound like twelve uniform ones — four bits gained for free.
  • A-law in Europe and most of the world; µ-law in North America and Japan. Same idea, slightly different curves.
  • Which is why a telephone channel has been 64 kbit/s — 8000 samples × 8 bits — since the 1960s.

Why digital at all

A digital repeater only has to decide which symbol was sent, then generate a fresh clean one — so noise does not accumulate along a route. An analogue repeater amplifies its input noise at every hop.

Regeneration, not fidelity at the source, is why long-distance telephony went digital. A thousand-hop digital route is as clean as a one-hop route; a thousand-hop analogue route is unusable.

Delta modulation

Delta modulation sends one bit per sample — up or down — exploiting the similarity of consecutive samples. It fails in two ways: slope overload when the signal changes faster than the step allows, and hunting around a constant value.

Adaptive delta modulation varies the step size to address both. Its descendant, sigma-delta, is inside nearly every audio converter sold — trading bit depth for sample rate and then filtering digitally.

The numbers you will be asked for

Quantisation step

Δ = V_range / 2ⁿ

Quantisation noise power

N_q = Δ² / 12

SNR

SNR ≈ 6.02n + 1.76 dB

PCM bit rate

R = n · f_s

Telephone channel

8 bits × 8000 Hz = 64 kbit/s

A-law compression

A = 87.6

µ-law uses µ = 255

Watch it work

loading visualisation…

Check yourself

question 1 / 4

One question at a time. Pick an answer to see why it is right or wrong, then move on — there is no score to keep and nothing is saved.

Sampling above Nyquist loses nothing. Does quantisation?
What does each extra bit of resolution buy?
Why does telephony compand rather than simply use more bits?
Why did long-distance telephony go digital?

0 / 4

4 still unanswered — the dots above jump straight to them.