12-25-2022, 10:24 PM
(12-25-2022, 09:34 PM)citro Wrote: I decided to experiment a little.
Simple setup: Raspberry Pi Zero 2 W and a bluetooth speaker.
I am not savvy on linux / command line and I get a lot of help from here: https://www.sigmdel.ca/michel/ha/rpi/blu...02_en.html
Tonight I did the following:
1. fresh Raspberry Pi OS Lite 64bit install (using the official Raspberry Pi Imager)
2.
Code:sudo apt update && sudo apt upgrade -y
3. reboot
4. I don't know why, but it was included in the guide above
Code:sudo adduser pi bluetooth
5. add pulseaudio package
Code:sudo apt install pulseaudio-module-bluetooth
6. reboot
7. connect to BT speaker using bluetoothctl (scan for spearker / connect to speaker)
8. install mpg123
Code:sudo apt install mpg123
9. mount a Samba share from my NAS
10. play an MP3 from the share, using mpg123
Code:mpg123 path_to_samba_mount/mp3_file
The music sounds decent. Some choppy output, but way ahead of Moode.
It's always good to hear somebody experiments with audio on the Pi.
Few key points, though:
moOde uses ALSA, and not PulseAudio, also uses MPD as audio renderer instead of mpg123.
Although your audio glitches did not entirely disappear (which is why I pointed you to the posts underlining that it is likely a Zero 2 W issue, rather than a moOde one) but got considerably reduced should be checked also against overall sound quality requested to the system. As you are playing back from a samba share; it would be interesting to see how the playback from a locally stored file (I believe you can attach an external ssd to it, not sure though) results.
I know up to the Pi3 models, the USB, NETWORK and BT shared the same bus; the thing is not true any more for the Pi4 models, but I don't know anything about the Zero.
Have you also tried different audio files? I mean, some low-res vs some hi-res, to eventually rule out the decoding workload impact?
Have you tried the HDMI out? Being the device not big on the memory side, requiring additional buffers for wireless data transport could have a negative impact.
I'd suggest having a look in the Raspberry forums about BT issues with the Zero 2 W specifically, anyway.