Skip to main content

Companding and its types

Short answer

Companding compresses signal before uniform quantization and expands at receiver to achieve non-uniform quantization, necessary for constant SQNR over wide dynamic range with fewer bits. μ-law (North America, μ=255) and A-law (Europe, A=87.6) are standard companding laws per ITU-T G.711.

What is companding and why it is necessary? Explain any two types of companding techniques.

Companding (compressing + expanding) is a way to obtain non-uniform quantization: the signal is compressed by a non-linear amplifier before a uniform quantizer at the transmitter, and expanded by the inverse characteristic at the receiver.

m(t)->[Compressor]->[Uniform Q]->channel->[Expander]->m(t)
       y = c(x)                          x = c^-1(y)

Why it is necessary

  • With uniform quantization, noise Δ2/12\Delta^2/12 is fixed, so weak signals have poor SQNR.
  • Speech has a large dynamic range and small amplitudes are most frequent.
  • The compressor boosts small amplitudes and reduces large ones, so effectively small inputs see fine steps and large inputs coarse steps. The SQNR stays nearly constant (within a few dB) over about 40 dB of input range with only 8 bits.

μ-law companding (North America, Japan)

y=ln⁡(1+μ∣x∣)ln⁡(1+μ) sgn(x),0≤∣x∣≤1y = \frac{\ln(1 + \mu|x|)}{\ln(1+\mu)}\,\text{sgn}(x), \qquad 0 \le |x| \le 1
  • μ=0\mu = 0 gives uniform quantization; the standard value is μ=255\mu = 255 (8-bit PCM).
  • For small xx it is nearly linear (y≈μx/ln⁡(1+μ)y \approx \mu x/\ln(1+\mu)); for large xx it is logarithmic.
  • Example with μ=255\mu = 255: x=0.01→y=0.228x = 0.01 \to y = 0.228; x=0.1→y=0.591x = 0.1 \to y = 0.591; x=0.5→y=0.876x = 0.5 \to y = 0.876.

A-law companding (Europe, India, Nepal)

y={A∣x∣1+ln⁡A sgn(x),0≤∣x∣≤1A1+ln⁡(A∣x∣)1+ln⁡A sgn(x),1A≤∣x∣≤1y = \begin{cases} \dfrac{A|x|}{1+\ln A}\,\text{sgn}(x), & 0 \le |x| \le \dfrac{1}{A} \\[2mm] \dfrac{1+\ln(A|x|)}{1+\ln A}\,\text{sgn}(x), & \dfrac{1}{A} \le |x| \le 1 \end{cases}
  • Standard value A=87.6A = 87.6. It is linear for small signals and logarithmic for large ones. Both A-law and μ-law are specified in ITU-T G.711.
  • In practice both laws are realised by a 13-segment (A-law) or 15-segment (μ-law) piecewise-linear approximation.
 y (out)
 1 |            . . . .   <- compressed
   |      . .
   |   .          ....  <- uniform (y = x)
   | .       ....
   |.   ....
   |. ..
   +-------------------- x (in)
   0                  1

✓ Answer checked by Claude Opus 5.5 (high effort)

All Communication Systems chapter 4 questions →