Hi. I’m building my own mycroft and I would like to know if it is possible to know from code when it is making sound. The reason for this is that in my particular setup I’m going to put the sound through an amp before it goes to the speaker (because I’m using quite a large speaker) and I would like to be able to turn off the amp when no sound is coming out. Some ideas I had for doing this were
- Listening to pulseaudio events
- hooking into the code that talks to the mark-1 enclosure.
- a modification to mycroft-core
Not after a fully fleshed out solution, just opinions on what the best way to go about this is.