Available in OS X v10.6 and later.
NSSpeechRecognizerDelegate protocol defines the optional methods implemented by delegates of
Invoked when the recognition engine has recognized the application command
optional func speechRecognizer(_
sender: NSSpeechRecognizer, didRecognizeCommand
- (void)speechRecognizer:(NSSpeechRecognizer *)
commandis one of the strings from the array passed to
setCommands:. The delegate typically evaluates which command was recognized and performs the related action.
Available in OS X v10.3 and later.
Available as part of an informal protocol prior to OS X v10.6.