sorry about that!
well I made a python script to play a sound after some action. The script call a pygame library to play the sound. I pause volumio with the own build command “Volumio pause” and after the action it will resume with “volumio play”.
I dont know if this is important too, but the action doesnt just play a sound, it send a command to the GPIO to turn a lamp on.
so my script call the GPIO, pygame and OS library.
GPio for control the GPio pins. The PyGame in order to reproduce a sound and the os.system() in order to send the “volumio pause and volumio play” commands.
This script works in a normal Raspberry Pi enviroment, but under volumio doesnt.
I dont know how about Pi, but for some linux distribution you have to install some repositories, like for Kubuntu the restricted ones, in order to use some codecs. Is this under Volumio fork too?