Show HN: Beatsync – perfect audio sync across multiple devices (opens in a new tab)github.com
439 pointsHi 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 commentsMy Vision: A web based VLC-type webplayer (capable of VLC level features) with support to distribute Audio channels over connect devices.
Here me out: - Mac as display(Movies screen) - iPad as a Center channel - 4 iPhones as LR and rear channels, (and something for LFE).
Is it Practical? sound cool in my head. What do you guys think??
Let's suppose that you are paying half the new price for the bottom-tier of each of these:
MBA: 500
iPad mini: 250
iPhone 16e: 300 * 4
Your budget is $1950. For that, you can get:
A 50" 4K TV, a Denon X1700H 7.2 receiver, 6 Klipsch R51M speakers, and a half-decent subwoofer, all new.
This will provide a far superior experience for you and a half-dozen friends, and each part will last longer, have no permanent battery to wear out, and be upgradable independently and without relying on a specific software product. I would estimate the lifetime of your proposal at about 3 years, and of my counter-proposal at 20 years.
Yours is much more portable.
But, the scenario is of a Open-Source solution for a Student living in a Hostel/ Home.
The Vision is tilted towards Hostel Dorms where you won't bother a Home Theater, but where every friend has Apple device( any robust device with good onboard audio).
My Friend himself has a MBPRO and 2 iPhones, Totalling to 6 Apple device( Audio Sinks).
Are you already doing latency compensation? You could measure the latency, if one host will become a master and then you could compensate that by delaying the playback of the master a little bit.
(As an egregious example, AirPlay 2 has excellent audio sync but latency that is a good fraction of a second or even worse. A browser might be playing through AirPlay.)
For anyone who's curious, Airfoil (a paid app) can play simultaneously from a Mac to a variety of devices:
https://rogueamoeba.com/airfoil/mac/
All comments shown.
Couldn't load more comments. Check your connection and try again.