mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 20:07:38 +00:00
* config.make.in: Change to include BUILD_SPEECH in output
* 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
This commit is contained in:
parent
d5cb6fc832
commit
0e43459d49
16 changed files with 830 additions and 3 deletions
44
Tools/speech/GSSpeechServer.h
Normal file
44
Tools/speech/GSSpeechServer.h
Normal file
|
@ -0,0 +1,44 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue