# Request for mopidy.config example of specified alsa device

**URL:** <https://discourse.mopidy.com/t/request-for-mopidy-config-example-of-specified-alsa-device/5581>\
**Category:** Help and support\
**Created:** [October 17, 2022, 11:42pm UTC](https://discourse.mopidy.com/t/request-for-mopidy-config-example-of-specified-alsa-device/5581 "2022-10-17T23:42:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GregD](https://avatars.discourse-cdn.com/v4/letter/g/a183cd/32.png) [@GregD](https://discourse.mopidy.com/u/GregD)\
**Post date:** [October 17, 2022, 11:42pm UTC](https://discourse.mopidy.com/t/request-for-mopidy-config-example-of-specified-alsa-device/5581/1 "2022-10-17T23:42:14Z")

</div>

Can someone please provide an example of the [audio] section of mopidy.config that specifies a particular audio device other than the default alsa device?

Currently on my system mopidy is sending sound output to the default alsa device. This command also results in sound coming out this device:

_gst-launch-1.0 audiotestsrc ! audioresample ! alsasink_

This command results in sound coming out of the **desired** device:

_gst-launch-1.0 audiotestsrc ! audioresample ! alsasink device=plughw:CARD=Audio,DEV=0_

The _plughw:CARD=Audio,DEV=0_ bit is copied from the output of the command:

_aplay -L_

What I have currently in /etc/mopidy.conf is the following:

> [audio]  
> output = alsasink  
> device = plughw:CARD=Audio,DEV=0

However the log file has the following error (the beginnings of these lines have been removed)

> WARNING [MainThread] mopidy. **main** Found fatal audio configuration errors:  
> WARNING [MainThread] mopidy. **main** audio/device unknown config key.  
> ERROR [MainThread] mopidy. **main** Please fix fatal configuration errors, exiting…

It is not clear to me whether a keyword other than _device_ needs to be used, or if the format of the value of the _device_ keyword is not as expected. Can someone please clarify that for me?

---

<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:** [October 18, 2022, 7:35am UTC](https://discourse.mopidy.com/t/request-for-mopidy-config-example-of-specified-alsa-device/5581/2 "2022-10-18T07:35:20Z")

</div>

There should be lots of examples on this forum. For your example, you would do

```auto
[audio]
output = alsasink device=plughw:CARD=Audio,DEV=0

```

---

<div class="post-metadata">

**Author:** ![GregD](https://avatars.discourse-cdn.com/v4/letter/g/a183cd/32.png) [@GregD](https://discourse.mopidy.com/u/GregD)\
**Post date:** [October 18, 2022, 3:31pm UTC](https://discourse.mopidy.com/t/request-for-mopidy-config-example-of-specified-alsa-device/5581/3 "2022-10-18T15:31:38Z")

</div>

Thank you very much. That worked.

Try as I might I just couldn’t find the right search terms to find those examples.

---

<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:** [October 18, 2022, 4:44pm UTC](https://discourse.mopidy.com/t/request-for-mopidy-config-example-of-specified-alsa-device/5581/4 "2022-10-18T16:44:13Z")

</div>

No worries. To be fair I happen to know most people were interested in “alsasink” and “device” when looking for help configuring the pipeline. Maybe I’ll add another example to the docs.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/system/32/1_2.png) [@system](https://discourse.mopidy.com/u/system)\
**Post date:** [October 21, 2022, 4:44pm UTC](https://discourse.mopidy.com/t/request-for-mopidy-config-example-of-specified-alsa-device/5581/5 "2022-10-21T16:44:20Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
