public interface OneshotListener
Modifier and Type | Method and Description |
---|---|
void |
onError(AIError error)
error回调信息 在SDK子线程
|
void |
onInit(int status)
初始化回调 在SDK子线程
|
void |
onNotOneshot(java.lang.String word)
非oneshot 回调
|
void |
onOneshot(java.lang.String words,
OneshotCache<byte[]> buffer)
oneshot 回调
|
void onInit(int status)
status
- 初始化状态void onError(AIError error)
error
- error回调信息void onOneshot(java.lang.String words, OneshotCache<byte[]> buffer)
words
- oneshot 唤醒词buffer
- 回溯音频void onNotOneshot(java.lang.String word)
word
- oneshot 唤醒词