Newer
Older
react-native-hi-baidu-tts / ios / HiSpeechSynthesizer.h
xiaobaoafei on 25 Apr 2022 初始化
//
//  HiSpeechSynthesizer.h
//  HiBaiduTts
//
//  Created by 连仁辉 on 2022/4/22.
//  Copyright © 2022 Facebook. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BDSSpeechSynthesizerDelegate.h"
#import "BDS_EttsModelManagerInterface.h"
#import "BDSTTSEventManager.h"

NS_ASSUME_NONNULL_BEGIN

@interface HiSpeechSynthesizer : NSObject <BDSSpeechSynthesizerDelegate>
- (instancetype)initApiKey:(NSString *)apiKey secretKey:(NSString *)secretKey;
- (void)synthesizeText:(NSString *)text;
- (void)setSpeaker:(NSString *)speaker;
- (void)pauseOrResume;
- (void)cancel;
- (void)releaseInstance;

+ (BOOL)isFileSynthesisEnabled;
+ (BOOL)isSpeakEnabled;
+ (void)setFileSynthesisEnabled:(BOOL)isEnabled;
+ (void)setSpeakEnabled:(BOOL)isEnabled;
@end

NS_ASSUME_NONNULL_END