Bluez-alsa allows you to stream audio both to and from your OSMC device. We have been working on integrating bluez-alsa into OSMC as a replacement for our a2dp package which is now deprecated.
There is some more development work to be done to make the new package simple to use. Meanwhile, you can install bluez-alsa and make the necessary ALSA configuration files yourself. You need to be familiar with the commandline and a text editor (eg nano).
Update for Kodi v19 Our Kodi v19 builds include bluez-alsa so you don’t have to install the package. You still have to write a .asoundrc file.
If you have already installed bluez-alsa under v18, then please uninstall any previous versions first:
sudo apt-get remove --purge a2dp-app-osmc pulseaudio-module-bluetooth pulseaudio sudo dpkg -r armv7-bluez-alsa-app-osmc sudo dpkg -r armv7-bluez-alsa-osmc
If you forget to do that and get an error when upgrading, run those uninstall commands, then:
sudo apt-get --fix-broken install
We have compiled bluez-alsa for Vero and Pi2/3. Download armv7-bluez-alsa-osmc.deb from here https://collab.osmc.tv/s/hxG3JX4m3rY2XiM and put it onto your Vero/Pi. Run
sudo apt-get install wget libbluetooth3 libsbc1 libfdk-aac1 sudo dpkg -i armv7-bluez-alsa-osmc.deb
Re-boot to get the bluealsa service started.
Have a look at the file .asoundrc.example in your home directory for instructions on how to make a file .asoundrc to use with your BT headphones or speaker. You need to find out the device’s MAC number which looks something like 01:23:45:67:89:ab and put it into .asoundrc. The MAC will show up when you attempt to connect.
Connect your BT headphones/speaker using MyOSMC or bluetoothctl from the commandline and your device should show up in Kodi’s audio settings. If using bluetoothctl, start it from the commandline, make your BT device discoverable, then
agent on scan on
Wait for your headphones/speaker to show up, then, using its MAC instead of 01:23:45:67:89:ab:
pair 01:23:45:67:89:ab trust 01:23:45:67:89:ab connect 01:23:45:67:89:ab scan off agent off quit
You can also stream audio from your smartphone (eg) to your OSMC device by pairing and connecting them. Pair and trust your smartphone as above. You should now be able to choose your OSMC device in the list of BT devices on your smartphone.
Make sure Kodi isn’t trying to use HDMI audio at the same time - turn off “Keep audio device alive” in Settings-System-Audio.