added language autodiscovery
This commit is contained in:
parent
08b0ec0840
commit
dabbb4304d
8 changed files with 868 additions and 1163 deletions
|
@ -16,12 +16,14 @@
|
|||
NSSpeechSynthesizer *synth;
|
||||
NSRange oldRange;
|
||||
BOOL isNewLocation;
|
||||
NSArray *languages;
|
||||
}
|
||||
|
||||
@property (weak) IBOutlet NSWindow *window;
|
||||
@property (strong, nonatomic) IBOutlet NSTextView *textView;
|
||||
@property (weak) IBOutlet NSMenu *languageMenu;
|
||||
@property (weak) IBOutlet NSPopUpButton *languageMenuPopupButton;
|
||||
@property (weak) IBOutlet NSToolbarItem *speakButton;
|
||||
|
||||
-(IBAction)speakAction:(id)sender;
|
||||
-(IBAction)seekForward:(id)sender;
|
||||
|
@ -33,4 +35,7 @@
|
|||
- (void)changeLanguage:(id)sender;
|
||||
- (void)changeVoiceGender:(id)sender;
|
||||
|
||||
- (NSString *)findLanguageFromString:(NSString *)text;
|
||||
- (void)setVoiceForLanguage:(NSString *)language;
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue