OpenSDK8.1.1
Loading...
Searching...
No Matches
BNSoundProtocol.h
1//
2// BNSoundProtocol.h
3// BNOpenKit
4//
5// Created by linbiao on 2019/3/19.
6// Copyright © 2019年 Chen,Xintao. All rights reserved.
7//
8
9#ifndef BNSoundProtocol_h
10#define BNSoundProtocol_h
11
12#import <Foundation/Foundation.h>
13#import "BNCommonDef.h"
14
16@protocol BNNaviSoundDelegate <NSObject>
17
24- (void)onPlayTTS:(NSString*)text userInfo:(nullable NSDictionary *)userInfo;
25
31- (void)onPlayVoiceSound:(BNVoiceSoundType)type filePath:(NSString *)filePath;
32
38- (void)onTTSAuthorized:(BOOL)success;
39
45
47- (void)onPlayTTSCompleted:(NSError * _Nullable)error;
49- (void)onPlayVoiceSoundCompleted:(NSError * _Nullable)error;
50
56- (void)willSetAudioSessionActive:(BOOL)actinve;
57
63- (void)didSetAudioSessionActive:(BOOL)actinve;
64@end
65
67@protocol BNSoundProtocol <NSObject>
69@property (assign, nonatomic) BOOL supportRecordInNavi;
70
74- (void)setSoundDelegate:(id<BNNaviSoundDelegate>)delegate;
75
76
79
80@end
81
82#endif /* BNSoundProtocol_h */
BOOL supportRecordInNavi
导航中是否需要支持录音,默认为NO
Definition BNSoundProtocol.h:69
void releaseInstance()
释放TTS单例