Locating the source of a mysterious beep using Claude

Simon Willison had an intermittent beep coming from a room full of unpacked boxes, so he had Claude Code build Beep Locator, a system that triangulates a sound using several ordinary devices. He wrote it up on his weblog. A Python web server shows the main map, and other devices join over a URL or QR code to act as listeners through the browser’s microphone. He used two iPads, a phone, a MacBook Pro and a Surface.
The listeners record a rolling 60 second buffer and run a beep detector in JavaScript using a Fast Fourier Transform and a high-pass filter. When a beep is reported, one device plays a short chirp so the clips from all the listeners can be lined up in time. The approach is based on BeepBeep, a 2007 acoustic ranging paper that Claude found during the research step.
Device positions are dragged roughly into place on the map, then refined from the sounds. A clap mode was added for testing. The system placed the beep to within about 40cm, and the culprit was an old carbon monoxide detector with dying batteries.
See more at simonwillison.net and content on GitHub.
— Source: Adafruit Industries – Makers, hackers, artists, designers and engineers! — Read More



