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' (https://github.com/Arkq/bluez-alsa) (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.



[ extGUI4LMS - an alternative web interface: 'forum'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
/ 'homepage' (https://www.nexus0.net/pub/sw/extgui4lms/) | 'music
visualizer'
(http://forums.slimdevices.com/showthread.php?103073-Announce-music-visualizer-for-squeezelite)
for squeezelite ] [  'Howto'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS):
build a self-contained LMS | 'Howto'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files):
play Ogg Opus files ]
------------------------------------------------------------------------
Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=107230

_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to