vanshg / MacAssistant

Google Assistant for macOS!
MIT License
1.61k stars 132 forks source link

Hotword detection #18

Open mu3 opened 7 years ago

mu3 commented 7 years ago

«OK Google» or «Hey Google» or own hotword support

oldgalileo commented 7 years ago

This is possible under the current framework. Within AppDelegate.swift, you can enable hotword detection by changing setupHotword(false) to setupHotword(true) within the applicationDidFinishLaunching callback.

oldgalileo commented 7 years ago

In the future, it might be worth changing the speech recognition framework to one that does not require a permanent window on the screen like the NSSpeechRecognizer.

See https://github.com/Kitt-AI/snowboy for a potential alternative.

vanshg commented 7 years ago

Thanks for pointing that out @HowardStark. I definitely agree about the permanent window. I assumed most people wouldn't want it enabled in its current state so I have it off by default. (What I really need to do is add some sort of Settings dialog to enable and disable the preference as the user wishes)

vanshg commented 5 years ago

With the new Macs with the T2 chips, Apple has a way of doing Hotword recognition for Siri ("Hey Siri"). I'm going to try to look into intercepting that maybe? If anyone has thoughts or ideas on how to go about that, it'd be greatly appreciated!