MacAssistant icon indicating copy to clipboard operation
MacAssistant copied to clipboard

Hotword detection

Open mu3 opened this issue 7 years ago • 4 comments

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

mu3 avatar Jun 13 '17 21:06 mu3

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 avatar Jun 23 '17 17:06 oldgalileo

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.

oldgalileo avatar Jun 23 '17 17:06 oldgalileo

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 avatar Jun 24 '17 05:06 vanshg

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!

vanshg avatar Oct 30 '18 16:10 vanshg