Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
37
iphone/Maps/Core/TextToSpeech/MWMTextToSpeech.h
Normal file
37
iphone/Maps/Core/TextToSpeech/MWMTextToSpeech.h
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#import "MWMTextToSpeechObserver.h"
|
||||
#import <AVFoundation/AVFoundation.h>
|
||||
|
||||
@interface MWMTextToSpeech : NSObject
|
||||
|
||||
+ (MWMTextToSpeech *)tts;
|
||||
- (AVSpeechSynthesisVoice *)voice;
|
||||
+ (BOOL)isTTSEnabled;
|
||||
+ (void)setTTSEnabled:(BOOL)enabled;
|
||||
+ (BOOL)isStreetNamesTTSEnabled;
|
||||
+ (void)setStreetNamesTTSEnabled:(BOOL)enabled;
|
||||
+ (NSDictionary<NSString *, NSString *> *)availableLanguages;
|
||||
+ (NSString *)selectedLanguage;
|
||||
+ (NSString *)savedLanguage;
|
||||
+ (NSInteger)speedCameraMode;
|
||||
+ (void)setSpeedCameraMode:(NSInteger)speedCameraMode;
|
||||
+ (void)playTest;
|
||||
|
||||
+ (void)addObserver:(id<MWMTextToSpeechObserver>)observer;
|
||||
+ (void)removeObserver:(id<MWMTextToSpeechObserver>)observer;
|
||||
|
||||
+ (void)applicationDidBecomeActive;
|
||||
|
||||
@property(nonatomic) BOOL active;
|
||||
- (void)setNotificationsLocale:(NSString *)locale;
|
||||
- (void)playTurnNotifications:(NSArray<NSString *> *)turnNotifications;
|
||||
- (void)playWarningSound;
|
||||
- (void)play:(NSString *)text;
|
||||
|
||||
- (instancetype)init __attribute__((unavailable("call +tts instead")));
|
||||
- (instancetype)copy __attribute__((unavailable("call +tts instead")));
|
||||
- (instancetype)copyWithZone:(NSZone *)zone __attribute__((unavailable("call +tts instead")));
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone
|
||||
__attribute__((unavailable("call +tts instead")));
|
||||
+ (instancetype) new __attribute__((unavailable("call +tts instead")));
|
||||
|
||||
@end
|
||||
Loading…
Add table
Add a link
Reference in a new issue