TencentNavKit
<TNKAudioPlayerProtocol> Protocol Reference

语音播报器协议 More...

#import <TNKAudioPlayerProtocol.h>

Inheritance diagram for <TNKAudioPlayerProtocol>:

Instance Methods

(void) - playWithAudioParam:
 播放自定义文字, 可放入播放队列中。如果执行stop方法,则队列中的播报内容也会被清除。 since 5.3.8 More...
 
(void) - playWithNaviTTS:
 播放导航诱导信息 More...
 
(void) - stop
 停止当前播报内容. More...
 

Properties

id< TNKAudioPlayerDelegatedelegate
 TNKAudioPlayer的回调. 用于接收播报状态等事件. More...
 
BOOL isPlaying
 语音播报器是否在播放状态. More...
 
float volume
 控制音量,设置范围[0, 1]T More...
 

Detailed Description

语音播报器协议

Method Documentation

◆ playWithAudioParam:

- (void) playWithAudioParam: (TNKAudioParam *)  audioParam

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

Parameters
audioParam播报信息

◆ playWithNaviTTS:

- (void) playWithNaviTTS: (TNKNavTTS *)  naviTTS

播放导航诱导信息

Parameters
naviTTS播报信息

◆ stop

- (void) stop

停止当前播报内容.

Property Documentation

◆ delegate

- (id<TNKAudioPlayerDelegate>) delegate
readwritenonatomicweak

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

◆ isPlaying

- (BOOL) isPlaying
readnonatomicassign

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

◆ volume

- (float) volume
readwritenonatomicassign

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

Since
5.4.3

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