linux sdk asr,现在测试老返回错误-------asr onError 101


(yanink) #1

[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can’t parse message of type “rokid.open.AsrResponse” because it is missing required fields: id, result
1: asr onStart
W [speech.Connection] protobuf parse failed
W [speech.asr] AsrRespHandler: receive failed
D [speech.KeepAlive] shutdown request for connection 1
D [speech.StreamQueue] pop return error for id 1, data count 0
1: asr onError 101

服务器出问题了吗?以前一直测试正常,最近测试就忽然错误了


(chao.xuc) #2

您是用C的SDK跑在Linux上面吗?


(chen.zhang) #3

你用的sdk太老了,使用最新的吧


(yanink) #4

我下了最新的sdk 测试仍然出现错误

D 2017-07-16 17:38:48 [speech.asr] AsrImpl.poll wait
D 2017-07-16 17:38:48 [speech.asr] thread ‘gen_results’ run
D 2017-07-16 17:38:48 [speech.Connection] recv: wait 10000 millis seconds
D 2017-07-16 17:38:48 [speech.asr] thread ‘send_reqs’ begin
D 2017-07-16 17:38:48 [speech.asr] do_ctl_change_op: (1) new op START
D 2017-07-16 17:38:48 [speech.asr] do_request: send asr start to server. (1)
D 2017-07-16 17:38:48 [speech.Connection] server address is apigwws.open.rokid.com:443/api, use ssl 1
I 2017-07-16 17:38:48 [speech.Connection] connect to server success, do auth
D 2017-07-16 17:38:48 [speech.Connection] md5 src = key=rokid_test_key&device_type_id=rokid_test_device_type_id&device_id=rokid_test_device_id&service=asr&version=1&time=1502876328846205&secret=rokid_test_secret, md5 result = 765DF2836E78EB3592954CEE0A645060
D 2017-07-16 17:38:48 [speech.Connection] auth req success, wait auth result
D 2017-07-16 17:38:48 [speech.Connection] auth result = 0
D 2017-07-16 17:38:48 [speech.asr] do_request: send asr voice to server. (1)
D 2017-07-16 17:38:48 [speech.asr] do_request: send asr voice to server. (1)
D 2017-07-16 17:38:48 [speech.asr] do_request: send asr voice to server. (1)
D 2017-07-16 17:38:48 [speech.asr] do_request: send asr voice to server. (1)
D 2017-07-16 17:38:48 [speech.asr] do_request: send asr voice to server. (1)
D 2017-07-16 17:38:48 [speech.asr] do_request: send asr voice to server. (1)
D 2017-07-16 17:38:48 [speech.asr] do_request: send asr voice to server. (1)
D 2017-07-16 17:38:48 [speech.asr] do_request: send asr voice to server. (1)
D 2017-07-16 17:38:48 [speech.asr] do_request: send asr voice to server. (1)
D 2017-07-16 17:38:48 [speech.asr] do_request: send asr voice to server. (1)
D 2017-07-16 17:38:48 [speech.asr] do_request: send asr voice to server. (1)
D 2017-07-16 17:38:48 [speech.asr] do_request: send asr voice to server. (1)
D 2017-07-16 17:38:48 [speech.asr] do_request: send asr end to server. (1)
D 2017-07-16 17:38:48 [speech.asr] AsrImpl.send_reqs wait op finish
D 2017-07-16 17:38:48 [speech.Connection] close websocket, reconnect immediate ? 1
D 2017-07-16 17:38:48 [speech.Connection] recv: failed, connection broken
D 2017-07-16 17:38:48 [speech.Connection] recv: wait 10000 millis seconds
D 2017-07-16 17:38:48 [speech.asr] AsrImpl.poll (1) error, remove front op
1: asr onError 101
D 2017-07-16 17:38:48 [speech.asr] AsrImpl.release, initialized = 1
D 2017-07-16 17:38:48 [speech.asr] thread ‘gen_results’ quit
I 2017-07-16 17:38:48 [speech.Connection] released, quit run()
D 2017-07-16 17:38:48 [speech.asr] thread ‘send_reqs’ quit


(zhaolin) #5

我们目前已经有了初步可用的linux turn key solution, 可以到 https://rokid.github.io/rokidos-linux-docs/ 了解下目前的系统情况。