Math Bridge: Quantization and Quiet Speech

← Back to Voice and Audio Compression for IoT
Math BridgeOne learning thread

Why quiet speech needs companding

Separate sample rate from bit depth, then reproduce the chapter’s 4 kHz ceiling, 49.9 dB baseline, and 9.9 dB quiet-talker result.

Phoebe guides this bridge
One targetExplain why fixed linear steps punish quiet speech.
Chapter case8 kHz, 8-bit, 64 kbps narrowband voice.
What it buys youSee what companding changes without adding bits.

See the relationship before changing it

The figure reads from left to right. The blue card is voice quantizer resolution. The middle card applies this page's rule. The green card is ideal amplitude step. Walk the arrows once: set the input, apply the rule, then read the result with its unit.

The retained audit below checks several chapter fixtures. This model keeps those stated values fixed and changes only voice quantizer resolution, so the numeric fixture does not switch without explanation.

Voice quantizer resolution changes ideal amplitude step An input card leads through the rule quiet-speech step = 2,000 mV / 2^bits to the ideal amplitude step result. INPUT PAGE INPUT APPLY THE RULE predict calculate check units OUTPUT RESULT
Walk the arrows. Extra bits reduce ideal quantization steps before microphone noise is counted.

Derive the baseline in four named moves

  1. 1

    Name the input. The chapter baseline is 8 bits.

  2. 2

    Name the relationship. quiet-speech step = 2,000 mV / 2^bits

  3. 3

    Substitute with units. 2,000 / 2^8 = 7.813 mV

  4. 4

    Read the result. Keep the unit beside the value. Use it only inside the technical boundary on this page.

Predict, then change voice quantizer resolution

Try Predict the direction of quiet-speech step = 2,000 mV / 2^bits. Test another voice quantizer resolution, then compare ideal amplitude step.

8 bits
Chapter baseline
Ideal amplitude step

Observe Extra bits reduce ideal quantization steps before microphone noise is counted. Reset voice quantizer resolution to 8 and compare ideal amplitude step.

Explain Extra bits reduce ideal quantization steps before microphone noise is counted.

Check yourself

What should you do before trusting a moved-control result?
Answer: Predict its direction, apply the shown relationship, keep the units, and reset to the worked baseline.
What does this small model leave out?
Answer: Only voice quantizer resolution moves here. Field effects named in the technical boundary stay fixed.

1. Separate time from amplitude

Sample rate says how often voltage is read. Bit depth says how many amplitude codes can store each reading. An 8 kHz, 8-bit stream takes 8000 readings each second and gives each reading one of 256 levels.

Phoebe: More readings do not make the amplitude ruler finer; more bits do not make the clock faster.

2. Find the 4 kHz content ceiling

fmax = fs/2
1

Substitute the chapter ratefmax = 8000/2 Hz.

2

Dividefmax = 4000 Hz = 4 kHz.

This is the ideal Nyquist ceiling, not a promise of flat microphone or codec response to 4 kHz.

3. Build the linear quantization floor

Uniform rounding error from step size q lies between −q/2 and +q/2. Its RMS value is q/√12. For a full-scale sine, that produces the familiar ideal estimate:

SNRdB = 6.02N + 1.76
1

Substitute 8 bits6.02(8)+1.76.

2

Multiply48.16+1.76.

3

Add49.92 dB ≈ 49.9 dB.

4. Compare the chapter’s 16-bit figure

1

Substitute 16 bits6.02(16)+1.76.

2

Multiply and add96.32+1.76 = 98.08 dB ≈ 98.1 dB.

3

Compare98.1−49.9 = 48.2 dB more ideal full-scale SNR, while the chapter’s bit rate rises from 64 kbps to 128 kbps.

5. Move the talker 40 dB below full scale

The linear quantizer’s absolute step stays fixed. A signal L dB below full scale loses L dB of SNR.

SNRdB(L) = 6.02N + 1.76 − L
1

Use the 8-bit baselineSNR(40) = 49.9 − 40.

2

SubtractSNR(40) = 9.9 dB.

3

Change the ruler, not the wire widthμ-law and A-law compress large amplitudes before 8-bit quantization and expand them after decoding, creating finer effective steps near quiet speech while still carrying 8 bits at 64 kbps.

6. Check yourself

1. What content ceiling follows from 8 kHz sampling?

4000 Hz, or 4 kHz.

2. What ideal full-scale SNR follows from 8 bits?

6.02(8)+1.76 = 49.9 dB.

3. Why doesn’t companding need a ninth wire bit?

It redistributes effective quantization resolution toward quiet amplitudes before the same 8-bit code is sent.

7. Honesty boundary

These are the chapter inputs, worked results, and named teaching assumptions.

6.02N+1.76 result assumes an ideal uniform quantizer
Named teaching assumption
a full-scale sine
Current or responsivity value
uncorrelated rounding noise
Chapter input or worked result
Real microphones
Chapter input or worked result
gain control
Percentage, ratio, or gain
codecs
Sensor scale, pressure, or digital result
packet loss
Sensor scale, pressure, or digital result
hearing perception set additional limits
Chapter input or worked result
“40 dB below full scale” is a realistic illustrative case named by the chapter
Named teaching assumption
not a universal quiet-talker level
Current or responsivity value

Go deeper in From Samples to a Speech Model for predictive codecs and perceptual trade-offs.