Quantcast
Channel: Squeezebox : Community : Forums - Linux / Unix
Viewing all articles
Browse latest Browse all 1518

[Howto] Bluetooth streaming to / from LMS (ALSA only / no PulseAudio)

$
0
0
Since I never saw the point of PulseAudio, I've set up Bluetooth streaming on a system without it. Surprisingly, this is actually very simple and works out of the box.
Note that if you have PulseAudio installed, you may have to disable the bluez/PulseAudio/sound integration.

Setup
Install bluez (v5)
Install BlueALSA (packages available for Gentoo, Arch, maybe others. It seems that in Ubuntu, the package is the old (=wrong) version for bluez4)

Installation for Gentoo:
Code:

emerge -av media-sound/bluez-alsa net-wireless/bluez
Connect device (XX:XX:XX:XX:XX:XX = your device address):
Code:

raspi ~ $ sudo /etc/init.d/bluetooth start
raspi ~ $ sudo /etc/init.d/bluealsa start
raspi ~ $ bluetoothctl
[bluetooth]# power on
[bluetooth]# scan on
[bluetooth]# discoverable on
[bluetooth]# agent on
[bluetooth]# default-agent
[bluetooth]# pair XX:XX:XX:XX:XX:XX
[bluetooth]# trust XX:XX:XX:XX:XX:XX
[bluetooth]# connect XX:XX:XX:XX:XX:XX
[bluetooth]# scan off
[bluetooth]# discoverable off
[bluetooth]# exit

Playback / streaming to Bluetooth device:
Code:

squeezelite -s localhost -o "bluealsa:HCI=hci0,DEV=XX:XX:XX:XX:XX:XX,PROFILE=a2dp" -r 48000-48000 -a 40:4:16:1 -R -u vE
Recording / stream from Bluetooth device
pair / connect your device (e.g. phone) as described above
install the WaveInput plugin
create a favorite with a URL like
Code:

wavin:bluealsa:HCI=hci0,DEV=XX:XX:XX:XX:XX:XX,PROFILE=a2dp

Tested on a RPi3 (integrated Bluetooth adapter) with a Bluetooth headphone / Android phone.

Viewing all articles
Browse latest Browse all 1518

Latest Images

Trending Articles



Latest Images