|
TencentNavKit
|
语音播报器协议 More...
#import <TNKAudioPlayerProtocol.h>
Instance Methods | |
| (void) | - playWithRate: |
| 播放速度设置。传入其他无效类型不生效 since 6.9.0 More... | |
| (void) | - playWithAudioParam: |
| 播放自定义文字, 可放入播放队列中。如果执行stop方法,则队列中的播报内容也会被清除。 since 5.3.8 More... | |
| (void) | - playWithNaviTTS: |
| 播放导航诱导信息 More... | |
| (void) | - stop |
| 停止当前播报内容. More... | |
| (BOOL) | - stateInterruption |
| 当前播报中断态. More... | |
| (void) | - mutePlayer |
| 设置成静音. More... | |
| (void) | - unmutePlayer |
| 解除静音. More... | |
| (BOOL) | - isPlayerMute |
| 当前是否静音. More... | |
Properties | |
| id< TNKAudioPlayerDelegate > | delegate |
| TNKAudioPlayer的回调. 用于接收播报状态等事件. More... | |
| BOOL | isPlaying |
| 语音播报器是否在播放状态. More... | |
| float | volume |
| 控制音量,设置范围[0, 1]T More... | |
| int | rate |
| 控制语音播报速度,请在开始播报之前设置完成设置范围[20, 100],默认是50是正常速度(不设置该属性默认也是正常速度),最大支持100是双倍速度 More... | |
语音播报器协议
| - (BOOL) isPlayerMute |
当前是否静音.
| - (void) mutePlayer |
设置成静音.
| - (void) playWithAudioParam: | (TNKAudioParam *) | audioParam |
播放自定义文字, 可放入播放队列中。如果执行stop方法,则队列中的播报内容也会被清除。 since 5.3.8
| audioParam | 播报信息 |
| - (void) playWithNaviTTS: | (TNKNavTTS *) | naviTTS |
播放导航诱导信息
| naviTTS | 播报信息 |
| - (void) playWithRate: | (TNKAudioPlayRateType) | type |
播放速度设置。传入其他无效类型不生效 since 6.9.0
| type | 播报速度类型 |
| - (BOOL) stateInterruption |
当前播报中断态.
| - (void) stop |
停止当前播报内容.
| - (void) unmutePlayer |
解除静音.
|
readwritenonatomicweak |
TNKAudioPlayer的回调. 用于接收播报状态等事件.
|
readnonatomicassign |
语音播报器是否在播放状态.
|
readwritenonatomicassign |
控制语音播报速度,请在开始播报之前设置完成设置范围[20, 100],默认是50是正常速度(不设置该属性默认也是正常速度),最大支持100是双倍速度
|
readwritenonatomicassign |
控制音量,设置范围[0, 1]T