mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
* Source/NSSpeechSynthesizer.[hm]: Add code to tell the developer
that certain methods need to be overriden. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28124 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
67c5bccd17
commit
1a50756c33
3 changed files with 29 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-03-23 12:13-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSSpeechSynthesizer.[hm]: Add code to tell the developer
|
||||
that certain methods need to be overriden.
|
||||
|
||||
2009-03-23 02:36-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Headers/AppKit/AppKit.h: Add include for NSSpeechSynthesizer.h
|
||||
|
|
|
@ -103,6 +103,7 @@ extern NSString *NSSpeechDictionaryEntryPhonemes;
|
|||
id _delegate;
|
||||
NSMutableArray *_dictionaries;
|
||||
NSMutableDictionary *_properties;
|
||||
BOOL _isSpeaking;
|
||||
}
|
||||
|
||||
// init...
|
||||
|
|
|
@ -145,6 +145,7 @@ NSString *NSSpeechDictionaryEntryPhonemes = @"NSSpeechDictionaryEntryPhonemes";
|
|||
forProperty: (NSString *)property
|
||||
error: (NSError **)error
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
@ -170,7 +171,8 @@ NSString *NSSpeechDictionaryEntryPhonemes = @"NSSpeechDictionaryEntryPhonemes";
|
|||
}
|
||||
|
||||
+ (NSString *) defaultVoice
|
||||
{
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
@ -183,29 +185,44 @@ NSString *NSSpeechDictionaryEntryPhonemes = @"NSSpeechDictionaryEntryPhonemes";
|
|||
// Synthesizing..
|
||||
- (BOOL) isSpeaking
|
||||
{
|
||||
return NO;
|
||||
return _isSpeaking;
|
||||
}
|
||||
|
||||
- (BOOL) startSpeakingString: (NSString *)text
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL) startSpeakingString: (NSString *)text toURL: (NSURL *)url
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (void) stopSpeaking {}
|
||||
- (void) stopSpeaking
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) stopSpeakingAtBoundary: (NSSpeechBoundary)boundary {}
|
||||
- (void) stopSpeakingAtBoundary: (NSSpeechBoundary)boundary
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) pauseSpeakingAtBoundary: (NSSpeechBoundary)boundary {}
|
||||
- (void) pauseSpeakingAtBoundary: (NSSpeechBoundary)boundary
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) continueSpeaking {}
|
||||
- (void) continueSpeaking
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (NSString *) phonemesFromText: (NSString *)text
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return nil;
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue