I am running Mopidy as a service on a Raspberry Pi Zero W, with a Pimoroni Pirate Audio Hat, running Bullseye. The setup works fine (mostly - no thanks to Spotify). Using Pimoroni’s own installer for Mopidy, the audio sent via alsa(?) sink then via i2s to the Hat which produces good quality audio for my analogue desktop speakers.
Just recently, for my birthday, my lovely wife purchased some Soundcore Bluetooth Space 2 ANC headphones for me, really useful when you live on a main road opposite a pub that is televising the world cup! I have tried to interface my new 'phones with Mopidy Pirate Pi, but after many hours googling and trying different hacks, I have failed. Every help page I have found seems to focus on much more complex setups than mine, or be from the dim and distant past before some architectural choices made upstream that seem to have brickwalled me.
I can get audio via gst-launch as myself, but playback as a mopidy service is blocked. The issue seems to be:
- alsa bluethooth playback was dropped in favour of pulseaudio playback directly via bluez
- pulseaudio as a service was dropped in favour of user level pulseaudio, for security reasons
- pulseaudio for the mopidy user is either blocked altogether or blocked from access to bluetooth.
Can anyone please direct me to some resources that actually work please? Thanks.