public class AILocalAsrppIntent extends BaseIntent
needCopyFeedData, needCopyResultData, useCustomFeed
Constructor and Description |
---|
AILocalAsrppIntent() |
Modifier and Type | Method and Description |
---|---|
IFespxEngine |
getFespxEngine() |
int |
getMaxSpeechTimeS() |
int |
getNoSpeechTimeOut() |
void |
setFespxEngine(IFespxEngine fespxEngine)
设置关联的信号处理引擎AILocalSignalAndWakeupEngine实例,只在使用内部录音机且多麦模式下才需要设置
|
void |
setMaxSpeechTimeS(int seconds)
设置音频最大录音时长,达到该值将取消语音引擎并抛出异常
允许的最大录音时长 单位秒 0 表示无最大录音时长限制 默认大小为60S |
void |
setNoSpeechTimeOut(int milliSecond)
设置无语音超时时长,单位毫秒,默认值为5000ms ;如果达到该设置值时,自动停止录音并放弃请求识别内核
|
java.lang.String |
toString() |
isNeedCopyFeedData, isNeedCopyResultData, isUseCustomFeed, setNeedCopyFeedData, setNeedCopyResultData, setUseCustomFeed
public IFespxEngine getFespxEngine()
public void setFespxEngine(IFespxEngine fespxEngine)
fespxEngine
- 引擎实例java.lang.RuntimeException
- 内部录音机且多麦模式下没设置public void setNoSpeechTimeOut(int milliSecond)
milliSecond
- 超时时长,单位毫秒public int getNoSpeechTimeOut()
public void setMaxSpeechTimeS(int seconds)
seconds
- maxSpeechTimeSpublic int getMaxSpeechTimeS()
public java.lang.String toString()
toString
in class java.lang.Object