Dmix fails in rhappsy, but works on the command line

I’m trying to get Rhasspy to use the dmix so I can also have mopidy working (mopidy doesn’t release the audio device when it finishes playing a sound). But Rhasspy refuses to work with dmix.

These are the settings.

This works from the command line.

aplay -D dmix:CARD=Device_1,DEV=0  piano2.wav -q -t wav

The speaker is a cheap usb speaker, but it seems like that’s not too important here since it works from the command line.

The issue is occuring because mpd and rhasspy is running on different users.
A alsa sound device is usually having permission set to 0660.
First 6-digit is the permission for the current users session.
Second 6-digit is the permission for the current users in other sessions.
The last 0-digit is the permission for other users.

If you want to have other users access the same device, then you need to make a virtual alsa device with ipc_perm 0666 set.

1 Like

Thanks, I’ll look into how to do that.