# Select 'audio output' from interface

**URL:** <https://discourse.mopidy.com/t/select-audio-output-from-interface/1784>\
**Category:** Misc\
**Created:** [August 2, 2017, 9:36am UTC](https://discourse.mopidy.com/t/select-audio-output-from-interface/1784 "2017-08-02T09:36:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![claudiul93](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/claudiul93/32/658_2.png) [@claudiul93](https://discourse.mopidy.com/u/claudiul93)\
**Post date:** [August 2, 2017, 9:36am UTC](https://discourse.mopidy.com/t/select-audio-output-from-interface/1784/1 "2017-08-02T09:36:46Z")

</div>

Hello,

Currently, I’ve installed Mopidy on a RaspberryPI and created a stream with Icecast2, and is working great.

Now I can control the Mopidy through Android application but the audio output is set only to the stream (Icecast).

Is there any possibility to choose from the interface which audio output to use? Because when I’m not home I want to play the sound on my Android device, and when I’m home to stream it through Icecast… or both (on my phone and Icecast same time). Is something like ‘Cast to my devices’ in Spotify.

Do you have any ideas how can I setup something like this? Is even possible?

Thank you!

---

<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:** [August 2, 2017, 10:02am UTC](https://discourse.mopidy.com/t/select-audio-output-from-interface/1784/2 "2017-08-02T10:02:19Z")

</div>

I’m not sure I follow how you are planning to play the audio _on_ your Android device without using something like icecast.

Regardless, in general you cannot (currently) dynamically change outputs. But you can set it up to output to multiple things at the same time. The following example (which I have borrowed from [here](https://github.com/mopidy/mopidy/pull/1632)) is an example of outputting to both icecast and your local autoaudiosink device (e.g. alsa/pulse) at the same time.

```auto
output = tee name=t ! queue ! audioresample ! autoaudiosink t. ! queue ! lamemp3enc ! shout2send mount=mopidy ip=127.0.0.1 port=8000 password=hackme

```

---

<div class="post-metadata">

**Author:** ![claudiul93](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/claudiul93/32/658_2.png) [@claudiul93](https://discourse.mopidy.com/u/claudiul93)\
**Post date:** [August 2, 2017, 10:11am UTC](https://discourse.mopidy.com/t/select-audio-output-from-interface/1784/3 "2017-08-02T10:11:16Z")

</div>

Thanks! This is very helpful.
