Package com.baidu.navisdk.adapter
Class IBNTTSManager.IBNOuterTTSPlayerCallback
- java.lang.Object
-
- com.baidu.navisdk.adapter.IBNTTSManager.IBNOuterTTSPlayerCallback
-
- Enclosing interface:
- IBNTTSManager
public abstract static class IBNTTSManager.IBNOuterTTSPlayerCallback extends java.lang.Object
如果开发者需要使用自己的TTS模块 可使用IBNTTSManager.initTTS(IBNOuterTTSPlayerCallback);
-
-
Constructor Summary
Constructors Constructor Description IBNOuterTTSPlayerCallback()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
cancelAudio()
int
getCurrentVolume()
boolean
hasInitialized()
void
initTTSPlayer()
void
pauseTTS()
void
phoneCalling()
void
phoneHangUp()
int
playAudio(java.lang.String audioPath, AudioPlayerListener lis)
int
playTTSText(int module, java.lang.String speech, java.lang.String pStrTag, int bPreempt, java.lang.String speechId, java.lang.String scene, boolean needSpec)
abstract int
playTTSText(java.lang.String speech, java.lang.String pStrTag, int bPreempt, java.lang.String speechId)
int
playTTSText(TTSData data)
int
playXDTTSText(int module, java.lang.String speech, java.lang.String pStrTag, int bPreempt, java.lang.String speechId, java.lang.String scene)
int
playXDTTSText(TTSData data)
void
releaseTTSPlayer()
void
resumeTTS()
void
setEnableTimeOut(boolean enable)
void
setTTSVolume(int volume)
void
stopTTS()
-
-
-
Method Detail
-
playTTSText
public abstract int playTTSText(java.lang.String speech, java.lang.String pStrTag, int bPreempt, java.lang.String speechId)
- Parameters:
speech
- 播报文本bPreempt
- 是否抢占播报speechId
- 文本id
-
playTTSText
public int playTTSText(TTSData data)
-
playTTSText
public int playTTSText(int module, java.lang.String speech, java.lang.String pStrTag, int bPreempt, java.lang.String speechId, java.lang.String scene, boolean needSpec)
-
playXDTTSText
public int playXDTTSText(TTSData data)
-
playXDTTSText
public int playXDTTSText(int module, java.lang.String speech, java.lang.String pStrTag, int bPreempt, java.lang.String speechId, java.lang.String scene)
-
phoneCalling
public void phoneCalling()
-
phoneHangUp
public void phoneHangUp()
-
initTTSPlayer
public void initTTSPlayer()
-
releaseTTSPlayer
public void releaseTTSPlayer()
-
resumeTTS
public void resumeTTS()
-
pauseTTS
public void pauseTTS()
-
stopTTS
public void stopTTS()
-
playAudio
public int playAudio(java.lang.String audioPath, AudioPlayerListener lis)
-
cancelAudio
public int cancelAudio()
-
getCurrentVolume
public int getCurrentVolume()
-
setTTSVolume
public void setTTSVolume(int volume)
-
setEnableTimeOut
public void setEnableTimeOut(boolean enable)
-
hasInitialized
public boolean hasInitialized()
-
-