类 BaseSspeKernel
- java.lang.Object
-
- com.aispeech.lite.BaseKernel
-
- com.aispeech.lite.sspe.BaseSspeKernel
-
- 所有已实现的接口:
AIWakeupProcessor.WakeupProcessorListener
,java.lang.Runnable
- 直接已知子类:
BaseCarSspeKernel
,SspeKernel
public class BaseSspeKernel extends BaseKernel implements AIWakeupProcessor.WakeupProcessorListener
-
-
嵌套类概要
-
从类继承的嵌套类/接口 com.aispeech.lite.BaseKernel
BaseKernel.EngineState
-
-
字段概要
字段 修饰符和类型 字段 说明 protected com.aispeech.kernel.Sspe
engine
protected boolean
isStopped
protected boolean
isWakeuped
protected LocalSignalProcessingConfig
mConfig
protected boolean
mHasDoaOut
protected boolean
mHasVpOut
protected boolean
mHasWkpOut
protected FespxKernelListener
mListener
protected AIWakeupProcessor
mWakeupProcessor
protected SignalProcessingParams
params
static java.lang.String
TAG
-
从类继承的字段 com.aispeech.lite.BaseKernel
mErrorProcessor, mQueue, mState, profile
-
-
构造器概要
构造器 构造器 说明 BaseSspeKernel(java.lang.String tag, FespxKernelListener listener)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
createFileWriter()
protected void
feedRawAudio(byte[] data)
java.lang.String
getNewConf()
protected java.lang.Object[]
getSspeCallbacks()
先抽离方法,方便后续拓展int
getValueOf(java.lang.String param)
protected void
handleCustomMessage(Message message)
protected void
handleMsgRelease()
protected void
handleMsgStart(Message message)
protected void
handleMsgStop()
protected int
initEngine(com.aispeech.kernel.LiteSoFunction engine, LocalSignalProcessingConfig config)
void
onDoaResult(int doa, int doaType)
void
onWakeup(AIResult result)
protected void
preInitEngine(com.aispeech.kernel.LiteSoFunction engine, LocalSignalProcessingConfig config)
protected void
processWakeupCallback(java.lang.String retString)
处理唤醒回调信息void
run()
void
set(java.lang.String setParam)
设置参数-
从类继承的方法 com.aispeech.lite.BaseKernel
async, cancelKernel, clearMessage, close, feed, feed, feedback, feedback2PRIVCloud, forceRequestWakeupResult, get, getInnerThreadName, getProfile, getStartConf, innerRelease, newKernel, releaseKernel, semaphoreP, semaphoreV, sendMessage, setMaxMessageQueueSize, setProfile, showErrorMessage, startKernel, stopKernel, trackInvalidState, transferState, triggerIntent, update, update, updateNaviVocab, updateTrails, updateVocab, updateVocab, updateVocabs, useBuiltinWakeupWords, waitMessage
-
-
-
-
字段详细资料
-
TAG
public static final java.lang.String TAG
- 另请参阅:
- 常量字段值
-
mListener
protected FespxKernelListener mListener
-
engine
protected com.aispeech.kernel.Sspe engine
-
mWakeupProcessor
protected AIWakeupProcessor mWakeupProcessor
-
isStopped
protected volatile boolean isStopped
-
isWakeuped
protected volatile boolean isWakeuped
-
mHasVpOut
protected volatile boolean mHasVpOut
-
mHasDoaOut
protected volatile boolean mHasDoaOut
-
params
protected SignalProcessingParams params
-
mHasWkpOut
protected volatile boolean mHasWkpOut
-
mConfig
protected LocalSignalProcessingConfig mConfig
-
-
构造器详细资料
-
BaseSspeKernel
public BaseSspeKernel(java.lang.String tag, FespxKernelListener listener)
-
-
方法详细资料
-
onWakeup
public void onWakeup(AIResult result)
-
onDoaResult
public void onDoaResult(int doa, int doaType)
-
getValueOf
public int getValueOf(java.lang.String param)
- 覆盖:
getValueOf
在类中BaseKernel
-
getNewConf
public java.lang.String getNewConf()
- 覆盖:
getNewConf
在类中BaseKernel
-
run
public void run()
- 指定者:
run
在接口中java.lang.Runnable
- 覆盖:
run
在类中BaseKernel
-
handleCustomMessage
protected void handleCustomMessage(Message message)
-
handleMsgStart
protected void handleMsgStart(Message message)
-
handleMsgRelease
protected void handleMsgRelease()
-
handleMsgStop
protected void handleMsgStop()
-
preInitEngine
protected void preInitEngine(com.aispeech.kernel.LiteSoFunction engine, LocalSignalProcessingConfig config)
-
initEngine
protected int initEngine(com.aispeech.kernel.LiteSoFunction engine, LocalSignalProcessingConfig config)
-
getSspeCallbacks
protected java.lang.Object[] getSspeCallbacks()
先抽离方法,方便后续拓展- 返回:
-
feedRawAudio
protected void feedRawAudio(byte[] data)
-
createFileWriter
protected void createFileWriter()
-
set
public void set(java.lang.String setParam)
从类复制的说明:BaseKernel
设置参数- 覆盖:
set
在类中BaseKernel
- 参数:
setParam
- 参数
-
processWakeupCallback
protected void processWakeupCallback(java.lang.String retString)
处理唤醒回调信息- 参数:
retString
-
-
-