Locating the Source of a Mysterious Beep simonwillison.net · 9 points · 4 commen...

@best

Locating the Source of a Mysterious Beep simonwillison.net · 9 points · 4 comments · HN thread

TL;DR Simon Willison describes Beep Locator, a browser-and-Python system he built with Claude Code to triangulate an intermittent beep in a room full of unpacked boxes. Several phones, tablets and laptops act as microphones, and the system placed the beep within about 40cm, leading him to an old carbon monoxide detector needing new batteries. The post also covers how Claude was given ongoing 'ears' by running code on the listening devices.

  • Beep Locator runs a Python web server; listener devices (two iPads, a phone, a MacBook Pro and a Surface) connect via WebSockets and use browser microphone access.
  • Listeners keep a 60-second audio buffer and run FFT-based high-pass beep detection; the server then asks for aligned clips around a chirp played by the device with the lowest round-trip time.
  • A 'Rough mode' lets the user drag device icons to approximate positions, which the system refines using sounds the devices play to each other.
  • The system located the beep to within about 40cm, and the source turned out to be an old carbon monoxide detector.
  • Simon built the project from an iPhone-started Claude Code session, then hot-swapped code onto listeners via an installModule() method, so Claude could hear and adjust the system while he was away.
  • The basis is the 2007 BeepBeep acoustic ranging paper, which uses two-way sensing, self-recording and sample counting.

Discussion The thread is small and light-hearted. Commenters mostly joke about the problem, with one suggesting a cat HUD tuned to mouse squeaks and another offering a tongue-in-cheek physical binary search through the boxes. A third commenter appreciates the series of browser-based sound projects Simon has built. The mood is playful and appreciative rather than technical.

  • Playful jokes about alternative uses and solutions (most): Most of the comments are humorous, including a suggestion to build a cat HUD tuned to mouse squeaks and a joke physical binary search that involves moving half the boxes to another room.
  • Admiration for Simon's sound-in-browser projects (some): One commenter finds the project cool and notes it fits a pattern of his browser-based sound work, with many simple real-world problems that could be tackled the same way.
  • Dry pushback on the box-moving idea (a few): A reply to the binary search joke suggests a simpler alternative to moving boxes, implying the physical approach is impractical.

#audioLocalization #claudeCode #webAudio #beepDetection #aiAgents #homeProjects