Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Aug 2012

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

    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.

    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:
    emerge -av media-sound/bluez-alsa net-wireless/bluez
    Connect device (XX:XX:XX:XX:XX:XX = your device address):
    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:
    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

    Tested on a RPi3 (integrated Bluetooth adapter) with a Bluetooth headphone / Android phone.
    Various SW: Web Interface | TUI | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | DB Optimizer | Image Enhancer | Chiptunes | LMSlib2go | ...
    Various HowTos: build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

  2. #2
    Junior Member
    Join Date
    Oct 2016
    Thank you so much for pointing in the right direction. I also wanted to avoid the abyss of Pulseaudio just for streaming from my phone to LMS.

    I had to adjust your instructions in some areas. The following instructions are for debian jessie based distributions, in my case armbian on an armhf6 based system.

    1. bluez-alsa is not available in debian repos anymore, furthermor the interconnec to bluez is unavailable, thus you have to manually build bluealsa from sources: bluez-alsa on github

    You need to make sure that you meet the dependencies:
    $ apt-get update & apt-get install libfdk-aac-dev libsbc-dev libsbc1 libglib2.0-bin libglib2.0-dev libgtk2.0-dev libortp-dev libortp9 libalsa-ocaml
    (Note: Not all of these might be necessary, but for me it worked after installing all of these)

    After getting these in place and cloning the repo, you can go an build the package:

    $ autoreconf --install
    $ mkdir build && cd build
    There is an important change to the config command before building:
    $ ../configure --enable-aac --enable-debug --with-alsaplugindir=/usr/lib/arm-linux-gnueabihf/alsa-lib/
    $ make && make install
    The rest can be followed according to your instruction.

  3. #3
    Any Chance for a how to for Picoreplayer?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts