added possibility to choose Voice
This commit is contained in:
parent
2d5efe26f6
commit
c854b97b29
6 changed files with 479 additions and 339 deletions
|
@ -11,6 +11,8 @@
|
|||
@interface SpeakerAppDelegate : NSObject <NSApplicationDelegate, NSSpeechSynthesizerDelegate> {
|
||||
NSWindow *window;
|
||||
NSTextView *textView;
|
||||
NSMenu *languageMenu;
|
||||
NSPopUpButton *languageMenuPopupButton;
|
||||
NSSpeechSynthesizer *synth;
|
||||
NSRange oldRange;
|
||||
BOOL isNewLocation;
|
||||
|
@ -18,6 +20,8 @@
|
|||
|
||||
@property (assign) IBOutlet NSWindow *window;
|
||||
@property (retain, nonatomic) IBOutlet NSTextView *textView;
|
||||
@property (assign) IBOutlet NSMenu *languageMenu;
|
||||
@property (assign) IBOutlet NSPopUpButton *languageMenuPopupButton;
|
||||
|
||||
-(IBAction)speakAction:(id)sender;
|
||||
-(IBAction)seekForward:(id)sender;
|
||||
|
@ -26,4 +30,7 @@
|
|||
-(void)stopSpeaking;
|
||||
-(void)startSpeaking;
|
||||
|
||||
- (void)changeLanguage:(id)sender;
|
||||
- (void)changeVoiceGender:(id)sender;
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue