I am trying to find a way to pause Moode Audio while playing music so that an announcement can be played over the speakers with a aplay
. I have looked at the API Rest commands here:
https://github.com/moode-player/moode/blob/develop/www/setup.txt
However, there does not seem to be a pause, stop and start. Accordingly, I have used the REST command below to successfully lower Moode Audio’s volume in hopes that I then can play an announcement file with aplay
for example aplay WeWillBeClosingSoon.wav
and then restore Moode Audio’s volume. However, the lowering of the volume seems to equally affect aplay
. Does anyone know how this can be achieved?
curl "http://192.168.40.252/command/?cmd=set_volume -dn 35"
aplay WeWillBeClosingSoon.wav
curl "http://192.168.40.252/command/?cmd=set_volume -up 35"
I believe this may be possible with volumio but I was hoping to stick with Moode.