Open mu3 opened 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.
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.
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)
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!
«OK Google» or «Hey Google» or own hotword support