public interface EngineListener extends BaseListener
| Modifier and Type | Method and Description |
|---|---|
void |
onRawDataReceived(byte[] buffer,
int size)
录音机数据返回,在SDK内部子线程返回
|
void |
onReadyForSpeech()
录音机启动时调用,在主UI线程
|
void |
onResultDataReceived(byte[] buffer,
int size,
int wakeupType)
经过信号出路模块处理后的音频数据返回,1声道pcm数据,在SDK内部子线程返回
|
onError, onInitvoid onReadyForSpeech()
void onResultDataReceived(byte[] buffer,
int size,
int wakeupType)
buffer - 数据size - 数据大小wakeupType - 唤醒类型 0:非唤醒状态; 1:主唤醒词被唤醒; 2副唤醒词被唤醒void onRawDataReceived(byte[] buffer,
int size)
buffer - 录音机数据size - 数据大小