Hello i have been trying to setup a second keyboard as a soundboard in manjaro for the past two days but i can't figure it out.
What i have tried is using actkbd to detect the keypresses only on the second keyboard and then running the play command from sox to try and play sound like this:
But when trying this i get the error:
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
First i tought it was a problem with it running in root so i changed the command to:
30:::sudo -u roy play /soundboard/message.mp3
But with this the exact same error occurred. On which I have been stuck, when I run 'play /soundboard/sound.mp3' manually in my terminal it works without any problems. I have also tried other sound playing libraries but they are giving me the same error as the one above. Trying it with a small piece of python also didn't fix the problem : /. I hope someone here knows a potential solution to the problem I am having, and is able to help me / try to help me with it.