Use osmc on raspberry pi 3 as a bluetooth speaker

Hello everyone!

I need to connect to OSMC (installed on rasbperry PI 3) with my mobile phone and use speakers, connected to analogue output.

I’ve found few topics like this (Using OSMC on RP3 as a Bkuetooth Speaker) or this (Bluetooth Audio on Raspberry Pi Updated fixes?), but i, actually, they seem to be deprecated.

Is there any appropriate addon or a stable manual how this should be done? Or should i setup a2dp-app-osmc as the only available choice?

p.s. OSMC running Kodi 18.5, 2019-11-17.

If your phone is iOS cant you just use airplay for audio?

Do you like to play music that is stored on your mobile ?
Or do you want to play music stored in the Pi, NAS or whatever and only need to control the playback ? So your mobile acts as a remote ?

Well a2dp-app-osmc is one solution for what you want to do. But as @jayjay wrote depending on what you exactly want to do there are other options without using bluetooth (e.g. Yatse).

@gb160 no, it’s an android device
@jayjay it’s for general purpose, so i need just to direct phone’s audio to osmc installed at raspberry… . For example i need to open a YouTube app and listen

Well you could do it via a2dp or alternatively use Yatse

If you goal is only to attach bluetooth to a set of powered speakers then using a RPi is probably not the best way to do it especially as the analog output is particularly low quality. Unless you are planning on using Kodi you likely would be better suited to just using a standalone bluetooth to RCA adapter which can be had fairly inexpensive.

Would anyone be so kind to help me find a mistake?

As it’s mentioned at most a2dp related topics (for example: [Deprecated] [TESTING] Bluetooth audio streaming (A2DP)) i’ve installed the nescessary package using:

sudo apt-get update
sudo apt-get install a2dp-app-osmc

then i’m trying to connect my phone to osmc like this:

osmc@osmc:~$ bluetoothctl
[NEW] Controller B8:27:EB:CA:48:14 osmc [default]
[bluetooth]# agent on
Agent registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# discoverable on
Changing discoverable on succeeded
[CHG] Controller B8:27:EB:CA:48:14 Discoverable: yes
[bluetooth]# scan on
Discovery started
[CHG] Controller B8:27:EB:CA:48:14 Discovering: yes
[NEW] Device F4:26:72:60:CB:55 RK-G211S
[NEW] Device 20:47:DA:13:85:D8 mimimi
[CHG] Device 20:47:DA:13:85:D8 RSSI: -66
[bluetooth]# pair 20:47:DA:13:85:D8
Attempting to pair with 20:47:DA:13:85:D8
[CHG] Device 20:47:DA:13:85:D8 Connected: yes
Request confirmation
[agent] Confirm passkey 275024 (yes/no): yes
[CHG] Device 20:47:DA:13:85:D8 Modalias: bluetooth:v000Fp1200d1436
[CHG] Device 20:47:DA:13:85:D8 UUIDs: 00001105-0000-1000-8000-00805f9b34fb
[CHG] Device 20:47:DA:13:85:D8 UUIDs: 0000110a-0000-1000-8000-00805f9b34fb
[CHG] Device 20:47:DA:13:85:D8 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 20:47:DA:13:85:D8 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 20:47:DA:13:85:D8 UUIDs: 00001112-0000-1000-8000-00805f9b34fb
[CHG] Device 20:47:DA:13:85:D8 UUIDs: 00001115-0000-1000-8000-00805f9b34fb
[CHG] Device 20:47:DA:13:85:D8 UUIDs: 00001116-0000-1000-8000-00805f9b34fb
[CHG] Device 20:47:DA:13:85:D8 UUIDs: 0000111f-0000-1000-8000-00805f9b34fb
[CHG] Device 20:47:DA:13:85:D8 UUIDs: 0000112d-0000-1000-8000-00805f9b34fb
[CHG] Device 20:47:DA:13:85:D8 UUIDs: 0000112f-0000-1000-8000-00805f9b34fb
[CHG] Device 20:47:DA:13:85:D8 UUIDs: 00001132-0000-1000-8000-00805f9b34fb
[CHG] Device 20:47:DA:13:85:D8 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 20:47:DA:13:85:D8 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device 20:47:DA:13:85:D8 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device 20:47:DA:13:85:D8 ServicesResolved: yes
[CHG] Device 20:47:DA:13:85:D8 Paired: yes
Pairing successful
[CHG] Device 20:47:DA:13:85:D8 ServicesResolved: no
[CHG] Device 20:47:DA:13:85:D8 Connected: no
[bluetooth]# trust 20:47:DA:13:85:D8
[CHG] Device 20:47:DA:13:85:D8 Trusted: yes
Changing 20:47:DA:13:85:D8 trust succeeded
[CHG] Device F4:26:72:60:CB:55 UUIDs: 6e400001-b5a3-f393-e0a9-e50e24dcca9e
[CHG] Device 20:47:DA:13:85:D8 RSSI: -58
[CHG] Device 20:47:DA:13:85:D8 RSSI: -70
[CHG] Controller B8:27:EB:CA:48:14 Discoverable: no
[CHG] Device 20:47:DA:13:85:D8 RSSI: -60

As far as i’ve read that’s all that i need to do… When i open the bluetooth settings on my phone i see the osmc in a list. But it has a bluetooth thumbnail instead of headphones one. When i tap into it nothing happens…

Any ideas what’s wrong?