From 0e14f1336727e18844bcc747bd91cb4de95ed29c Mon Sep 17 00:00:00 2001 From: jianghai Date: Thu, 4 Jan 2024 19:42:30 +0800 Subject: [PATCH] =?UTF-8?q?[#643]=20fix:=20=E5=8D=B8=E8=BD=BD=E8=AF=AD?= =?UTF-8?q?=E9=9F=B3=E5=BC=95=E6=93=8E=EF=BC=8C=E8=B0=83=E7=94=A8asr.start?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=9B=9E=E8=B0=83=E4=BA=86success?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jianghai --- .../asr/src/main/java/org/hapjs/features/service/asr/Asr.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/plugins/android/features/asr/src/main/java/org/hapjs/features/service/asr/Asr.java b/core/plugins/android/features/asr/src/main/java/org/hapjs/features/service/asr/Asr.java index 802ecb84..5d8dce9e 100644 --- a/core/plugins/android/features/asr/src/main/java/org/hapjs/features/service/asr/Asr.java +++ b/core/plugins/android/features/asr/src/main/java/org/hapjs/features/service/asr/Asr.java @@ -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")); } }