public class AILocalAsrppEngine extends BaseEngine
mBaseProcessor, TAG, tagSuffix| Modifier and Type | Method and Description |
|---|---|
static AILocalAsrppEngine |
createInstance() |
void |
destroy()
销毁本地识别引擎
|
void |
feedData(byte[] data,
int size)
传入数据,在不使用SDK内部录音机时调用
|
java.lang.String |
getTag() |
void |
init(AILocalAsrppConfig config,
AILocalAsrppListener localAsrppListener) |
void |
start(AILocalAsrppIntent aiLocalAsrppIntent)
启动录音,开始语音识别
|
void |
stop()
停止录音,等待识别结果
|
cancel, init, initTAG, parseConfig, parseIntent, startpublic java.lang.String getTag()
getTag in class BaseEnginepublic static AILocalAsrppEngine createInstance()
public void init(AILocalAsrppConfig config, AILocalAsrppListener localAsrppListener)
public void start(AILocalAsrppIntent aiLocalAsrppIntent)
aiLocalAsrppIntent - 参数public void feedData(byte[] data,
int size)
data - 音频数据流size - 数据大小BaseIntent.setUseCustomFeed(boolean)public void stop()
stop in class BaseEnginepublic void destroy()
destroy in class BaseEngine