当前位置:   article > 正文

java语音唤醒_语音识别--唤醒问题

java 语音唤醒

在做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)

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/88335
推荐阅读
相关标签
  

闽ICP备14008679号