2020-02-07 09:35:35 +00:00
|
|
|
/* Interface of class GSSpeechRecognitionServer
|
|
|
|
Copyright (C) 2019 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
By: Gregory John Casamento
|
|
|
|
Date: Fri Dec 6 04:55:59 EST 2019
|
|
|
|
|
|
|
|
This file is part of the GNUstep Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with this library; if not, write to the Free
|
|
|
|
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02110 USA.
|
|
|
|
*/
|
|
|
|
|
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;
|
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
|
|
|
|
2020-02-06 09:29:51 +00:00
|
|
|
- (void) startListening;
|
|
|
|
- (void) stopListening;
|
2020-02-03 16:02:03 +00:00
|
|
|
|
2020-01-30 21:28:18 +00:00
|
|
|
@end
|