Lurker News
Hi HN! I made Beatsync, an open-source browser-based audio player that syncs audio with millisecond-level accuracy across many devices.

Try it live right now: https://www.beatsync.gg/
The idea is that with no additional hardware, you can turn any group of devices into a full surround sound system. MacBook speakers are particularly good.
Inspired by Network Time Protocol (NTP), I do clock synchronization over websockets and use the Web Audio API to keep audio latency under a few ms.
You can also drag devices around a virtual grid to simulate spatial audio — it changes the volume of each device depending on its distance to a virtual listening source!
I've been working on this project for the past couple of weeks. Would love to hear your thoughts and ideas!

Comments (128) 50 threads

Earlier comments
maxmynter95#
It's a really intereseting vibe when you play on multiple machines. Sometimes you can notice a slight off-ness which gives this reverb effect.
rezonant1 reply#
It's not open source until you pick a license. Since there is no license in this repository, it is at best source-available.
freemanjiang#
Thanks for the heads up! Just added a license to the repo.
hackncheese1 reply#
Any plans to integrate this with Apple Music or Spotify? I would assume your algorithm would work only with files uploaded to the site, but curious if you had plans to attempt something with Apple Music/Spotify
freemanjiang2 replies#
Yes! The very next step.
alexweej_#
This is kind of where my attempt at this idea during lockdown died... Copyright law
iamsaitam#
The challenge here is not technical but legal, good luck.
dchristian#
Watch out of patent problems. There was a major dust up between Sonos and Google over audio sync technology. Disclaimer: I've worked for both companies, but not on that

Load more comments