Wiretuts Professional unprofessional tutorials.

Connect Mopidy to bluetooth speaker on Raspberry Pi

Connect bluetooh speaker to Mopidy cover

In this tutorial i'm going to teach how to connect Mopidy to bluetooth speaker on Raspberry Pi. We are using PulseAudio to connect bluetooth speaker to Raspberry and then configure Mopidy to use that sink.

1. In order to this tutorial to work, you have to complete Connecting bluetooth audio device to Raspberry Pi -tutorial first. In that tutorial we installing PulseAudio and connecting your bluetooth speaker to Raspberry Pi, and in this tutorial we are making Mopidy to use that sink.

2. Open terminal locally or remotely (Learn how) and run this command to edit PulseAudio config:
sudo nano /etc/pulse/default.pa

Open Pulseaudio config file.

3. Find the line that contains "native-protocol-tcp" text. If you are using Nano, you can search text by pressing [Ctrl] + W from your keyboard. Uncomment that line and make it look like in the below. When you have made the changes, press [Ctrl] + X then Y and then [Enter].

### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
load-module module-native-protocol-tcp auth-ip-acl=
#load-module module-zeroconf-publish
Uncomment the line and add needed text.

4. Next we need to edit Mopidy config: sudo nano /etc/mopidy/mopidy.conf.

Open Mopidy config file.

5. Change the audio output like in the example below and save your mopidy.conf.

output = pulsesink server=
Change audio output to pulsesink server.

6. And for the last steps, we need to restart PulseAudio process and you can do it by running these two commands.
pulseaudio -k
pulseaudio --start

Restart pulseaudio.

7. Play music from Mopidy and you should get music from your bluetooth speaker.


No comments yet :(. Be first to write one.