Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for Snowboy hotword detection #232
I was unhappy with sphinx's accuracy when attempting to use it for hotword detection to help reduce the number of calls being made to (in my case) Google's cloud speech recognition service and thought Snowboy would be a great addition to this library. It is free for hobby use and runs entirely offline and so far results have been day and night. Link to Snowboy site: https://snowboy.kitt.ai/
This implementation was done such that you still use the same listen() call to get audio from the mic however you have the ability to specify that you would prefer it wait until a hotword is heard before it actually begins to record audio. When specifying you would like listen() to wait for a hotword you have to currently pass in the location of where the Snowboy source files are located on your computer. Snowboy is free for hobby use but is not free for commercial use. For this reasons I thought it would be safer to not include the source with the speech_recognition library but rather require the user to acquire it themselves.
Disclaimer: I do not work for and am not affiliated with Snowboy in any way, just found their product to be pretty slick