I have connected a Bluetooth speaker, Woxter DL-410 BT, to my new Raspberry Pi 4 8GB with OSMC.
I have had no problems pairing and connecting (BT in board, not dongle), both with Kodi and with the ‘bluetoothctl’ command.
The failures begin when trying with a music playlist, with mp3, aac, flac files.
The strange thing is that depending on the Player used, the failure is different:
mplayer: for a few minutes it goes well, after a while I have the sound choppy, more and more and there is even distortion
Music on Kodi: Same as with mplayer.
cmus and mpg321: sound remains stable, at least for a few hours, but songs play sped up,
at a speed approximately x1.1, x1.2
All these players work correctly if the output is via HDMI or even 3.5mm Jack.
Nor have I ever had problems with Woxter speakers with bluetooth sound with devices such as phones or tablets or laptops.
~/.asoundrc:
pcm.altavocesBT {
type bluealsa
device "08:EB:ED:08:5B:7C"
profile "a2dp"
hint { show on description "Woxter DL-410 BT"}
}
Yes, it depends on the sample rate. The vast majority of files the sample rate is 44.1k.
I’ve resampled some at 48K and they sound good.
Those with a sample rate greater than 48k do not play.
Audio output is set: