Coding

How Beep Locator used five devices to find a hidden sound

Simon Willison built Beep Locator with Claude Code to track a sound that came and went. The project combined five everyday microphones, a sync tone and a test he could verify by hand.

Oliver · FoxAI World3 min read
18
Oliver holds a tablet beside a device linked by dotted lines to nearby devices, beneath the Anthropic name.Find the Beep

Conceptual cover created with AI.

Something was beeping in Simon Willison’s box room, but it was quiet by the time he went to look. He asked Claude Code to help build Beep Locator, a tool that uses several microphones to estimate where a sound comes from. In his 9 November write-up, he reports that the tool narrowed the search to within about 40 centimetres. In the pile it pointed to, he found an old carbon monoxide detector that needed new batteries.

Five devices listening to the same room

Willison used two iPads, a phone and two laptops as listeners. Each device opened the web app in a browser and granted microphone access. A server written in Python coordinated the devices. Each listener kept the most recent 60 seconds of audio in a rolling buffer, a temporary store that replaces the oldest sound as new sound comes in.

When a listener reported a possible beep, the server asked one device to play a short reference tone and collected a clip from each listener. The tone gave the software a way to align the recordings. From there the tool compared when the original beep reached each microphone. A beep heard earlier at one position than at another gives a clue about the difference in distance to the source. Comparing those clues across the room produces an estimated area on the map.

Oliver points to a device connected by dotted lines to devices beside three laptops, with the Anthropic logo on the wall.
AI-generated conceptual illustration.

A clap with a known location

The map also needed positions for the microphones. The devices took turns playing tones to estimate how far apart they were, using a method based on the 2007 BeepBeep paper. In Willison’s room, the automatic layout was unreliable. He added a mode that let him drag the devices to approximate positions on the map and use the audio measurements to refine them.

He checked the layout by clapping at different spots and comparing the markers with where he stood. For a candidate beep, he could replay the clips from each device and mark the sound he recognised. The software then used the confirmed sound’s frequency and the interval between beeps to narrow the search as more recordings came in.

What Claude Code built and what Willison verified

Willison started the project in Claude Code Cloud on his phone and continued on his laptop as the software ran. He asked for the rough placement, clap test and playback as he encountered problems. The program handled the sound measurements. Willison checked the map, identified the sound in the clips and found the physical device.

I’d keep the clap test even if the map already looks convincing. A sound made at a known spot gives you something to compare the estimate with before you search for one you can’t see. The roughly 40-centimetre result describes this room and this search. Testing other layouts would be needed to judge how well the estimate travels.

Ask AI about this article

Opens in a new tab with the question filled in.

Sources and research

Written by FoxAI World. The cover and illustrations are AI-generated conceptual artwork.

Your favourites

This list stays in this browser on your device. No account is needed, and other visitors cannot see it.

Use a story’s bookmark button to add your first favourite.