S1618 of 56
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

S16 · Lesson 18 · Locating sound sources

Finding where a sound comes from by the time difference of its arrival at separated microphones, bearings from one pair, positions from hyperbolas, delay estimates by cross-correlation and phase-transform weighting, and the accuracy limits set by sampling, bandwidth, signal-to-noise ratio and the speed of sound

Two ears tell you where a sound comes from by the tiny delay between them, and engineered systems do the same with microphones: conference phones steer toward the talker, cities triangulate gunshots, and machine monitors pinpoint a leaking valve. The physics is just the speed of sound, but the engineering is in measuring a delay of microseconds from noisy signals, and in knowing how errors in that delay, or in the speed itself, turn into errors in position.

  • Two microphones a distance d apart hear a far source at angle θ from broadside. The curve is the angle implied by a measured delay τ, θ=sin−1⁡(cτ/d).
  • Near broadside a small change in delay barely moves the bearing; near end-fire the curve steepens, and the same delay error gives a large bearing error.
  • A wider spacing gives finer resolution but must stay under half a wavelength at the highest frequency to keep the delay unambiguous for narrowband signals.

Predict

Two microphones 0.2 m apart hear a source 0.30 ms earlier at one than the other. Sampled at 48 kHz without interpolation, about how precisely is the bearing known?

Name it

Bearing from one pair

A plane wave arriving at angle θ from the broadside of two microphones d apart reaches one first by

τ=dsin⁡θc,θ=sin−1⁡cτd

A delay error δτ gives a bearing error of about cδτ/(dcos⁡θ): smallest at broadside, growing without limit toward end-fire. One pair can't tell a source in front from one behind (a cone of ambiguity); a third microphone resolves it in a plane.

Position from hyperbolas

For a nearby source, each pair's delay fixes the difference of the source's distances to the two microphones, cτ, which places it on one branch of a hyperbola with the microphones at its foci. Two independent differences from three microphones intersect at the source in a plane; four give a position in space. Errors in c scale every range difference in proportion: a 10 °C error in the assumed air temperature is a 1.7% error.

Measuring the delay

The delay is where the cross-correlation of the two signals peaks. Reverberation and colored noise broaden that peak, so systems often whiten the cross-spectrum first, dividing each frequency by its magnitude (the phase transform, GCC-PHAT), which sharpens the peak to nearly an impulse. Fitting a parabola through the peak sample and its neighbors locates it to a fraction of a sample.

Accuracy limits

For a signal of RMS bandwidth β and energy-to-noise ratio E/N₀, no unbiased estimator can measure a delay better than about

στ≈12πβ2E/N0

so broadband sounds (clicks, speech consonants, gunshots) locate far better than pure tones, and longer observations help through E.

Worked example

Two sensors 400 m apart record a gunshot 0.5 s apart. How far is the source from the sensors' perpendicular bisector, in range difference, and how much does a 10 °C error in the assumed temperature move it?

Show the solution
  1. Range difference. Δr=cτ=343×0.5=171.5m which puts the source on a hyperbola with the sensors at its foci.
  2. Temperature error. Speed of sound goes as the square root of absolute temperature, so from 20 to 30 °C it rises by a factor of 303.15/293.15=1.017
  3. Effect on position. The range difference grows by 1.7%, about 3 m, and with it every computed position shifts.
  4. In practice. Acoustic location systems therefore measure the air temperature, and wind, too, adds its component along each path.

Answer the range difference is 171.5 m, and a 10 °C error in temperature changes it by 1.7%, about 3 m.

Worked example

A transient has an RMS bandwidth of 500 Hz and an energy-to-noise ratio of 20 dB at each microphone. What's the best delay accuracy, and what bearing accuracy does that give a 0.2 m pair at broadside?

Show the solution
  1. Delay accuracy. With E/N₀ = 100: στ=12π×500×200=22.5μs about one sample at 48 kHz.
  2. Bearing accuracy. At broadside: σθ=cστ/d=343×22.5×10−60.2=0.039rad or 2.2°.
  3. Improving it. Widening the pair to 1 m, or doubling the bandwidth, cuts it proportionally.

Answer the best delay accuracy is 22.5 µs, which gives a bearing accuracy of 0.039 rad (2.2°).

Worked example

What's the largest spacing two microphones can have so that a 4 kHz tone's delay is unambiguous from any direction?

Show the solution
  1. When a delay is ambiguous. For a tone, the correlation repeats every period, so delays up to ±T/2 are distinguishable.
  2. Largest spacing. The largest delay, d/c at end-fire, must stay under half a period, so d<λ/2=343/8000=4.3cm
  3. Narrowband and broadband arrays. Arrays for narrowband signals keep their spacing near half a wavelength (lesson 17's grating-lobe rule); broadband localizers can use much wider spacings because their correlation peaks don't repeat.

Answer 4.3 cm, half a wavelength.

Check

Two microphones 0.25 m apart (c = 343 m/s) see a delay of 0.2187 ms, sampled at 48 kHz.

(a)

What bearing from broadside does the delay imply?

(b)

How much does one sample of delay change the bearing there?

Check

Two sensors record a sound 0.4 s apart; the air is at 0 °C, but the system assumes a temperature 10 °C lower.

(a)

What is the true range difference?

Write units the way you normally would: 1.5 m, 1500 mm and 0.0015 km are the same answer.

(b)

By how much does the assumption understate it?

Check

A signal of RMS bandwidth 500 Hz reaches two microphones 1 m apart with an energy-to-noise ratio of 10 dB.

(a)

What is the smallest delay error an unbiased estimator can achieve?

Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.

(b)

What bearing error is that at broadside?

Check

A narrowband source near 4 kHz must be located by one microphone pair without ambiguity from any direction.

(a)

What is the widest spacing allowed?

Write units the way you normally would: 1.5 cm, 15 mm and 0.015 m are the same answer.

Check

A cross-correlation peaks at sample k with value 1, flanked by 0.6 at k − 1 and 1 at k + 1.

(a)

By how many samples does a parabola through the three points shift the peak from k?

Check

Why do localization systems often whiten the cross-spectrum (the phase transform) before finding the correlation peak?

Check

Two microphones d apart (c = 343 m/s) measure a delay τ with error δτ.

Step 1

What bearing, in radians, does the delay imply?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why do broadband sounds locate much more precisely than pure tones?

Practice

Keep practicing

8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.