Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Choppy sound using Bluetooth (Zero 2 W)
#34
(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.
Reply


Messages In This Thread
RE: Choppy sound using Bluetooth - by Crackerjb - 07-01-2022, 01:26 PM
RE: Choppy sound using Bluetooth - by citro - 07-01-2022, 01:30 PM
RE: Choppy sound using Bluetooth - by Crackerjb - 07-02-2022, 08:36 AM
RE: Choppy sound using Bluetooth - by citro - 07-01-2022, 02:45 PM
RE: Choppy sound using Bluetooth - by citro - 07-01-2022, 03:28 PM
RE: Choppy sound using Bluetooth - by Tim Curtis - 07-02-2022, 01:15 AM
RE: Choppy sound using Bluetooth - by citro - 07-02-2022, 11:46 AM
RE: Choppy sound using Bluetooth - by citro - 07-02-2022, 02:25 PM
RE: Choppy sound using Bluetooth - by Sniglar - 07-02-2022, 03:13 PM
RE: Choppy sound using Bluetooth - by Lukesan - 07-29-2022, 06:04 PM
RE: Choppy sound using Bluetooth - by Tim Curtis - 07-29-2022, 08:42 PM
RE: Choppy sound using Bluetooth - by citro - 07-13-2022, 06:25 PM
RE: Choppy sound using Bluetooth - by Tim Curtis - 07-13-2022, 10:01 PM
RE: Choppy sound using Bluetooth - by citro - 07-14-2022, 08:35 PM
RE: Choppy sound using Bluetooth - by Tim Curtis - 07-14-2022, 09:37 PM
RE: Choppy sound using Bluetooth - by citro - 07-15-2022, 06:56 AM
RE: Choppy sound using Bluetooth - by Tim Curtis - 07-15-2022, 12:11 PM
RE: Choppy sound using Bluetooth - by citro - 07-15-2022, 05:08 PM
RE: Choppy sound using Bluetooth - by citro - 08-01-2022, 04:34 PM
RE: Choppy sound using Bluetooth (Zero 2 W) - by Nutul - 12-25-2022, 10:24 PM

Forum Jump: