Kitt-AI / snowboy

Future versions with model training module will be maintained through a forked version here: https://github.com/seasalt-ai/snowboy
Other
3.07k stars 998 forks source link

Wake Word Detection During Callback #208

Closed glenncameron2 closed 7 years ago

glenncameron2 commented 7 years ago

I have the demo working to call a custom callback function I made. However, I haven't been able to figure out how to make the hotword detection work while the callback is running. Does anyone know how to do this?

xuchen commented 7 years ago

In your callback function, fork another process to run your long-running command and immediately return the callback function. Check out here:

https://docs.python.org/2/library/multiprocessing.html

Please use the forum for questions like this and use the issue tracker for bug reports.