mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 09:01:13 +00:00
NSSpeechRecognizer skeleton
This commit is contained in:
parent
11ac26b58a
commit
a880154841
4 changed files with 31 additions and 158 deletions
|
@ -33,8 +33,38 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
@protocol NSSpeechRecognizerDelegate;
|
||||
|
||||
@interface NSSpeechRecognizer : NSObject
|
||||
|
||||
// Initialize
|
||||
- (instancetype) init;
|
||||
|
||||
- (id<NSSpeechRecognizerDelegate>) delegate;
|
||||
|
||||
// Configuring...
|
||||
- (NSArray *) commands;
|
||||
- (void) setCommands: (NSArray *)commands;
|
||||
|
||||
- (NSString *) displayCommandsTitle;
|
||||
- (void) setDisplayCommandsTitle: (NSString *)displayCommandsTitle;
|
||||
|
||||
- (BOOL) listensInForegroundOnly;
|
||||
- (void) setListensInForgroundOnly: (BOOL)listensInForgroundOnly;
|
||||
|
||||
- (BOOL) blocksOtherRecognizers;
|
||||
- (void) setBlocksOtherRecognizers: (BOOL)blocksOtherRecognizers;
|
||||
|
||||
// Listening
|
||||
- (void) startListening;
|
||||
- (void) stopListening;
|
||||
|
||||
@end
|
||||
|
||||
// Protocol
|
||||
@protocol NSSpeechRecognizerDelegate
|
||||
- (void) speechRecognizer: (NSSpeechRecognizer *)sender
|
||||
didRecognizeCommand: (NSString *)command;
|
||||
@end
|
||||
|
||||
#if defined(__cplusplus)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue