@Deprecated
public interface BNOuterTTSPlayerCallback
限定符和类型 | 字段和说明 |
---|---|
static int |
PLAYER_STATE_ERROR
已过时。
播放器出现错误
|
static int |
PLAYER_STATE_IDLE
已过时。
播放器空闲
|
static int |
PLAYER_STATE_NOT_INIT
已过时。
播放器未初始化
|
static int |
PLAYER_STATE_PAUSE
已过时。
播放器暂停
|
static int |
PLAYER_STATE_PLAYING
已过时。
播放器正在播报
|
限定符和类型 | 方法和说明 |
---|---|
int |
getTTSState()
已过时。
获取外部TTS当前播报状态
|
void |
initTTSPlayer()
已过时。
初始化外部tts播放器
|
void |
pauseTTS()
已过时。
暂停外部当前tts播报
|
void |
phoneCalling()
已过时。
电话铃声响起, 应该关闭TTS播报或者调整声音
|
void |
phoneHangUp()
已过时。
挂电话,外部应该恢复TTS播报,或者调整声音
|
int |
playTTSText(java.lang.String speech,
int bPreempt)
已过时。
外部TTS播报文案
|
void |
releaseTTSPlayer()
已过时。
释放外部tts播放器
|
void |
resumeTTS()
已过时。
恢复外部当前tts播报
|
void |
stopTTS()
已过时。
停止外部当前tts播报
|
static final int PLAYER_STATE_NOT_INIT
static final int PLAYER_STATE_IDLE
static final int PLAYER_STATE_PLAYING
static final int PLAYER_STATE_PAUSE
static final int PLAYER_STATE_ERROR
int getTTSState()
PLAYER_STATE_NOT_INIT
PLAYER_STATE_IDLE
PLAYER_STATE_PLAYING
PLAYER_STATE_PAUSE
PLAYER_STATE_ERROR
int playTTSText(java.lang.String speech, int bPreempt)
speech
- 播报文案bPreempt
- 是否抢占播报void phoneCalling()
void phoneHangUp()
void initTTSPlayer()
void releaseTTSPlayer()
void stopTTS()
void resumeTTS()
void pauseTTS()