/* NSSpeechRecognizer.h Application Kit Copyright (c) 2003-2012, Apple Inc. All rights reserved. */ #import #import @class NSArray, NSString; @protocol NSSpeechRecognizerDelegate; @interface NSSpeechRecognizer : NSObject { @private // All instance variables are private id _privateNSSpeechRecognizerVars; } - (id)init; - (void)startListening; - (void)stopListening; - (id )delegate; - (void)setDelegate:(id )anObject; - (NSArray *)commands; - (void)setCommands:(NSArray *)commands; - (NSString *)displayedCommandsTitle; - (void)setDisplayedCommandsTitle:(NSString *)title; - (BOOL)listensInForegroundOnly; - (void)setListensInForegroundOnly:(BOOL)flag; - (BOOL)blocksOtherRecognizers; - (void)setBlocksOtherRecognizers:(BOOL)flag; @end @protocol NSSpeechRecognizerDelegate @optional - (void)speechRecognizer:(NSSpeechRecognizer *)sender didRecognizeCommand:(id)command; @end