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 <[email protected]>
  • Loading branch information
jianghai33 committed Jan 4, 2024
1 parent 541b937 commit 24e0322
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, the hapjs-platform Project Contributors
* Copyright (c) 2023-present, the hapjs-platform Project Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.hapjs.features.service.asr;
Expand Down 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 24e0322

Please sign in to comment.