Friday, 15 March 2019

Alsa and Bluetooth Speakers

Normally it isn't possible to route linux sound output from ALSA directly through to Bluetooth speakers.  It is expected that output is routed via Pulseaudio.  This isn't terribly convenient for my music application which sends output from MPD to bluetooth, Pulseaudio is an extra inconvenience which needs to be managed.
Arkadiusz Bokowy has written a utility program bluez-alsa which allows you to define bluetooth speakers as ALSA devices obviating the need to use Pulseaudio.  MPD is set up with an ALSA output for the device.
Bluez-alsa needs to be compiled from source and full instructions are provided I found RPI specific instructions helped with this. I also needed to compile an FDK-AAC program  to get it to work.  However once completed the program works beautifully and I can finally treat bluetooth speakers as devices.

No comments:

Post a Comment