Replies: 10 comments 25 replies
|
Totally doable. We would need to add this as a new component and reuse pcm chunk memory allocation functions from snapclient. Only start advertising at first and if a connection is made all snapclient related task must be stopped, all memory freed and i2s handed over to bluetooth functions. If connection is dropped go back to snapclient mode. Easy enough 👌 😎 I've always wanted to add bluetooth and stream from esp snapclient to snapserver and back again. Not sure if it is possible though. I don't have much time to work on this project these days and my first priority is to resolve #54 and finish #69. |
|
@CarlosDerSeher .. I think trying to run 2 instances of snapcast on one esp32 host would be also a Cool experiment ;-) |
|
Why not just mount a second DAC of the same type? |
|
2 instances would double the RAM and increase TCP bandwidth/RAM requirements |
|
@CarlosDerSeher .. 2x the price and for example lyrat has PSRAM and also the boards from anabolyc.. this would be just a Cool experiment. |
|
But where will you pipe the 2nd instance's output? This is a little off topic here though, maybe you should open a discussion for this. |
|
This would be great for some of my bluetooth portable beach speakers if I wanted them to sync with my home audio out by the pool. Wifi>Bluetooth>speaker |
|
I would be interested as well in a Bluetooth A2DP functionality. A nice feature would be to enable it over a GPIO pin instead of at boot time. While i would love to help implementing it, i doubt i have enough experience with esp-idf and c in general to be able to write good code, but maybe i can help sponsor it? Concerning connecting Bluetooth speakers to the esp and then streaming over Snapcast: i did this on Linux and had rather bad results, as there was a noteable delay. This could tho also be a result of Alsa&Pulseaudio and maybe it would work better on ESP, even tho WIFI&BT coexistence seems tricky to get right there. |
|
I started working on a minimal implementation. No prior experience with A2DP but took a quick dive into it. The implementation is still very basic and needs some cleanup, more thread-safety mechanisms and optimization (in very rare occasions, it crashes on switch to Bluetooth and restarts, but no big deal as connection comes back). Overall it works quite nicely. Since I don't have the time to do this cleanup right now and open a proper PR, I will provide the patch that I did on top of commit Have fun. snapclient_b484c2926b3fcbf3f0426094dfc8b3ab3494910b_bluetooth.patch |
|
https://github.com/BakersHub/Snapclient-BT-LED-OLED Would love some feedback if anyone's got some wrovers laying around Flashable bin via esphome, config via AP, |


Uh oh!
There was an error while loading. Please reload this page.
Thanks for this port of snapclient - it's working great for me. I use it in conjunction with mopidy and the https://github.com/natumbri/mopidy-youtube project I look after.
One thing I've been thinking about - sometimes I like to switch from listening via my snapcast setup to listening to something directly from my phone, via Bluetooth.
Would it be difficult to add the capacity to switch between snapcast and BT?
Something like this https://github.com/vedranMv/Ka-Radio32 but with snapclient instead of 'internet radio'.
I'd be happy to help, but am pretty clueless when it comes to writing real code!
Anyway, thanks again for the snapclient!
Cheers
Nik
All reactions