实时语音识别最后一句没有最终结果,只有临时识别结
woyehua 发布于2018-09 浏览:3241 回复:3
0
收藏

使用百度语音识别,有时候最后一句只能收到临时识别结果,无法得到最终结果就发送了通话结束包。录音时长一共34秒

以下为结束部分日志,可以看到extJson字段中completed值一直为1,然后就结束了

原结果:AGENT 临时识别结果:喝杯水老婆说我想进您接吻从阳台上收衣服老婆说我偷看小姨子对色的内衣我不得不说您的期六
15:14:48.028 [test-java0.3-9782-0570b17d_downloadT-2] DEBUG c.b.aip.talker.command.download.DownloadThreadCommand - read datatrue:{"logid": "060cebbe-bd6e-11e8-a5a3-6c92bf3b0791", "originLogId": "uploadT-5-Event:speech_heartbeat[test-java0.3-9782-0570b17d--0]-65", "name": "speech_heartbeat_ack", "sdkId": "test-java0.3-9782-0570b17d"}
15:14:48.133 [test-java0.3-9782-0570b17d_downloadT-2] DEBUG c.b.aip.talker.command.download.DownloadThreadCommand - read datatrue:{"content": {"category": "TXT", "content": "\u559d\u676f\u6c34\u8001\u5a46\u8bf4\u6211\u60f3\u8fdb\u60a8\u63a5\u543b\u4ece\u9633\u53f0\u4e0a\u6536\u8863\u670d\u8001\u5a46\u8bf4\u6211\u5077\u770b\u5c0f\u59e8\u5b50\u5bf9\u8272\u7684\u5185\u8863\u6211\u4e0d\u5f97\u4e0d\u8bf4\u60a8\u7684\u7b2c\u516d\u611f", "callId": "test-ASR-9782-2-1537514055163", "logId": "668648C2-3BC0-47B1-ADE7-9AA540D313AB_110", "roleCategory": "AGENT", "triggerTime": 1537514088133, "extJson": {"snStartTime": "00:20.640", "completed": 1, "snStopTime": "00:32.479"}, "triggerTxt": ""}, "name": "knowledge_content", "callId": "test-ASR-9782-2-1537514055163", "userId": 1378539671, "logid": "061d510c-bd6e-11e8-892e-6c92bf3b07d2", "appId": 14241416}
原结果:AGENT 临时识别结果:喝杯水老婆说我想进您接吻从阳台上收衣服老婆说我偷看小姨子对色的内衣我不得不说您的第六感
15:14:48.189 [test-java0.3-9782-0570b17d_downloadT-2] DEBUG c.b.aip.talker.command.download.DownloadThreadCommand - read datatrue:{"logid": "06256ad6-bd6e-11e8-a5a3-6c92bf3b0791", "originLogId": "uploadT-6-Event:speech_heartbeat[test-java0.3-9782-0570b17d--0]-64", "name": "speech_heartbeat_ack", "sdkId": "test-java0.3-9782-0570b17d"}
15:14:48.348 [test-java0.3-9782-0570b17d_downloadT-2] DEBUG c.b.aip.talker.command.download.DownloadThreadCommand - read datatrue:{"logid": "063dad26-bd6e-11e8-a5a3-6c92bf3b0791", "originLogId": "uploadT-7-Event:speech_heartbeat[test-java0.3-9782-0570b17d--0]-64", "name": "speech_heartbeat_ack", "sdkId": "test-java0.3-9782-0570b17d"}
15:14:48.508 [test-java0.3-9782-0570b17d_downloadT-2] DEBUG c.b.aip.talker.command.download.DownloadThreadCommand - read datatrue:{"logid": "065618de-bd6e-11e8-a5a3-6c92bf3b0791", "originLogId": "uploadT-8-Event:speech_heartbeat[test-java0.3-9782-0570b17d--0]-64", "name": "speech_heartbeat_ack", "sdkId": "test-java0.3-9782-0570b17d"}
15:14:48.917 [test-java0.3-9782-0570b17d_downloadT-2] DEBUG c.b.aip.talker.command.download.DownloadThreadCommand - read datatrue:{"content": {"category": "TXT", "content": "\u559d\u676f\u6c34\u8001\u5a46\u8bf4\u6211\u60f3\u8fdb\u60a8\u63a5\u543b\u4ece\u9633\u53f0\u4e0a\u6536\u8863\u670d\u8001\u5a46\u8bf4\u6211\u5077\u770b\u5c0f\u59e8\u5b50\u5bf9\u8272\u7684\u5185\u8863\u6211\u4e0d\u5f97\u4e0d\u8bf4\u4f60\u7684\u7b2c\u516d\u611f\u600e\u4e48", "callId": "test-ASR-9782-2-1537514055163", "logId": "668648C2-3BC0-47B1-ADE7-9AA540D313AB_111", "roleCategory": "AGENT", "triggerTime": 1537514088917, "extJson": {"snStartTime": "00:20.640", "completed": 1, "snStopTime": "00:33.280"}, "triggerTxt": ""}, "name": "knowledge_content", "callId": "test-ASR-9782-2-1537514055163", "userId": 1378539671, "logid": "0694b8f0-bd6e-11e8-8cf8-6c92bf3b0791", "appId": 14241416}
原结果:AGENT 临时识别结果:喝杯水老婆说我想进您接吻从阳台上收衣服老婆说我偷看小姨子对色的内衣我不得不说你的第六感怎么
15:14:49.584 [test-java0.3-9782-0570b17d_uploadT-7] DEBUG com.baidu.aip.talker.command.upload.UploadData - JsonStr is:{"roleId":0,"callId":"test-ASR-9782-2-1537514055163","name":"speech_end","sendTs":1537514089584,"beforeCompressTs":0,"afterCompressTs":0,"beforeUploadTs":1537514089584,"compress":0,"sdkId":"test-java0.3-9782-0570b17d","connectionId":"uploadT-7","ts":1537514089584,"seqId":0,"agentDn":"123","heartBeat":false,"logid":"uploadT-7-Event:speech_end[test-ASR-9782-2-1537514055163--0-P]-66"} ; binary length: 0
15:14:49.584 [test-java0.3-9782-0570b17d_uploadT-7] TRACE com.baidu.aip.talker.command.upload.UploadDataEntity - write to upload stream:Event:speech_end[test-ASR-9782-2-1537514055163--0-P]duration= 0 , time=1537514089584
15:14:49.591 [Thread-22] INFO com.baidu.aip.talker.controller.ControllerImpl - SDK will be stopped
15:14:49.591 [test-java0.3-9782-0570b17d_uploadT-8] DEBUG com.baidu.aip.talker.command.upload.UploadData - JsonStr is:{"roleId":0,"callId":"","name":"speech_sdk_stop","sendTs":0,"beforeCompressTs":0,"afterCompressTs":0,"beforeUploadTs":1537514089591,"compress":0,"sdkId":"test-java0.3-9782-0570b17d","connectionId":"uploadT-8","ts":1537514089591,"seqId":0,"agentDn":"0","heartBeat":false,"logid":"uploadT-8-Event:speech_sdk_stop[test-java0.3-9782-0570b17d--0-P]-66"} ; binary length: 0
15:14:49.591 [test-java0.3-9782-0570b17d_uploadT-8] TRACE com.baidu.aip.talker.command.upload.UploadDataEntity - write to upload stream:Event:speech_sdk_stop[test-java0.3-9782-0570b17d--0-P]duration= 0 , time=1537514089591
15:14:49.633 [test-java0.3-9782-0570b17d_downloadT-2] INFO com.baidu.aip.talker.common.GlobalSwitch - isDownloadThreadActive:false
15:14:49.633 [test-java0.3-9782-0570b17d_downloadT-2] INFO com.baidu.aip.talker.common.GlobalSwitch - isDownloadThreadActive:false
15:14:49.633 [test-java0.3-9782-0570b17d_downloadT-2] INFO com.baidu.aip.talker.command.CommandThreadPoolExecutor - afterExecute Command Info:downloadT-2:66
15:14:52.592 [test-java0.3-9782-0570b17d_uploadT-8] INFO com.baidu.aip.talker.command.upload.UploadDataEntity - uploadT-8 will be stopped
15:14:52.592 [test-java0.3-9782-0570b17d_uploadT-8] INFO com.baidu.aip.talker.command.upload.UploadDataEntity - 69 packages sent, commandId:uploadT-8
15:14:52.632 [test-java0.3-9782-0570b17d_uploadT-8] INFO com.baidu.aip.talker.command.CommandThreadPoolExecutor - afterExecute Command Info:uploadT-8:70
15:14:53.264 [test-java0.3-9782-0570b17d_uploadT-5] INFO com.baidu.aip.talker.command.upload.UploadDataEntity - uploadT-5 will be stopped
15:14:53.264 [test-java0.3-9782-0570b17d_uploadT-5] INFO com.baidu.aip.talker.command.upload.UploadDataEntity - 70 packages sent, commandId:uploadT-5
15:14:53.304 [test-java0.3-9782-0570b17d_uploadT-5] INFO com.baidu.aip.talker.command.CommandThreadPoolExecutor - afterExecute Command Info:uploadT-5:67
15:14:53.424 [test-java0.3-9782-0570b17d_uploadT-6] INFO com.baidu.aip.talker.command.upload.UploadDataEntity - uploadT-6 will be stopped
15:14:53.425 [test-java0.3-9782-0570b17d_uploadT-6] INFO com.baidu.aip.talker.command.upload.UploadDataEntity - 69 packages sent, commandId:uploadT-6
15:14:53.462 [test-java0.3-9782-0570b17d_uploadT-6] INFO com.baidu.aip.talker.command.CommandThreadPoolExecutor - afterExecute Command Info:uploadT-6:68
15:14:53.585 [test-java0.3-9782-0570b17d_uploadT-7] INFO com.baidu.aip.talker.command.upload.UploadDataEntity - uploadT-7 will be stopped
15:14:53.585 [test-java0.3-9782-0570b17d_uploadT-7] INFO com.baidu.aip.talker.command.upload.UploadDataEntity - 69 packages sent, commandId:uploadT-7
15:14:53.591 [Thread-22] INFO com.baidu.aip.talker.controller.ControllerImpl - schedule status:true, uploader status:true, download status:true
15:14:53.623 [test-java0.3-9782-0570b17d_uploadT-7] INFO com.baidu.aip.talker.command.CommandThreadPoolExecutor - afterExecute Command Info:uploadT-7:69

收藏
点赞
0
个赞
共3条回复 最后由用户已被禁言回复于2022-04
#4天空之城23568回复于2018-11

这bug些许复杂呀

0
#3Hi微微微微凉回复于2018-11

楼主,能加个好友吗?请教下智能外呼这方面知识

 

0
#2liguanghui2588回复于2018-09

这个应该是语音识别出现的bug,

0
快速回复
TOP
切换版块