public class AILocalAsrppEngine
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
TAG |
限定符和类型 | 方法和说明 |
---|---|
static AILocalAsrppEngine |
createInstance() |
void |
destroy()
销毁本地识别引擎
|
void |
feedData(byte[] data,
int size)
传入数据,在不使用SDK内部录音机时调用
|
void |
init(AILocalAsrppConfig config,
AILocalAsrppListener localAsrppListener) |
void |
start(AILocalAsrppIntent aiLocalAsrppIntent)
启动录音,开始语音识别
|
void |
stop()
停止录音,等待识别结果
|
public static final java.lang.String TAG
public 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
- 数据大小AILocalAsrppIntent.setUseCustomFeed(boolean)
public void stop()
public void destroy()