百度导航SDK for iOS类参考
 All Classes Functions Properties
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 
15 @protocol BNNaviSoundDelegate <NSObject>
16 
20 - (void)onPlayTTS:(NSString*)text;
21 
27 - (void)onPlayVoiceSound:(BNVoiceSoundType)type filePath:(NSString *)filePath;
28 
34 - (void)onTTSAuthorized:(BOOL)success;
35 
36 @end
37 
38 
39 @protocol BNSoundProtocol <NSObject>
40 
45 - (BOOL)isTTSPlaying;
46 
50 - (BOOL)pause;
51 
55 - (BOOL)resume;
56 
61 - (BOOL)playText:(NSString *)text;
62 
66 - (void)setSoundDelegate:(id<BNNaviSoundDelegate>)delegate;
67 
68 @end
69 
70 #endif /* BNSoundProtocol_h */
Definition: BNSoundProtocol.h:39
Definition: BNSoundProtocol.h:15