Skip to content

Commit

Permalink
[#643] fix: 卸载语音引擎,调用asr.start接口回调了success
Browse files Browse the repository at this point in the history
Signed-off-by: jianghai <jianghai@xiaomi.com>
  • Loading branch information
jianghai33 committed Jan 4, 2024
1 parent 0d0ebb4 commit 0e14f13
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ private void callback(String result) {
nativeInterface.addLifecycleListener(lifecycleListener);
request.getCallback().callback(Response.SUCCESS);
} catch (ActivityNotFoundException e) {
request.getCallback().callback(new Response(Response.CODE_SERVICE_UNAVAILABLE));
Log.w(TAG, "Speed recognizer not found", e);
request.getCallback().callback(new Response(Response.CODE_SERVICE_UNAVAILABLE, "Speed recognizer not found"));
}
}

Expand Down

0 comments on commit 0e14f13

Please sign in to comment.