Hooks to trigger external command for given Rhasspy action

Hello,
it would be very nice to have configurable hooks to trigger external commands when given Rhasspy action is performed - for example when wake word is recognized to lit LED attached to Raspberry PI GPIO pins. Another example is to mute audio player co ling with Rhasspy on the same machine and unmuting it again after Rhasspy finished.

The simplest way would be to put for each part of Rhasspy chain configurable path to command to be executed maybe with passing arguments like action result. So it could be recognized by triggered command if given action was successful or not (for example intent not fond etc.)

Another implementation possibility is to add current Rhasspy status into API so it could be queried periodically.

Thank you.
Kind regards
litin

2 Likes