StevenHickson / PiAUISuite

Raspberry PI AUI Suite
Other
695 stars 203 forks source link

Interrupt Command for Voicecommand #87

Open Colin1964 opened 7 years ago

Colin1964 commented 7 years ago

Hello, Voicecommand (I call her "Gladys") is working just fine. She answers questions, reads the news and weather, adjusts my Hive heating, and can even tell me what homework my son has due. Having spent months getting her to respond to commands and speak I now want to stop her talking! I'd like to add a feature that allows me to interrupt her so I can issue a new command. Can anyone suggest how I might do this? I think it will be using "threading" and follow something like the logic shown. voice

symatix commented 7 years ago

I think it would be possible if the keyword listening is constantly running in the background using parallel recording, and another keyword like "stop" is set up to terminate the execution of the command. By the diagram you made, it would not interrupt the command during the execution, only after. That defeats the purpose of stopping mid execution.