public class AILocalMdsEngine
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
void |
cancel() |
static AILocalMdsEngine |
createInstance() |
void |
destroy()
销毁引擎
该方法会停止录音机和销毁录音机
|
void |
feedData(byte[] data,
int size)
传入数据,在不使用SDK录音机时调用
|
void |
init(AILocalMdsConfig config,
AILocalMdsListener listener) |
void |
start(AILocalMdsIntent aiLocalMdsIntent)
启动引擎
|
void |
stop()
停止引擎
该方法会停止接收录音数据和停止引擎,程序退出时可以调用
|
public static AILocalMdsEngine createInstance()
public void init(AILocalMdsConfig config, AILocalMdsListener listener)
public void start(AILocalMdsIntent aiLocalMdsIntent)
aiLocalMdsIntent
- 参数public void feedData(byte[] data, int size)
data
- 音频数据流size
- 数据大小public void cancel()
public void stop()
该方法会停止接收录音数据和停止引擎,程序退出时可以调用
public void destroy()
该方法会停止录音机和销毁录音机