# Mopidy output to bluetooth speakers and audio out

**URL:** <https://discourse.mopidy.com/t/mopidy-output-to-bluetooth-speakers-and-audio-out/3140>\
**Category:** Misc\
**Created:** [February 23, 2019, 9:43am UTC](https://discourse.mopidy.com/t/mopidy-output-to-bluetooth-speakers-and-audio-out/3140 "2019-02-23T09:43:42Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![alvinx](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/alvinx/32/1628_2.png) [@alvinx](https://discourse.mopidy.com/u/alvinx)\
**Post date:** [June 27, 2020, 8:21pm UTC](https://discourse.mopidy.com/t/mopidy-output-to-bluetooth-speakers-and-audio-out/3140/21 "2020-06-27T20:21:20Z")

</div>

I want to output my audio to 2 alsa devices silmutaneously as well, but no bluetooth involved.

1st output to my raspberry’s headphone jack (device=plug:output)  
2nd output to an additional alsa device named peppyalsa (device=peppyalsa), which is used to feed audio into a named pipe (fifo), on the other end of that pipe/fifo I’m running peppymeter (a vu meter on my SPI touchscreen).  
peppyalsa is an alsa plugin created by the maker of peppymeter to work around the blocking behaviour of fifo.

When testing the peppyalsa device with aplay the vu meter (peppymeter) starts immediately:  
`aplay -D peppyalsa /usr/share/sounds/alsa/Front_Center.wav`

Now I try to output my audio from mopidy to my 2 alsa devices.  
This works somehow, BUT the output to peppyalsa starts exactly after 1:05 minutes, so my vu meter starts too late, once it’s running audio is in sync.

Here are 2 output configuration I tried that work like this:

```auto
output = audioresample ! tee name=t ! queue ! alsasink device=plug:output t. ! queue ! audioresample ! alsasink device=peppyalsa

output = tee name=t t. ! queue ! alsasink device=plug:output t. ! queue ! alsasink device=peppyalsa

```

Both have the same behaviour, I tried some other gstreamer configs but these didn’t work at all.  
I don’t know where this start delay is coming from.

Can anybody point me in the right direction how to get audio output on both alsa devices silmutaneously ?

I hope someone gets the idea.

See here too: [Output to 2 alsa devices silmutaneously?](https://discourse.mopidy.com/t/output-to-2-alsa-devices-silmutaneously/4130)

---

_[View the full topic](https://discourse.mopidy.com/t/mopidy-output-to-bluetooth-speakers-and-audio-out/3140)._
