co-maps/iphone/Maps/Core/TextToSpeech/MWMTextToSpeech.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.3 KiB
C
Raw Normal View History

2025-11-22 13:58:55 +01:00
#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