TencentNavKit
<TNKAudioPlayerProtocol> Protocol Reference

语音播报器协议 More...

#import <TNKAudioPlayerProtocol.h>

Inheritance diagram for <TNKAudioPlayerProtocol>:

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< TNKAudioPlayerDelegatedelegate
 TNKAudioPlayer的回调. 用于接收播报状态等事件. More...
 
BOOL isPlaying
 语音播报器是否在播放状态. More...
 
float volume
 控制音量,设置范围[0, 1]T More...
 
int rate
 控制语音播报速度,请在开始播报之前设置完成设置范围[20, 100],默认是50是正常速度(不设置该属性默认也是正常速度),最大支持100是双倍速度 More...
 

Detailed Description

语音播报器协议

Method Documentation

◆ isPlayerMute

- (BOOL) isPlayerMute

当前是否静音.

◆ mutePlayer

- (void) mutePlayer

设置成静音.

◆ playWithAudioParam:

- (void) playWithAudioParam: (TNKAudioParam *)  audioParam

播放自定义文字, 可放入播放队列中。如果执行stop方法,则队列中的播报内容也会被清除。 since 5.3.8

Parameters
audioParam播报信息

◆ playWithNaviTTS:

- (void) playWithNaviTTS: (TNKNavTTS *)  naviTTS

播放导航诱导信息

Parameters
naviTTS播报信息

◆ playWithRate:

- (void) playWithRate: (TNKAudioPlayRateType)  type

播放速度设置。传入其他无效类型不生效 since 6.9.0

Parameters
type播报速度类型

◆ stateInterruption

- (BOOL) stateInterruption

当前播报中断态.

◆ stop

- (void) stop

停止当前播报内容.

◆ unmutePlayer

- (void) unmutePlayer

解除静音.

Property Documentation

◆ delegate

- (id<TNKAudioPlayerDelegate>) delegate
readwritenonatomicweak

TNKAudioPlayer的回调. 用于接收播报状态等事件.

◆ isPlaying

- (BOOL) isPlaying
readnonatomicassign

语音播报器是否在播放状态.

◆ rate

- (int) rate
readwritenonatomicassign

控制语音播报速度,请在开始播报之前设置完成设置范围[20, 100],默认是50是正常速度(不设置该属性默认也是正常速度),最大支持100是双倍速度

Since
6.9.0

◆ volume

- (float) volume
readwritenonatomicassign

控制音量,设置范围[0, 1]T

Since
5.4.3

The documentation for this protocol was generated from the following file: