public class CarTwoMic4RegionSspeKernel extends BaseCarSspeKernel
抑制需求逻辑: doa = 1,抑制副驾以及后排 doa = 2,抑制主驾以及后排 doa = 3/4,绝对抑制不可支持唤醒&识别
用户侧用法逻辑: 1. 程序启动后,根据 后排抑制开关状态,判定当前使用左右音区资源 or 后排抑制资源 2. 左右音区资源(新):CarTwoMicNewSspeKernel 后排抑制资源(新):CarTwoMic4RegionSspeKernel 3. 后排抑制开关打开的情况下,还需要判断用户修改音区锁定的开关状态 如果锁定音区打开,需要调用AIFespCarEngine#setDriveMode(4,3) 表示自由组合模式,只处理主驾和副驾音频 如果锁定音区关闭、,需要调用AIFespCarEngine#setDriveMode(3,3) 表示全车模式,但是只混音主驾和副驾音频抛出 4. 主驾按键,主动拉起唤醒的同时需要主动调用一次AIFespCarEngine#setDoaManually,传值1。lite内部机制:只有在定位模式时才有效果。
BaseCarSspeKernel.CarDoaCallbackImpl, BaseCarSspeKernel.CarWakeupCallbackImpl, BaseCarSspeKernel.DoaCommonCallback
cachedWakeupData, currentWakeupWord, dynamicParams, mCachedWakeUpDoa, mDriveMode, mRangesWords, mSspeType, mWakeupChannelMask
engine, isStopped, isWakeuped, mConfig, mHasDoaOut, mHasVpOut, mHasWkpOut, mInAudioFileNeedCreated, mInterceptVpByDoa, mListener, mOutAudioFileNeedCreated, mWakeupProcessor, params, TAG
CAR_DOA_COPILOT, CAR_DOA_LEFT_BACKSEAT, CAR_DOA_MAIN, CAR_DOA_RIGHT_BACKSEAT, CAR_DOA_THIRD_ROW_LEFT_BACKSEAT, CAR_DOA_THIRD_ROW_RIGHT_BACKSEAT, COMBINATION_POSITION_COPILOT, COMBINATION_POSITION_ENTIRE, COMBINATION_POSITION_ENTIRE_ONE_MIC, COMBINATION_POSITION_ENTIRE_SIX_MIC, COMBINATION_POSITION_ENTIRE_THREE_MIC, COMBINATION_POSITION_ENTIRE_TWO_MIC, COMBINATION_POSITION_LEFT_BACKSEAT, COMBINATION_POSITION_MAIN, COMBINATION_POSITION_RIGHT_BACKSEAT, COMBINATION_POSITION_THIRD_ROW_LEFT_BACKSEAT, COMBINATION_POSITION_THIRD_ROW_RIGHT_BACKSEAT, DRIVEMODE_COPILOT, DRIVEMODE_ENTIRE, DRIVEMODE_FREE_COMBINTION, DRIVEMODE_MAIN, DRIVEMODE_POSITIONING, SP_KEY_DRIVER_MODEL, SP_KEY_WAKEUP_MASK, SP_NAME_CAR_CACHE
Constructor and Description |
---|
CarTwoMic4RegionSspeKernel(FespxKernelListener listener,
int sspeType) |
Modifier and Type | Method and Description |
---|---|
protected void |
closeFileWriter() |
protected void |
createFileWriter() |
protected java.lang.Object[] |
getSspeCallbacks()
先抽离方法,方便后续拓展
|
protected void |
handleMsgRelease() |
protected void |
preInitEngine(com.aispeech.kernel.LiteSoFunction engine,
LocalSignalProcessingConfig config) |
doCallbackResultData, doCallbackResultData, getDriveMode, handleCustomMessage, handleMsgStart, handleMsgStop, isAutoSetDriveMode, isCallBackResultData, needUpdateCacheDoa, onDoaResult, onWakeup, processDoaResultByDriveModel, resetDriveMode, set, setDoaManually, setDriveMode, setDriveMode, setFespcarDataReceivedEnable, setRangesWords
createFileSaveUtil, feedRawAudio, getNewConf, getValueOf, initEngine, isEnableDoubleVad, isStarting, processWakeupCallback, run
public CarTwoMic4RegionSspeKernel(FespxKernelListener listener, int sspeType)
protected void handleMsgRelease()
handleMsgRelease
in class BaseCarSspeKernel
protected java.lang.Object[] getSspeCallbacks()
BaseSspeKernel
getSspeCallbacks
in class BaseSspeKernel
protected void preInitEngine(com.aispeech.kernel.LiteSoFunction engine, LocalSignalProcessingConfig config)
preInitEngine
in class BaseCarSspeKernel
protected void createFileWriter()
createFileWriter
in class BaseCarSspeKernel
protected void closeFileWriter()
closeFileWriter
in class BaseSspeKernel