类 HotWordsProcessor
- java.lang.Object
-
- com.aispeech.lite.BaseProcessor
-
- com.aispeech.lite.hotword.HotWordsProcessor
-
- 所有已实现的接口:
AIRecordListener
,MessageProcess.Handle
public class HotWordsProcessor extends BaseProcessor
热词引擎processor
-
-
嵌套类概要
-
从类继承的嵌套类/接口 com.aispeech.lite.BaseProcessor
BaseProcessor.CallbackMsg, BaseProcessor.EngineMsg, BaseProcessor.EngineState, BaseProcessor.MyBarrierRunnable
-
-
字段概要
-
从类继承的字段 com.aispeech.lite.BaseProcessor
DEFAULT_ONE_CHANNEL_DATA_SIZE, DEFAULT_VALID_TIME_THRESH, inputContinuousAudio, isInitFailed, mAIRecorder, mBaseConfig, mCallbackState, mContext, mCurrentDataSize, mDataSizeThresh, mDumpCurrentDataSize, mDumpDataThresh, mDumpLock, mDumpWkpDataQueue, mHasHalfWakeup, mHasPreWakeup, mIsRealWakeup, mLastWakeupTime, mLock, mMicMatrixStr, mNeedCache, mNeedDumpData, mOutListener, mProfile, mProfileState, mRecorderId, mSceneStr, mScope, mState, mUploadCacheQueue, mWakeupJson, threadCount
-
-
构造器概要
构造器 构造器 说明 HotWordsProcessor()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
handlerInnerMsg(BaseProcessor.EngineMsg engineMsg, android.os.Message msg)
需要继承类实现void
init(SpeechListener listener, LocalAsrConfig asrConfig, SSLConfig vadConfig)
初始化void
processMaxSpeechError()
void
processNoSpeechError()
void
start(LocalAsrParams asrParams, VadParams vadParams)
启动引擎-
从类继承的方法 com.aispeech.lite.BaseProcessor
cancel, cancelMaxSpeechTimeTask, cancelNoSpeechTimer, cancelOneShotNoSpeechTimer, clearObject, clearRecorderId, copyAssetsFolder, copyAssetsFolderMd5, copyAssetsFolders, copyAssetsRes, createRecorder, createSignalProcessingRecorder, feedData, forceRequestWakeupResult, get, getCurrentState, getHandleName, getRecorderId, getTag, getThreshold, handleMessage, handlerCallbackMsg, init, isAuthorized, isContainsEnglish, isUploadEnable, onException, onPowerChanged, onRawDataReceived, onRecordReleased, onRecordStarted, onRecordStopped, onResultDataReceived, processInit, processOneShotNoSpeechError, release, releaseRecorder, removeCallbackMsg, sendMsgToCallbackMsgQueue, sendMsgToInnerMsgQueue, sendMsgToInnerMsgQueue, set, showErrorMessage, showErrorMessage, startDumpWaitingTimerTask, startMaxSpeechTimerTask, startNoSpeechTimer, startOneShotNoSpeechTimer, startRecorder, startWakeupUploadWaitingTimerTask, stop, syncRecorderId, syncRecorderId, syncRecorderId, syncSessionId, trackInvalidState, transferState, unRegisterRecorderIfIsRecording, update, update, updateTrails, updateVocab
-
-
-
-
方法详细资料
-
init
public void init(SpeechListener listener, LocalAsrConfig asrConfig, SSLConfig vadConfig)
初始化- 参数:
listener
-SpeechListener
asrConfig
-LocalAsrConfig
vadConfig
-LocalVadConfig
-
start
public void start(LocalAsrParams asrParams, VadParams vadParams)
启动引擎- 参数:
asrParams
-LocalAsrParams
vadParams
-VadParams
-
handlerInnerMsg
protected void handlerInnerMsg(BaseProcessor.EngineMsg engineMsg, android.os.Message msg)
从类复制的说明:BaseProcessor
需要继承类实现- 指定者:
handlerInnerMsg
在类中BaseProcessor
-
processNoSpeechError
public void processNoSpeechError()
- 指定者:
processNoSpeechError
在类中BaseProcessor
-
processMaxSpeechError
public void processMaxSpeechError()
- 指定者:
processMaxSpeechError
在类中BaseProcessor
-
-