Raspi 3 & Bluetooth & USB DAC [RESOLVED]

Hello,
OSM version [2020.11-1]

My goal is to stream music from my phone to my raspi3/osmc

I follow the guide here :https://discourse.osmc.tv/t/how-to-set-up-bluetooth-audio/87908

The first step to connect via bluetooth the phone to raspi is ok .
I switch off " keep audio device"

Launch my music from the phone, no sound heared.

The music on Raspi is played on usb DAC ( who is working well is music coming from raspi! )

Any check i can do ?

Thanks

If you are always going to stream to the USB, then you can edit /lib/systemd/system/bluealsa-aplay.service (sudo nano /lib/systemd/system/bluealsa-aplay.service) as follows:

[Unit]
Description=A2DP Playback
After=bluealsa.service syslog.service
Requires=bluealsa.service
StopWhenUnneeded=true

[Service]
ExecStartPre=/bin/sleep 3
ExecStart=/usr/bin/bluealsa-aplay -D front:CARD=Audio --profile-a2dp 00:00:00:00:00:00
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=A2DP-Playback
Restart=on-failure

[Install]
WantedBy=bluetooth.target

then
sudo systemctl daemon-reload
sudo systemctl restart bluealsa-aplay

This assumes your DAC is reported like this by aplay -L

default:CARD=Audio
    USB2.0 High-Speed True HD Audio, USB Audio
    Default Audio Device

USB cards are usually called ‘Audio’. If yours is different, substitute what aplay -L tells you.

Thanks for yr reply !

The USB dac is reported by aplay like this

default:CARD=U0x267f0x10e2
  USB Device 0x267f:0x10e2, USB Audio
   Default Audio Device

Modify service as follow :

cat /lib/systemd/system/bluealsa-aplay.service 
[Unit]
Description=A2DP Playback
After=bluealsa.service syslog.service
Requires=bluealsa.service
StopWhenUnneeded=true

[Service]
ExecStartPre=/bin/sleep 3
#ExecStart=/usr/bin/bluealsa-aplay --profile-a2dp 00:00:00:00:00:00
ExecStart=/usr/bin/bluealsa-aplay -D front:CARD=U0x267f0x10e2 --profile-a2dp 00:00:00:00:00:00
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=A2DP-Playback
Restart=on-failure

[Install]
WantedBy=bluetooth.target

Reboot,
And IT’S WORKING NOW !

BRAVO , thanks

1 Like