public class DmaspProcessor
extends BaseProcessor
Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_VALID_TIME_THRESH |
static java.lang.String |
TAG |
Constructor and Description |
---|
DmaspProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
clearObject() |
void |
feedData(byte[] data,
int size)
自定义feed音频
|
int |
getDriveMode() |
int |
getValueOf(java.lang.String param) |
protected void |
handlerInnerMsg(EngineMsg engineMsg,
android.os.Message msg)
处理内部消息
|
void |
init(SpeechListener listener,
LocalDmaspConfig dmaspConfig) |
boolean |
isWakeupSsp()
获取唤醒资源是否带VAD状态流
|
void |
processMaxSpeechError() |
void |
processNoSpeechError() |
void |
resetDriveMode() |
void |
setDoaManually(int doa) |
void |
setDriveMode(int driveMode) |
void |
setDriveMode(int driveMode,
int wakeupChannelMask) |
void |
setNWakeupEnable(boolean enable)
单独唤醒开关
|
void |
start(DmaspParams param) |
public static java.lang.String TAG
protected static final int DEFAULT_VALID_TIME_THRESH
public void init(SpeechListener listener, LocalDmaspConfig dmaspConfig)
public void start(DmaspParams param)
public void setNWakeupEnable(boolean enable)
enable
- true 打开 ,false 关闭public boolean isWakeupSsp()
public void feedData(byte[] data, int size)
data
- 数据size
- 大小public int getValueOf(java.lang.String param)
public void resetDriveMode()
public int getDriveMode()
public void setDriveMode(int driveMode)
public void setDriveMode(int driveMode, int wakeupChannelMask)
public void setDoaManually(int doa)
protected void handlerInnerMsg(EngineMsg engineMsg, android.os.Message msg)
engineMsg
- engineMsgmsg
- msg 对象值public void clearObject()
public void processNoSpeechError()
public void processMaxSpeechError()