Hacker News new | ask | show | jobs
by oritron 17 days ago
I haven't benchmarked Bluetooth on these devices but have you looked at your uncompressed audio rates over WiFi? OP was asking about Bluetooth at high quality and low latency, which I don't think is a possible combo, hence suggesting another ESP32 if wireless is necessary. If it isn't, a wire difficult to beat.

ESP-NOW is another option to look at, which of course won't work to transmit to a phone directly but can do a point-to-point or multicast transmission between ESP32 devices. I've used it in some projects but not for audio, I couldn't tell you how much of a buffer would be needed to make that work smoothly.

Another option for OP, if the audio is being synthesized then the parameters could be transmitted rather than the audio samples themselves and do synthesizing on the receiving device.

2 comments

I have a (WIP) project that transfers audio over ESP-NOW. I haven't touched it in forever, but I remember it did work decently. I had to bring the audio sample rate down to 16kHz though, and it was just sending uncompressed audio. I probably could have dug more into configuring the radios for better throughput, or adding some basic compression to relax the bandwidth requirements.

Code is here:

https://github.com/bschwind/walkie-talkie

Fair point, I’ve been evaluating WiFi for my project as well and the ESP32-S3 certainly has better link rates and latency, though I’ve not determined if it can truly run uncompressed. UX-wise my project is pairing to a smartphone so I’m not eager to require that users bring a WiFi network with them (something neither Android or iOS handle particularly gracefully), but regardless it would be good to have the option.