11-22 07:30:38.694 18733-18785/com.doron.speech W/System.err: java.util.concurrent.ExecutionException: java.net.SocketException: sendto failed: ECONNRESET (Connection reset by peer)
11-22 07:30:38.694 18733-18785/com.doron.speech W/System.err: at java.util.concurrent.FutureTask.report(FutureTask.java:93)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: at java.util.concurrent.FutureTask.get(FutureTask.java:177)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: at com.baidu.speech.audio.MicrophoneServer.run(Unknown Source)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: at java.lang.Thread.run(Thread.java:818)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: Caused by: java.net.SocketException: sendto failed: ECONNRESET (Connection reset by peer)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:546)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: at libcore.io.IoBridge.sendto(IoBridge.java:515)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: at java.net.PlainSocketImpl.write(PlainSocketImpl.java:504)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:37)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:266)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: at com.baidu.speech.audio.MicrophoneServer$2.call(Unknown Source)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: at com.baidu.speech.audio.MicrophoneServer$2.call(Unknown Source)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: ... 1 more
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: Caused by: android.system.ErrnoException: sendto failed: ECONNRESET (Connection reset by peer)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: at libcore.io.Posix.sendtoBytes(Native Method)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: at libcore.io.Posix.sendto(Posix.java:206)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:278)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: at libcore.io.IoBridge.sendto(IoBridge.java:513)
11-22 07:30:38.695 18733-18785/com.doron.speech W/System.err: ... 9 more
本来以为是我讲demo中的代码移植到开发项目中的问题导致,后来运行百度语音识别的demo,发现也有这个问题!求指教
请测试下demo,该异常不影响使用
我是重新下载sdk还是使用原来的sdk?