a simple Blue-berry Pi recipe #1038
artmg
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Did you see the bluealsa-aplay option to play from only one device at a time? That is probably what most people would want: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
a simple Blue-berry Pi recipe
I have tried several different solutions for a Bluetooth A2DP input into snapserver on a Raspberry Pi in the years I have been enjoying this fantastic project, but I was never content, because they didn't always 'just work' or they were complex to build and often difficult to diagnose. And there were so many bewildering options to choose from. I am going to share the solution I have finally settled on, after digging in to understand what's going on. I am going for the path of least resistance, and trying to pick the simplest, most lightweight, easiest to install solution that can still be hacked if you need.
Solution overview
My backend audio input solution uses the following layers:
plughw
device on the ALSA loopback belowsimple-agent
script in the main Bluez projectalsa
protocol.My hardware choice is a Pi 3 where I will use a wired Ethernet connection, and leave the Wifi disabled. This frees me up to use the internal bluetooth radio without fear of the interference that some have reported. If you are forced to use wireless networking and DO get interference, it should not be hard to use a USB Bluetooth dongle instead.
This has been tested on a clean Raspberry Pi OS Lite Bullseye release April 4th 2022, with Snapserver 0.26.0 .deb installed from the Snapcast project releases page. For testing purposes the setup is in two phases. The first sets the Bluetooth A2DP to come out of the headphone jack. The second puts that through into Snapserver.
Scripted install for Bluetooth open A2DP receiver
Send A2DP stream to Snapserver
diagnostics
More background and tweaks over time can be found in my source documents on the open Bluetooth reciever and the A2DP to Snapserver link.
I welcome comments and questions.
Enjoy!
Beta Was this translation helpful? Give feedback.
All reactions