
Simon Willison · 8 min readWeb performance
Locating the source of a mysterious beep with Claude
Build a multi‑device acoustic triangulation system by combining browser WebAudio, WebSockets, and a Python server. The guide shows how to detect beeps, play chirps for alignment, and estimate source location within 40 cm.
- Use FFT and high‑pass filtering in the browser to detect short beeps.
- Play a chirp from the server‑closest device and collect 1‑second clips for alignment.
- Drag listeners in rough mode to refine positions when automatic ranging fails.