网络请求超时
d0ou 发布于2018-01 浏览:4175 回复:4
0
收藏
快速回复

我在自建demo上添加了识别sdk和合成sdk 然后我使用长语音识别 是可以正常工作的,然后切换成音频流的形式就虽然开始工作了 但是不能返回数据 返回了一个超时的错误。求解

Current SDK version: 3.0.5.5

REGISTERING LOADER FOR MODULE TTSCore

REGISTERING LOADER FOR MODULE OnlineTTS

REGISTERING LOADER FOR MODULE AudioPlayer

REGISTERING LOADER FOR MODULE OfflineTTS

REGISTERING LOADER FOR MODULE ETTSModelManager

2018-01-17 16:01:42.024954+0800 BDTTSClient[3907:1035104] TTS version info: SDK version: 2.2.6 (Core: CoreTTS_1.1.0 etts: 30100)

2018-01-17 16:01:43.571590+0800 BDTTSClient[3907:1035104] 识别工作开始,开始采集及处理数据 {

    cuid = 973bf9816cb634050a8bbf5afa6acf190823b938;

    nettype = 4;

    sn = "8EA46A03-843F-45D7-A90F-CA450543B0E2";

}

[ERROR][bds_Chunk_Connection.mm:207][sendData]add to send: 271, total len: 271

[ERROR][bds_Chunk_Connection.mm:587][bds_Chunk_Connection]write request to down stream.

[ERROR][bds_Chunk_Connection.mm:733][bds_Chunk_Connection]httpChunkDecode status - 200.

[ERROR][bds_Chunk_Connection.mm:569][bds_Chunk_Connection]downStream do timeout.

2018-01-17 16:01:55.741818+0800 BDTTSClient[3907:1035104] 发生错误 Error Domain=31 Code=2031617 "Local error while making HTTP request: timeout" UserInfo={NSLocalizedDescription=Local error while making HTTP request: timeout, NSHelpAnchor=8EA46A03-843F-45D7-A90F-CA450543B0E2}

收藏
点赞
0
个赞
共4条回复 最后由用户已被禁言回复于2022-04
#5qmxietong回复于2019-04

您好,请问楼主,问题解决了吗?我现在也报这个问题

0
#4c533335回复于2018-04
#3 球球evelyn回复
楼上的这问题解决了吗??这样的情况,该怎么解决呢??

你解决了吗  我用长语音 也出现了这个问题

0
#3球球evelyn回复于2018-03

楼上的这问题解决了吗??这样的情况,该怎么解决呢??

0
#2d0ou回复于2018-01

Current SDK version: 3.0.5.5

REGISTERING LOADER FOR MODULE TTSCore

REGISTERING LOADER FOR MODULE OnlineTTS

REGISTERING LOADER FOR MODULE AudioPlayer

REGISTERING LOADER FOR MODULE OfflineTTS

REGISTERING LOADER FOR MODULE ETTSModelManager

2018-01-17 16:16:07.802969+0800 BDTTSClient[3916:1038764] TTS version info: SDK version: 2.2.6 (Core: CoreTTS_1.1.0 etts: 30100)

[DEBUG][BDVRReachability.mm:74]BDVRReachability Flag Status: -R ------- networkStatusForFlags

[DEBUG][BDVRReachability.mm:74]BDVRReachability Flag Status: -R ------- networkStatusForFlags

[DEBUG][bds_EventManagerAsr.cpp:465]start sn=C1075F89-96BC-4E61-AC6B-EF84204D1EDC

[WARN][AppThread.cpp:86]Default thread stack is too small, trying to increase size

[DEBUG][bds_EventManagerAsr.cpp:930]vr_handler work_status=0, encoded_err=0, err_desc=, need_finish=0, need_stop=0, need_loop=0

[DEBUG][bds_EventManagerAsr.cpp:931]vr_handler m_has_cancelled=0, m_need_cancelled_callback=0

2018-01-17 16:16:11.099644+0800 BDTTSClient[3916:1038764] 识别工作开始,开始采集及处理数据 {

    cuid = 973bf9816cb634050a8bbf5afa6acf190823b938;

    nettype = 4;

    sn = "C1075F89-96BC-4E61-AC6B-EF84204D1EDC";

}

[DEBUG][bds_EventManagerDec_Chunk.cpp:413]Resolved https://vop.baidu.com/v2 as https://111.202.114.95/v2

[DEBUG][bds_EventManagerDec_Chunk.cpp:424]Current downloadURL https://111.202.114.95/v2/down?sn=C1075F89-96BC-4E61-AC6B-EF84204D1EDC

[DEBUG][bds_ASRRequestBuilder.cpp:279]Punctuation Mode: 00

[DEBUG][bds_ASRRequestBuilder.cpp:114]buildChunkData alllen=272, type=0, datalen=267

[ERROR][bds_Chunk_Connection.mm:207][sendData]add to send: 272, total len: 272

[ERROR][bds_Chunk_Connection.mm:587][bds_Chunk_Connection]write request to down stream.

[ERROR][bds_Chunk_Connection.mm:733][bds_Chunk_Connection]httpChunkDecode status - 200.

[DEBUG][bds_Chunk_Connection.mm:774][httpChunkDecode]find chunk length: 5 5

[INFO][bds_EventManagerDec_Chunk.cpp:539][Dec_Chunk]chunk_len:5 read_len:5

[DEBUG][bds_EventManagerAsr.cpp:252]response type: 0 res: 0

[DEBUG][bds_EventManagerAsr.cpp:278]Empty response

[ERROR][bds_Chunk_Connection.mm:569][bds_Chunk_Connection]downStream do timeout.

[DEBUG][bds_EventManagerAsr.cpp:1025]Encounter error: Local error while making HTTP request: timeout

[DEBUG][bds_EventManagerAsr.cpp:930]vr_handler work_status=8, encoded_err=2031617, err_desc=Local error while making HTTP request: timeout, need_finish=1, need_stop=0, need_loop=0

[DEBUG][bds_EventManagerAsr.cpp:931]vr_handler m_has_cancelled=0, m_need_cancelled_callback=0

2018-01-17 16:16:23.301779+0800 BDTTSClient[3916:1038764] 发生错误 Error Domain=31 Code=2031617 "Local error while making HTTP request: timeout" UserInfo={NSLocalizedDescription=Local error while making HTTP request: timeout, NSHelpAnchor=C1075F89-96BC-4E61-AC6B-EF84204D1EDC}

[DEBUG][bds_StatisticsManager.cpp:83]request body: {"error_code":2031617,"voice_to_text_result":"","pid":15361,"cmd_type":0,"time":1516176983301968,"app_id":10614001,"cmd_id":0,"pkg":"com.YeeFM.yhhy","type":"asr_normal","decoder":0}

[DEBUG][bds_StatisticsManager.cpp:106]statistics post url: http://yuyin.baidu.com/voice?osname=voiceopen&action=usereventflow&wise_cuid=973bf9816cb634050a8bbf5afa6acf190823b938&sdk_version=3.0.5.5&app_name=com.YeeFM.yhhy&platform=iOS%26iPhone8%252C1%2610.3.3%260&os=ios&net_type=4&appid=10614001&screen=667.000000&sdk_name=ASRSDK&app_signature=-1

[DEBUG][bds_EventManagerAsr.cpp:648]1cancel_internal m_vr_is_running=1

[DEBUG][bds_EventManagerAsr.cpp:654]2cancel_internal m_vr_is_running=0

[DEBUG][bds_openplatform_stat_uploader.cpp:87]jsonContent: {"error_code":2031617,"voice_to_text_result":"","pid":15361,"cmd_type":0,"time":1516176983301968,"app_id":10614001,"cmd_id":0,"pkg":"com.YeeFM.yhhy","type":"asr_normal","decoder":0}

[DEBUG][bds_openplatform_stat_uploader.cpp:116]STAT_RESP: {"errno":0,"errmsg":""}

[DEBUG][bds_openplatform_stat_uploader.cpp:127]stat upload success

[DEBUG][bds_openplatform_stat_uploader.cpp:151]end of node list

[DEBUG][bds_stat_db_helper.cpp:119]Remove stat task 1

0
TOP
切换版块