美文网首页
百度语音

百度语音

作者: 冰珊孤雪 | 来源:发表于2019-04-23 13:22 被阅读0次
04-22 22:41:28.814 I/BDSHttpRequestMaker( 6877): url = http://vop.baidu.com/v2/up?sn=47c516a8-6229-4530-9a27-00870ecb860c_s-4 &8d019bb, 
04-22 22:41:28.814 D/BDSHttpRequestMaker( 6877): url: http://vop.baidu.com/v2/up?sn=47c516a8-6229-4530-9a27-00870ecb860c_s-4 mHostIp: vop.baidu.com &8d019bb, 
04-22 22:41:28.815 W/System.err( 6877): java.io.IOException: Cleartext HTTP traffic to vop.baidu.com not permitted
04-22 22:41:28.815 W/System.err( 6877):     at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:115)
04-22 22:41:28.815 W/System.err( 6877):     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:458)
04-22 22:41:28.815 W/System.err( 6877):     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:127)
04-22 22:41:28.815 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.setupUploadConnection(Unknown Source:101)
04-22 22:41:28.815 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.setupConnection(Unknown Source:114)
04-22 22:41:28.816 W/System.err( 6877): java.io.IOException: Cleartext HTTP traffic to 119.75.222.172 not permitted
04-22 22:41:28.816 W/System.err( 6877):     at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:115)
04-22 22:41:28.816 W/System.err( 6877):     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:458)
04-22 22:41:28.816 W/System.err( 6877):     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:127)
04-22 22:41:28.816 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.setupUploadConnection(Unknown Source:101)
04-22 22:41:28.816 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.setupUploadConnection(Unknown Source:119)
04-22 22:41:28.816 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.setupConnection(Unknown Source:114)
04-22 22:41:28.817 W/System.err( 6877): java.io.IOException: Cleartext HTTP traffic to 182.61.62.25 not permitted
04-22 22:41:28.817 W/System.err( 6877):     at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:115)
04-22 22:41:28.817 W/System.err( 6877):     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:458)
04-22 22:41:28.817 W/System.err( 6877):     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:127)
04-22 22:41:28.817 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.setupUploadConnection(Unknown Source:101)
04-22 22:41:28.817 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.setupUploadConnection(Unknown Source:119)
04-22 22:41:28.817 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.setupUploadConnection(Unknown Source:119)
04-22 22:41:28.817 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.setupConnection(Unknown Source:114)
04-22 22:41:28.818 I/BDSHttpRequestMaker( 6877): url = http://vop.baidu.com/v2/down?sn=47c516a8-6229-4530-9a27-00870ecb860c_s-4 &d5c9697, 
04-22 22:41:28.818 D/BDSHttpRequestMaker( 6877): url: http://vop.baidu.com/v2/down?sn=47c516a8-6229-4530-9a27-00870ecb860c_s-4 mHostIp: vop.baidu.com &d5c9697, 
04-22 22:41:28.819 W/System.err( 6877): java.io.IOException: Cleartext HTTP traffic to vop.baidu.com not permitted
04-22 22:41:28.819 W/System.err( 6877):     at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:115)
04-22 22:41:28.819 W/System.err( 6877):     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:458)
04-22 22:41:28.819 W/System.err( 6877):     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:127)
04-22 22:41:28.819 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.setupDownloadConnection(Unknown Source:103)
04-22 22:41:28.819 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.setupConnection(Unknown Source:131)
04-22 22:41:28.820 W/System.err( 6877): java.io.IOException: Cleartext HTTP traffic to 119.75.222.172 not permitted
04-22 22:41:28.820 W/System.err( 6877):     at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:115)
04-22 22:41:28.820 W/System.err( 6877):     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:458)
04-22 22:41:28.820 W/System.err( 6877):     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:127)
04-22 22:41:28.820 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.setupDownloadConnection(Unknown Source:103)
04-22 22:41:28.820 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.setupDownloadConnection(Unknown Source:206)
04-22 22:41:28.820 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.setupConnection(Unknown Source:131)
04-22 22:41:28.821 W/System.err( 6877): java.io.IOException: Cleartext HTTP traffic to 182.61.62.25 not permitted
04-22 22:41:28.821 W/System.err( 6877):     at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:115)
04-22 22:41:28.821 W/System.err( 6877):     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:458)
04-22 22:41:28.821 W/System.err( 6877):     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:127)
04-22 22:41:28.821 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.setupDownloadConnection(Unknown Source:103)
04-22 22:41:28.821 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.setupDownloadConnection(Unknown Source:206)
04-22 22:41:28.821 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.setupDownloadConnection(Unknown Source:206)
04-22 22:41:28.821 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.setupConnection(Unknown Source:131)
04-22 22:41:28.823 I/BDSHttpRequestMaker( 6877): sendData  dataType : 0 http://182.61.62.25/v2/up?sn=47c516a8-6229-4530-9a27-00870ecb860c_s-4 &8d019bb, 
04-22 22:41:28.824 W/System.err( 6877): java.io.IOException: Cleartext HTTP traffic to 182.61.62.25 not permitted
04-22 22:41:28.824 W/System.err( 6877):     at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:115)
04-22 22:41:28.824 W/System.err( 6877):     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:458)
04-22 22:41:28.824 W/System.err( 6877):     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:127)
04-22 22:41:28.824 W/System.err( 6877):     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:258)
04-22 22:41:28.824 W/System.err( 6877):     at com.baidu.speech.core.BDSHttpRequestMaker.sendData(Unknown Source:86)
04-22 22:41:28.827 E/        ( 3329): ## ERROR : UIPC_Read(L800): UIPC_Read : channel 2 closed##
04-22 22:41:28.828 V/ASREngine( 6877): ASRCallBack :8
04-22 22:41:28.828 E/ASREngine( 6877): EVoiceRecognitionClientWorkStatusError errorDomain : 32 errorCode : 2004 desc : HTTP error: 2004 mLastRecognitionResult: 
04-22 22:41:28.829 D/ASREngine( 6877): generateErrorResult errDomain = 32 errCode = 2004
04-22 22:41:28.833 V/ASREngine( 6877): ASRCallBack :18
04-22 22:41:28.837 W/System.err( 6877): java.util.concurrent.ExecutionException: java.io.IOException: Broken pipe
04-22 22:41:28.838 W/System.err( 6877):     at java.util.concurrent.FutureTask.report(FutureTask.java:123)
04-22 22:41:28.838 W/System.err( 6877):     at java.util.concurrent.FutureTask.get(FutureTask.java:207)
04-22 22:41:28.838 W/System.err( 6877):     at com.baidu.speech.audio.MicrophoneServer.run(Unknown Source:94)
04-22 22:41:28.838 W/System.err( 6877):     at java.lang.Thread.run(Thread.java:764)
04-22 22:41:28.838 W/System.err( 6877): Caused by: java.io.IOException: Broken pipe
04-22 22:41:28.838 W/System.err( 6877):     at android.net.LocalSocketImpl.writeba_native(Native Method)
04-22 22:41:28.838 W/System.err( 6877):     at android.net.LocalSocketImpl.access$500(LocalSocketImpl.java:36)
04-22 22:41:28.838 W/System.err( 6877):     at android.net.LocalSocketImpl$SocketOutputStream.write(LocalSocketImpl.java:144)
04-22 22:41:28.838 W/System.err( 6877):     at com.baidu.speech.audio.MicrophoneServer$2.call(Unknown Source:17)
04-22 22:41:28.838 W/System.err( 6877):     at com.baidu.speech.audio.MicrophoneServer$2.call(Unknown Source:0)
04-22 22:41:28.838 W/System.err( 6877):     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
04-22 22:41:28.838 W/System.err( 6877):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
04-22 22:41:28.838 W/System.err( 6877):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
04-22 22:41:28.838 W/System.err( 6877):     ... 1 more
04-22 22:41:28.839 I/RecogEventAdapter( 6877): name:asr.finish; params:{"origin_result":{"sn":"cuid=D387AE2BB5C4CD34CF72806BC4825311|0&sn=47c516a8-6229-4530-9a27-00870ecb860c&nettype=1","error":2,"desc":"Download network connect failed","sub_error":2004},"error":2,"desc":"Download network connect failed","sub_error":2004}
04-22 22:41:28.839 I/[BDASR_LOG] MicrophoneServer( 6877): finally, mRemoteOutputStreams size = 0 firstStart = true
04-22 22:41:28.839 E/RecogEventAdapter( 6877): asr error:{"origin_result":{"sn":"cuid=D387AE2BB5C4CD34CF72806BC4825311|0&sn=47c516a8-6229-4530-9a27-00870ecb860c&nettype=1","error":2,"desc":"Download network connect failed","sub_error":2004},"error":2,"desc":"Download network connect failed","sub_error":2004}
04-22 22:41:28.841 E/AudioRecord( 6877): [ (BaiduTtsManager.java:314)#OnAsrFinishError ]【asr.finish事件】识别错误, 错误码:2 ,2004 ; Download network connect failed
04-22 22:41:28.841 V/AudioRecord( 6877): [ (BaiduTtsManager.java:172)#StopRecognize ]cancel Recognize
04-22 22:41:28.841 I/MyRecognizer( 6877): 取消识别

解决方案参考:https://medium.com/@son.rommer/fix-cleartext-traffic-error-in-android-9-pie-2f4e9e2235e6

相关文章

  • 智能语音客服服务助手

    智能语音客服服务助手 语音识别 阿里语音识别 百度语音识别 讯飞语音识别 语音合成 阿里语音合成 百度语音合成 讯...

  • 语音识别预处理---语音转文字

    平台:百度语音识别 环境:win7+python3 利用百度语音识别,由于百度限制了语音文件格式(pcm(不压缩)...

  • 百度语音合成

    最近公司项目有语音合成的需求,从成本出发自己先调研了一下百度语音,使用的是百度语音离在线版本,到百度语音官网上看一...

  • JAVA将MP3转为WAV

    想搞个百度语音识别玩玩,但人家要固定格式的音频(关于百度语音识别的请查看官方文档——百度语音识别SDK),于是就上...

  • 无标题文章

    百度地图语音播报TTS 授权失败语音播报 SDK内置百度TTS语音播报功能,需要对应用进行授权验证才能够使用,因此...

  • android录音并通过百度识别将语音转文字遇到的坑

    由于百度语音识别的语音文件格式必须固定且符合: 百度语音识别规则:原始 PCM 的录音参数必须符合 16k 采样率...

  • Flutter集成Native插件(Android和iOS)--

    以集成百度语音为例: 百度语音识别SDK下载地址:https://ai.baidu.com/sdk 一、Andro...

  • 百度语音sdk和苹果语音播报

    百度语音sdk-以下代指 百度语音的唤醒、识别、合成是三个有关联的sdk。AVAudioSessionAVAudi...

  • node集成百度语音转文字笔记

    安装百度语音sdk,从官网下载或者使用npm安装 在开发中要需要几个配置文件,在登陆百度云后点击->百度语音 - ...

  • 百度语音

    #import "ViewController.h" #import "QRCodeGenerator.h" #i...

网友评论

      本文标题:百度语音

      本文链接:https://www.haomeiwen.com/subject/aqeugqtx.html