使用安卓SDK3.0.5
I/MyWakeup.Debug: wakeup params(反馈请带上此行日志):{"kws-file":"assets:\/\/\/WakeUp.bin"}
W/System.err: org.json.JSONException: No value for appid
W/System.err: at org.json.JSONObject.get(JSONObject.java:389)
W/System.err: at org.json.JSONObject.getInt(JSONObject.java:478)
W/System.err: at com.baidu.speech.asr.AnalysisInterceptor.send(Unknown Source)
W/System.err: at com.baidu.speech.asr.EventManagerWp.send(Unknown Source)
W/System.err: at com.baidu.android.voicedemo.control.MyWakeup.start(MyWakeup.java:48)
I/MyWakeup: 唤醒结束
I/WakeupEventAdapter: wakeup name:wp.exit; params:null
I/MyApplication: 唤醒词识别结束
W/System.err: java.util.concurrent.ExecutionException: java.net.SocketException: sendto failed: ECONNRESET (Connection reset by peer)
W/System.err: at java.util.concurrent.FutureTask.report(FutureTask.java:94)
W/System.err: at java.util.concurrent.FutureTask.get(FutureTask.java:178)
W/System.err: at com.baidu.speech.audio.MicrophoneServer.run(Unknown Source)
W/System.err: at java.lang.Thread.run(Thread.java:833)
同问后面的错误,楼主解决了吗
我知道开始那个错误.
No value for appid
其实在manifest里面是配置了这个APP_ID的.但好像没读取到.在初始化的时候直接把APPID带进去也可以.这里你可以自己读Context填进来.