NSSpeechRecognizerDelegate Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in OS X v10.6 and later.
Companion guide
Declared in
NSSpeechRecognizer.h

Overview

The NSSpeechRecognizerDelegate protocol defines the optional methods implemented by delegates of NSSpeechRecognizer objects.

Tasks

Recognizing Commands

Instance Methods

speechRecognizer:didRecognizeCommand:

Invoked when the recognition engine has recognized the application command command.

- (void)speechRecognizer:(NSSpeechRecognizer *)sender didRecognizeCommand:(id)command
Discussion

command is one of the strings from the array passed to setCommands:. The delegate typically evaluates which command was recognized and performs the related action.

Availability
  • Available in OS X v10.3 and later.
  • Available as part of an informal protocol prior to OS X v10.6.
Declared In
NSSpeechRecognizer.h