Skip to content

Commit

Permalink
[#643] fix: 开源1300预览版调用ASR file后,回调了success
Browse files Browse the repository at this point in the history
Signed-off-by: jianghai <[email protected]>
  • Loading branch information
jianghai33 committed Jan 4, 2024
1 parent 0d0ebb4 commit aa1ebad
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 aa1ebad

Please sign in to comment.