11-16 14:38:03.648 21591 22138 W System.err: java.util.concurrent.ExecutionException: java.io.IOException: Broken pipe
11-16 14:38:03.648 682 23897 D AudioTrack: Client defaulted notificationFrames to 11200 for frameCount 22400
11-16 14:38:03.648 21591 22138 W System.err: at java.util.concurrent.FutureTask.report(FutureTask.java:94)
11-16 14:38:03.648 21591 22138 W System.err: at java.util.concurrent.FutureTask.get(FutureTask.java:178)
11-16 14:38:03.648 21591 22138 W System.err: at com.baidu.speech.audio.MicrophoneServer.run(Unknown Source)
11-16 14:38:03.648 666 666 V APM::AudioPolicyEngine: getDeviceForStrategy() strategy 0, device 80
11-16 14:38:03.648 21591 22138 W System.err: at java.lang.Thread.run(Thread.java:761)
11-16 14:38:03.648 666 666 V APM::AudioPolicyEngine: getDeviceForStrategy() strategy 0, device 80
11-16 14:38:03.648 21591 22138 W System.err: Caused by: java.io.IOException: Broken pipe
11-16 14:38:03.648 21591 22138 W System.err: at android.net.LocalSocketImpl.writeba_native(Native Method)
谁知道android sdk语音这是什么问题吗?
11-16 14:38:03.648 21591 22138 W System.err: at android.net.LocalSocketImpl.-wrap3(LocalSocketImpl.java)
11-16 14:38:03.648 682 23897 D AudioTrack: checkA2dpOutput is A2dpOutput,mNotificationFramesAct:2800,frameCount:22400
11-16 14:38:03.648 21591 22138 W System.err: at android.net.LocalSocketImpl$SocketOutputStream.write(LocalSocketImpl.java:144)
11-16 14:38:03.648 21591 22138 W System.err: at com.baidu.speech.audio.MicrophoneServer$2.call(Unknown Source)
11-16 14:38:03.648 21591 22138 W System.err: at com.baidu.speech.audio.MicrophoneServer$2.call(Unknown Source)
11-16 14:38:03.648 21591 22138 W System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
11-16 14:38:03.648 21591 22138 W System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
11-16 14:38:03.648 21591 22138 W System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
11-16 14:38:03.648 21591 22138 W System.err: ... 1 more
像是网络故障
Broken pipe是系统报的错误,可以忽略
第二个不清楚,可以先测试下demo,看下报错时有什么现象