# Playing audio over Bluetooth Speaker

**URL:** <https://discourse.mopidy.com/t/playing-audio-over-bluetooth-speaker/2895>\
**Category:** Misc\
**Created:** [November 18, 2018, 8:39pm UTC](https://discourse.mopidy.com/t/playing-audio-over-bluetooth-speaker/2895 "2018-11-18T20:39:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Simpson](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/james_simpson/32/1031_2.png) [@James\_Simpson](https://discourse.mopidy.com/u/James_Simpson)\
**Post date:** [November 18, 2018, 8:39pm UTC](https://discourse.mopidy.com/t/playing-audio-over-bluetooth-speaker/2895/1 "2018-11-18T20:39:38Z")

</div>

Hi All,

I’ve been trying to get this to work all weekend, with a lot of frustration, I still seem to be struggling.

So the setup - Raspberry Pi Zero W - with inbuilt wifi / bluetooth, running the latest Raspian (Stretch) OS.

I have successfully paired and connected to the bluetooth speaker, and setup the speaker in asound.conf with the following:

> ```
> pcm.btspeaker {
> type plug
> slave.pcm {
> type bluealsa
> device "00:75:58:ED:53:D0"
> profile "a2dp"
> }
> hint {
> show on
> description "Bluetooth Speaker"
> }
> 
> }
> 
> ```

which means I can run : $ aplay -D btspeaker ./piano2.wav

Which plays successfully, but I cannot seem to get Mopidy to play any output to this speaker?

```
> [output]
> output = alsasink device=btspeaker

```

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [November 18, 2018, 10:01pm UTC](https://discourse.mopidy.com/t/playing-audio-over-bluetooth-speaker/2895/2 "2018-11-18T22:01:01Z")

</div>

Our documentation suggests testing non-standard setups out with `gst-launch-1.0 audiotestsrc ! audioresample ! autoaudiosink`. Try swapping out audioaudiosink with what you want. You don’t mention how you are running Mopidy (as your user or as a service). If you are running it as a service the issue may be that the mopidy user doesn’t not have permission to use the Bluetooth device.

---

<div class="post-metadata">

**Author:** ![James\_Simpson](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/james_simpson/32/1031_2.png) [@James\_Simpson](https://discourse.mopidy.com/u/James_Simpson)\
**Post date:** [November 18, 2018, 10:24pm UTC](https://discourse.mopidy.com/t/playing-audio-over-bluetooth-speaker/2895/3 "2018-11-18T22:24:37Z")

</div>

Hi Kingosticks,

I’m running Mopidy as a service. I will give the non-standard setups a try and see if I can figure anything out. Although I’m at a stage of giving up for now.

---

<div class="post-metadata">

**Author:** ![Peter\_Diffey](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/peter_diffey/32/1156_2.png) [@Peter\_Diffey](https://discourse.mopidy.com/u/Peter_Diffey)\
**Post date:** [December 18, 2018, 1:12am UTC](https://discourse.mopidy.com/t/playing-audio-over-bluetooth-speaker/2895/4 "2018-12-18T01:12:09Z")

</div>

Hi,  
I have just done the same install and it worked OK.

I have an extra ctl section in asound.conf, not sure if that is relevant.

ctl.!default {  
type bluealsa  
}

I am running on a rpi3.  
I found that I could not use the internal wifi & bt, not sure exactly what the issue is. I had to use a BT dongle
