mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 08:10:59 +00:00
* configure: Regenerated * configure.ac: Check for flite library and flite.h header. * Tools/GNUmakefile: Add ${BUILD_SPEECH} to subproject list. * Tools/say/GNUmakefile * Tools/say/say.m: Say utility * Tools/speech/FliteSpeechEngine.m: * Tools/speech/GNUmakefile * Tools/speech/GSSpeechEngine.[hm] * Tools/speech/GSSpeechServer.[hm] * Tools/speech/GSSpeechSynthesizer.[hm]: Speech synthesis engine implementation using flite. * Tools/speech/main.m: main for the server application. Speech code by David Chisnall <theraven@sucs.org> Changes to makefiles and config by Gregory Casamento. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28430 72102866-910b-0410-8b05-ffd578937521
44 lines
1,020 B
Objective-C
44 lines
1,020 B
Objective-C
#import <Foundation/Foundation.h>
|
|
@class GSSpeechEngine;
|
|
/**
|
|
* GSSpeechServer handles all of the engine-agnostic operations. Currently,
|
|
* there aren't any, but when the on-screen text interface is added it should
|
|
* go in here.
|
|
*/
|
|
@interface GSSpeechServer : NSObject {
|
|
GSSpeechEngine *engine;
|
|
}
|
|
/**
|
|
* Returns a shared instance of the speech server.
|
|
*/
|
|
+ (id)sharedServer;
|
|
/**
|
|
* Begins speaking the string specified by the first argument. Calls the
|
|
* delegate method on the client when done.
|
|
*/
|
|
- (BOOL)startSpeakingString: (NSString*)aString notifyWhenDone: (id)client;
|
|
/**
|
|
* Stop speaking.
|
|
*/
|
|
- (void)stopSpeaking;
|
|
/**
|
|
* Returns YES if the engine is currently outputting speech.
|
|
*/
|
|
- (BOOL)isSpeaking;
|
|
/**
|
|
* Returns an array of voices supported by this speech synthesizer.
|
|
*/
|
|
- (NSArray*)voices;
|
|
/**
|
|
* Sets the voice.
|
|
*/
|
|
- (void)setVoice: (NSString*)aVoice;
|
|
/**
|
|
* Returns the current voice.
|
|
*/
|
|
- (NSString*)voice;
|
|
/**
|
|
* Returns the name of the default voice.
|
|
*/
|
|
- (NSString*)defaultVoice;
|
|
@end
|