fossasia / susi_linux

Hardware for SUSI AI https://susi.ai
Apache License 2.0
1.6k stars 149 forks source link

Feature to properly quit from the system. #85

Open guyandtheworld opened 7 years ago

guyandtheworld commented 7 years ago

To exit from the system, we have to crtl+c while running, which is not clean. We can discuss better alternatives here and I'll get on with it implementing it right away.

I was thinking maybe pressing q while the process was running to quit?

guyandtheworld commented 7 years ago

@betterclever Suggestions? :smile:

betterclever commented 7 years ago

To quit the system properly, we need to force system to idle state. Then, send interrupt signals to speed detection loop and stop the hotword detection. For CLI, we may do it using 'q' button as you suggested. For GUI mode, make sure it happens atomically on close button press.

guyandtheworld commented 7 years ago

@betterclever I will get right on with it. Thanks for explaining!