2020-02-03 16:02:03 +00:00
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <AppKit/NSSpeechRecognizer.h>
|
|
|
|
|
2020-02-01 10:43:06 +00:00
|
|
|
@class GSSpeechRecognitionEngine;
|
2020-02-03 16:02:03 +00:00
|
|
|
|
2020-01-30 21:28:18 +00:00
|
|
|
/**
|
2020-02-01 10:43:06 +00:00
|
|
|
* GSSpeechRecognitionServer handles all of the engine-agnostic operations. Currently,
|
2020-01-30 21:28:18 +00:00
|
|
|
* there aren't any, but when the on-screen text interface is added it should
|
|
|
|
* go in here.
|
|
|
|
*/
|
2020-02-03 16:02:03 +00:00
|
|
|
@interface GSSpeechRecognitionServer : NSObject
|
|
|
|
{
|
|
|
|
GSSpeechRecognitionEngine *_engine;
|
|
|
|
id<NSSpeechRecognizerDelegate> _delegate;
|
2020-01-30 21:28:18 +00:00
|
|
|
}
|
2020-02-03 16:02:03 +00:00
|
|
|
|
2020-01-30 21:28:18 +00:00
|
|
|
/**
|
|
|
|
* Returns a shared instance of the speech server.
|
|
|
|
*/
|
|
|
|
+ (id)sharedServer;
|
2020-02-03 16:02:03 +00:00
|
|
|
|
|
|
|
- (void) setDelegate: (id<NSSpeechRecognizerDelegate>) delegate;
|
|
|
|
|
|
|
|
- (id<NSSpeechRecognizerDelegate>) delegate;
|
2020-01-30 21:28:18 +00:00
|
|
|
@end
|