added language autodiscovery

This commit is contained in:
Jeena 2014-11-13 23:00:28 +01:00
parent 08b0ec0840
commit dabbb4304d
8 changed files with 868 additions and 1163 deletions

View file

@ -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