语音识别--唤醒问题
海豚司马 发布于2018-10 浏览:1730 回复:2
0
收藏

在做android百度语音功能的时候,都可以在线识别。只有唤醒功能有问题。以下是错误日志以及错误地方。

错误地方:

wp.send(SpeechConstant.WAKEUP_START,"{\"kws-file\":\"assets:\\/\\/\\/WakeUp.bin\"}",null,0,0);

 

日志:

10-26 02:56:31.835 25867-25867/com.example.administrator.baidutalkdemo W/System.err: org.json.JSONException: No value for appid
10-26 02:56:31.840 25867-25867/com.example.administrator.baidutalkdemo W/System.err: at org.json.JSONObject.get(JSONObject.java:389)
10-26 02:56:31.840 25867-25867/com.example.administrator.baidutalkdemo W/System.err: at org.json.JSONObject.getInt(JSONObject.java:478)
10-26 02:56:31.840 25867-25867/com.example.administrator.baidutalkdemo W/System.err: at com.baidu.speech.asr.AnalysisInterceptor.send(Unknown Source)
10-26 02:56:31.840 25867-25867/com.example.administrator.baidutalkdemo W/System.err: at com.baidu.speech.asr.EventManagerWp.send(Unknown Source)
10-26 02:56:31.840 25867-25867/com.example.administrator.baidutalkdemo W/System.err: at com.example.administrator.baidutalkdemo.bhdBDWakeUpService.onStartCommand(bhdBDWakeUpService.java:63)
10-26 02:56:31.840 25867-25867/com.example.administrator.baidutalkdemo W/System.err: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3326)
10-26 02:56:31.840 25867-25867/com.example.administrator.baidutalkdemo W/System.err: at android.app.ActivityThread.-wrap21(ActivityThread.java)
10-26 02:56:31.840 25867-25867/com.example.administrator.baidutalkdemo W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1582)
10-26 02:56:31.840 25867-25867/com.example.administrator.baidutalkdemo W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
10-26 02:56:31.840 25867-25867/com.example.administrator.baidutalkdemo W/System.err: at android.os.Looper.loop(Looper.java:154)
10-26 02:56:31.840 25867-25867/com.example.administrator.baidutalkdemo W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6121)
10-26 02:56:31.841 25867-25867/com.example.administrator.baidutalkdemo W/System.err: at java.lang.reflect.Method.invoke(Native Method)
10-26 02:56:31.841 25867-25867/com.example.administrator.baidutalkdemo W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:982)
10-26 02:56:31.841 25867-25867/com.example.administrator.baidutalkdemo W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:872)

收藏
点赞
0
个赞
共2条回复 最后由用户已被禁言回复于2022-04
#3彦丶子凡回复于2018-10

你这些写的是什么呀,不知道你表达什么意思

0
#2liguanghui2588回复于2018-10

这是在通过语音来唤醒设备吗

0
TOP
切换版块