赞
踩
在做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)
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。