---
title: Speech, spatial hearing and digital audio
heading: The source-filter model of speech with pitch and formants, how vocal-tract length scales the formants, telephone bandwidth, interaural time differences for locating sounds, and the sample rates, bit depths, noise floors and data rates of digital audio
eyebrow: S16 · Lesson 44 · Speech, spatial hearing and digital audio
xp: 50
---

::: hook
Speech is a buzz shaped by a tube: the vocal folds produce a train of pulses at the voice's pitch, and the throat and mouth filter it with resonances that change as the tongue and lips move. Two ears a head's width apart locate where a sound comes from, using microsecond differences in arrival time. And every recording and phone call digitizes this with a sample rate and a bit depth whose noise floor follows directly from C9 and S7. This lesson connects the acoustics of the voice and the ear to the numbers that audio engineers use every day.
:::

::: play
- The interaural time difference for a source at azimuth θ, from Woodworth's model of a spherical head of radius a: $\Delta t = (a/c)(\theta + \sin\theta)$.
- It's zero straight ahead and reaches about 0.66 ms at the side for a typical 8.75 cm head radius.
- The brain resolves differences of about 10 µs, a couple of degrees near the front.
:::

```sim plot
view: graph
x: t = 0..90
y: d = 0..800
slider: a = 6..11 step 0.25 = 8.75
plot: a/100/343*(t*pi/180 + sin(t*pi/180))*1e6 | samples: 300 | label: interaural time difference, µs
readout: maximum, µs = a/100/343*(pi/2 + 1)*1e6 | digits: 4
```

::: predict
## A 16-bit converter records a full-scale sine wave. What's its signal-to-quantization-noise ratio?

- [ ] 16 dB
- [ ] 48 dB
- [x] About 98 dB
- [ ] About 144 dB

::: reveal
For a full-scale sine and N bits, SNR = 6.02N + 1.76 dB: 98.1 dB for 16 bits. The 6.02 dB per bit is 20 log 2, one bit doubling the number of levels. 24 bits would give 146 dB, more than any analog front end or room can deliver.
:::
:::

::: nameit
## The voice

In voiced speech the vocal folds open and close periodically at the **fundamental frequency** $f_0$, around 85 to 180 Hz in adult men and 165 to 255 Hz in adult women; the pitch period is $1/f_0$. The pulse train's harmonics are shaped by the vocal tract's resonances, the **formants**. Modeled as a uniform closed–open tube of length L (lesson 23), the formants are at $(2n - 1)c/4L$: a shorter tract, as in children, moves every formant up in proportion. Changing the tube's shape moves the formants and makes the different vowels.

## Bandwidth

Most speech intelligibility lies between about 300 Hz and 3.4 kHz, the classic telephone band, sampled at 8 kHz. Wideband voice (50 Hz to 7 kHz, sampled at 16 kHz) sounds markedly clearer. Music needs 20 Hz to 20 kHz.

## Spatial hearing

A sound from the side reaches the near ear first. Woodworth's spherical-head model gives

$$\Delta t = \frac{a}{c}(\theta + \sin\theta)$$

up to about 0.66 ms. Below about 1.5 kHz the brain compares phase between the ears; above, where the head shadows the far ear, level differences take over.

## Digital audio

Sampling at $f_s$ captures frequencies below $f_s/2$, with an anti-aliasing filter in between; CD audio uses 44.1 kHz. An N-bit converter's quantization noise gives, for a full-scale sine,

$$\text{SNR} = 6.02N + 1.76\text{ dB}$$

The raw data rate is $f_s \times N \times$ channels: 1.411 Mbit/s for 16-bit stereo CD audio, which perceptual codecs (lesson 29's masking) reduce tenfold.
:::

::: example
## Where are the first three formants of a 17.5 cm adult tract and a 12 cm child's tract? What are the pitch periods at 120 Hz and 220 Hz?

::: solution
1. **Adult tract.** The formants are
   $$490,\ 1470,\ 2450\ \text{Hz}$$
2. **Child's tract.**
   $$\begin{aligned} F_1 &= \frac{343}{4 \times 0.12} \\ &= 715\ \text{Hz} \end{aligned}$$
   then 2144 and 3573 Hz, all raised by the ratio 17.5/12.
3. **Pitch periods.**
   $$\begin{aligned} T_0 &= 1/120\ \text{Hz} \\ &= 8.33\ \text{ms} \\ T_0 &= 1/220\ \text{Hz} \\ &= 4.55\ \text{ms} \end{aligned}$$

**Answer:** 490, 1470 and 2450 Hz for the adult and 715, 2144 and 3573 Hz for the child; the pitch periods are 8.33 ms and 4.55 ms.
:::
:::

::: example
## What interaural time differences does an 8.75 cm head give at 30° and 90°? What data rate does 16-bit, 44.1 kHz stereo need?

::: solution
1. **At 30°.**
   $$\begin{aligned} \Delta t &= \frac{0.0875}{343}(0.524 + 0.5) \\ &= 261\ \mu\text{s} \end{aligned}$$
2. **At 90°.**
   $$\begin{aligned} \Delta t &= \frac{0.0875}{343}(1.571 + 1) \\ &= 656\ \mu\text{s} \end{aligned}$$
3. **CD data rate.**
   $$\begin{aligned} R &= 44{,}100 \times 16 \times 2 \\ &= 1.411\ \text{Mbit/s} \end{aligned}$$

**Answer:** 261 µs at 30° and 656 µs at 90°; CD audio needs 1.411 Mbit/s.
:::
:::

::: example
## A 16-bit converter is dithered with triangular noise of two least-significant bits peak to peak. What signal-to-noise ratio does a full-scale sine get, with and without the dither?

::: solution
1. **Without dither.** The quantization noise has variance $\Delta^2/12$, and
   $$\begin{aligned} \text{SNR} &= 6.02 \times 16 + 1.76 \\ &= 98.1\ \text{dB} \end{aligned}$$
2. **With dither.** Triangular dither adds variance $2\Delta^2/12$, tripling the noise power:
   $$\begin{aligned} \text{SNR} &= 98.1 - 4.8 \\ &= 93.3\ \text{dB} \end{aligned}$$
3. **What it buys.** The price buys noise that is independent of the signal, so quiet passages fade into a smooth hiss rather than turning into harmonically related distortion.

**Answer:** 98.1 dB without dither and 93.3 dB with it.
:::
:::

::: check
given: L = 12 | 15 | 17.5; n = 2 | 3 | 4
answer: (2*n - 1)*343/(4*L/100)
unit: Hz
tolerance: 0.5%

## Model a vocal tract as a {L} cm closed–open tube. Where's formant {n}?

::: right
Right. $(2n - 1)c/4L$ = {answer} Hz.
:::

::: misses
- [n*343/(4*L/100)] Closed–open tubes resonate at odd multiples of c/4L.
- [any] Not yet. Quarter-wave resonances.
:::
:::

::: check
given: N = 8 | 12 | 16 | 24
answer: 6.02*N + 1.76
unit: dB
tolerance: 0.5%

## What signal-to-quantization-noise ratio does an {N}-bit converter give for a full-scale sine?

::: right
Right. $6.02N + 1.76$ = {answer} dB.
:::

::: misses
- [6.02*N] Add 1.76 dB for a full-scale sine.
- [any] Not yet. 6 dB per bit.
:::
:::

::: check
given: f = 8 | 44.1 | 96; N = 8 | 16 | 24; c = 1 | 2 | 6
answer: f*N*c/1000
unit: Mb/s
tolerance: 0.5%

## What raw data rate does {c}-channel audio at {f} kHz and {N} bits need?

::: right
Right. $f_s \times N \times$ channels = {answer} Mbit/s.
:::

::: misses
- [f*N*c/8000] That's megabytes per second; the question asks for megabits.
- [any] Not yet. Multiply them.
:::
:::

::: check
given: a = 7.5 | 8.75 | 10; t = 20 | 45 | 90
answer: a/100/343*(t*pi/180 + sin(t*pi/180))*1e6
unit: µs
tolerance: 0.5%

## A head of radius {a} cm hears a source at {t}° azimuth. What's the interaural time difference by Woodworth's model?

::: right
Right. $(a/c)(\theta + \sin\theta)$ = {answer} µs.
:::

::: misses
- [a/100/343*sin(t*pi/180)*1e6] Include the path around the head, θ (in radians).
- [any] Not yet. Woodworth's formula with θ in radians.
:::
:::

::: check
given: f = 85 | 120 | 220 | 300
answer: 1000/f
unit: ms
tolerance: 0.5%

## A voice has a fundamental frequency of {f} Hz. What's its pitch period?

::: right
Right. $1/f_0$ = {answer} ms.
:::

::: misses
- [any] Not yet. One over the frequency.
:::
:::

::: check
given: B = 3.4 | 7 | 20
answer: 2*B
unit: kHz
tolerance: 0.5%

## A signal must keep frequencies up to {B} kHz. What's the lowest sample rate that could, with an ideal anti-aliasing filter?

::: right
Right. Twice the bandwidth: {answer} kHz.
:::

::: misses
- [B] The Nyquist rate is twice the highest frequency.
- [any] Not yet. Sampling theorem.
:::
:::

::: check
kind: parts
given: N = 12 | 16 | 24

## An {N}-bit converter digitizes a full-scale sine.

::: part
answer: 6.02*N + 1.76
unit: dB
tolerance: 0.5%

### What signal-to-noise ratio does undithered quantization allow?

::: misses
- [6.02*N] Include the 1.76 dB for a sine.
- [any] $6.02N + 1.76$.
:::
:::

::: part
answer: 6.02*N + 1.76 - 10*log(3)
unit: dB
tolerance: 0.5%

### And with triangular dither?

::: misses
- [6.02*N + 1.76 - 10*log(2)] The dither's variance is twice the quantization's, so the total is three times.
- [any] Subtract 10 log 3.
:::
:::
:::

::: check
kind: derivation
vars: c = 1..64, f = 8..192, N = 8..32, a = 0.07..0.1, t = 0..1.5

## Audio is sampled at f kHz with N bits on c channels; separately, a head of radius a (m) hears a source at azimuth θ (radians).

::: step
answer: c*f*N

### What raw data rate is that, in kb/s?
:::

::: step
answer: a/343*(t + sin(t))

### What interaural time difference does Woodworth's model give, in seconds?
:::

::: right
Right. CD audio, 2 × 44.1 × 16, is 1411 kb/s.
:::
:::

::: explain
## Why do a child's formants sit higher than an adult's for the same vowel?

::: model
Formants are the resonances of the vocal tract, roughly a tube closed at the glottis and open at the lips, so their frequencies scale inversely with the tube's length. A child's vocal tract is around 12 cm long against an adult's 17.5 cm, so every formant of a given vowel is raised by roughly the ratio of lengths, nearly half again. Listeners still recognize the vowel because what identifies it is the pattern of formant frequencies relative to each other and to the speaker's overall scale, which is also why speech recognizers normalize for vocal-tract length.
:::
:::

::: practice

::: check
given: N = 4 | 8 | 12 | 16 | 20 | 24 | 32
answer: 6.02*N + 1.76
unit: dB
tolerance: 0.5%

## Quantization SNR, {N} bits?

::: misses
- [any] $6.02N + 1.76$.
:::
:::

::: check
given: a = 5 | 12; t = 5 | 90
answer: a/100/343*(t*pi/180 + sin(t*pi/180))*1e6
unit: µs
tolerance: 0.5%

## ITD: a = {a} cm, {t}°?

::: misses
- [any] $(a/c)(\theta + \sin\theta)$.
:::
:::

::: check
given: L = 10 | 20; n = 1 | 4
answer: (2*n - 1)*343/(4*L/100)
unit: Hz
tolerance: 0.5%

## Formant {n} of a {L} cm tract?

::: misses
- [any] $(2n - 1)c/4L$.
:::
:::
:::
