我使用的服务是:语音识别
调用的接口是:
参数设置情况:
开发平台和机型:安卓
SDK版本号:
代码或日志截图(上传截图能帮助您更快解决问题):
05-11 16:47:19.966 29817-29817/com.cloudminds.meta D/Meta:HubServiceModel: onEvent name = wp.data, params = {"time-offset":31600,"word":"百度一下"}
05-11 16:47:19.966 29817-29817/com.cloudminds.meta I/Meta:HubServiceModel: current word = 百度一下
05-11 16:47:20.642 29817-29817/com.cloudminds.meta E/Meta:HubServiceModel: onMusic: startRecognizer 2 1
05-11 16:47:20.642 29817-29817/com.cloudminds.meta E/Meta:HubServiceModel: startRecognizer:
05-11 16:47:20.701 29817-29817/com.cloudminds.meta D/Meta:HubService: onReadyForSpeech --Bundle[{}]
05-11 16:47:21.413 29817-29817/com.cloudminds.meta D/Meta:HubService: onBeginningOfSpeech --
05-11 16:47:21.462 29817-29817/com.cloudminds.meta D/Meta:HubService: onEndOfSpeech --
05-11 16:47:22.182 29817-29817/com.cloudminds.meta D/Meta:HubService: onPartialResults -- Bundle[{sentence-id=1, results_recognition=[下], error=0, origin_result={"content":{"item":["下"]},"result":{"corpus_no":6418796161795815008,"err_no":0,"idx":7,"res_type":1,"sn":"fb8ffa4e-0427-4d38-9e43-4f81634021de_s-1"}}}]
05-11 16:47:22.457 29817-29817/com.cloudminds.meta E/Meta:HubServiceModel: onMusic: startRecognizer 2 1
05-11 16:47:22.745 29817-29817/com.cloudminds.meta D/Meta:HubService: onPartialResults -- Bundle[{results_recognition=[夏丹], error=0, origin_result={"content":{"item":["夏丹"]},"result":{"corpus_no":6418796161795815008,"err_no":0,"idx":-12,"res_type":3,"sn":"fb8ffa4e-0427-4d38-9e43-4f81634021de_s-1"}}}]
05-11 16:47:22.746 29817-29817/com.cloudminds.meta E/Meta:HubService: onResults: Bundle[{results_recognition=[夏丹], error=0, origin_result={"content":{"item":["夏丹"]},"result":{"corpus_no":6418796161795815008,"err_no":0,"idx":-12,"res_type":3,"sn":"fb8ffa4e-0427-4d38-9e43-4f81634021de_s-1"}}}]
05-11 16:47:22.746 29817-29817/com.cloudminds.meta D/Meta:HubServiceModel: onResults -- Bundle[{results_recognition=[夏丹], error=0, origin_result={"content":{"item":["夏丹"]},"result":{"corpus_no":6418796161795815008,"err_no":0,"idx":-12,"res_type":3,"sn":"fb8ffa4e-0427-4d38-9e43-4f81634021de_s-1"}}}]
05-11 16:47:22.746 29817-29817/com.cloudminds.meta I/Meta:HubServiceModel: onResults -- {"content":{"item":["夏丹"]},"result":{"corpus_no":6418796161795815008,"err_no":0,"idx":-12,"res_type":3,"sn":"fb8ffa4e-0427-4d38-9e43-4f81634021de_s-1"}}
05-11 16:47:22.754 29817-29817/com.cloudminds.meta I/Meta:HubServiceModel: onResults -- 夏丹
05-11 16:47:22.837 29817-30071/com.cloudminds.meta D/Meta:HubService: onSynthesizeStart ,s=0
05-11 16:47:22.841 29817-30072/com.cloudminds.meta D/Meta:HubService: onSpeechStart ,s=0
05-11 16:47:23.304 29817-30071/com.cloudminds.meta D/Meta:HubService: onSynthesizeDataArrived ,s=0
05-11 16:47:23.314 29817-30071/com.cloudminds.meta D/Meta:HubService: onSynthesizeDataArrived ,s=0
05-11 16:47:23.319 29817-30071/com.cloudminds.meta D/Meta:HubService: onSynthesizeDataArrived ,s=0
05-11 16:47:23.324 29817-30071/com.cloudminds.meta D/Meta:HubService: onSynthesizeDataArrived ,s=0
05-11 16:47:23.328 29817-30071/com.cloudminds.meta D/Meta:HubService: onSynthesizeDataArrived ,s=0
05-11 16:47:23.332 29817-30071/com.cloudminds.meta D/Meta:HubService: onSynthesizeDataArrived ,s=0
05-11 16:47:23.334 29817-30071/com.cloudminds.meta D/Meta:HubService: onSynthesizeDataArrived ,s=0
05-11 16:47:23.336 29817-30071/com.cloudminds.meta D/Meta:HubService: onSynthesizeDataArrived ,s=0
05-11 16:47:23.336 29817-30071/com.cloudminds.meta D/Meta:HubService: onSynthesizeFinish ,s=0
05-11 16:47:23.375 29817-30072/com.cloudminds.meta D/Meta:HubService: onSpeechProgressChanged ,s=0
05-11 16:47:23.556 29817-30072/com.cloudminds.meta D/Meta:HubService: onSpeechProgressChanged ,s=0
05-11 16:47:23.796 29817-30072/com.cloudminds.meta D/Meta:HubService: onSpeechProgressChanged ,s=0
05-11 16:47:23.975 29817-30072/com.cloudminds.meta D/Meta:HubService: onSpeechProgressChanged ,s=0
05-11 16:47:23.976 29817-30072/com.cloudminds.meta D/Meta:HubService: onSpeechFinish ,s=0
05-11 16:47:38.487 29817-29817/com.cloudminds.meta D/Meta:HubServiceModel: onEvent name = wp.data, params = {"time-offset":50000,"word":"百度一下"}
05-11 16:47:38.488 29817-29817/com.cloudminds.meta I/Meta:HubServiceModel: current word = 百度一下
05-11 16:47:39.180 29817-29817/com.cloudminds.meta E/Meta:HubServiceModel: onMusic: startRecognizer 2 1
05-11 16:47:39.180 29817-29817/com.cloudminds.meta E/Meta:HubServiceModel: startRecognizer:
05-11 16:47:39.303 29817-29817/com.cloudminds.meta D/Meta:HubService: onReadyForSpeech --Bundle[{}]
05-11 16:47:40.086 29817-29817/com.cloudminds.meta D/Meta:HubService: onBeginningOfSpeech --
05-11 16:47:40.104 29817-29817/com.cloudminds.meta D/Meta:HubService: onEndOfSpeech --
05-11 16:47:40.915 29817-29817/com.cloudminds.meta D/Meta:HubService: onPartialResults -- Bundle[{sentence-id=1, results_recognition=[下], error=0, origin_result={"content":{"item":["下"]},"result":{"corpus_no":6418796240034801581,"err_no":0,"idx":7,"res_type":1,"sn":"9f1640c4-9b6b-4d9d-b2fb-a8ff7e788a62_s-1"}}}]
05-11 16:47:41.147 29817-29817/com.cloudminds.meta E/Meta:HubServiceModel: onMusic: startRecognizer 2 1
05-11 16:47:41.742 29817-29817/com.cloudminds.meta D/Meta:HubService: onPartialResults -- Bundle[{results_recognition=[夏丹], error=0, origin_result={"content":{"item":["夏丹"]},"result":{"corpus_no":6418796240034801581,"err_no":0,"idx":-11,"res_type":3,"sn":"9f1640c4-9b6b-4d9d-b2fb-a8ff7e788a62_s-1"}}}]
05-11 16:47:41.742 29817-29817/com.cloudminds.meta E/Meta:HubService: onResults: Bundle[{results_recognition=[夏丹], error=0, origin_result={"content":{"item":["夏丹"]},"result":{"corpus_no":6418796240034801581,"err_no":0,"idx":-11,"res_type":3,"sn":"9f1640c4-9b6b-4d9d-b2fb-a8ff7e788a62_s-1"}}}]
05-11 16:47:41.743 29817-29817/com.cloudminds.meta D/Meta:HubServiceModel: onResults -- Bundle[{results_recognition=[夏丹], error=0, origin_result={"content":{"item":["夏丹"]},"result":{"corpus_no":6418796240034801581,"err_no":0,"idx":-11,"res_type":3,"sn":"9f1640c4-9b6b-4d9d-b2fb-a8ff7e788a62_s-1"}}}]
05-11 16:47:41.743 29817-29817/com.cloudminds.meta I/Meta:HubServiceModel: onResults -- {"content":{"item":["夏丹"]},"result":{"corpus_no":6418796240034801581,"err_no":0,"idx":-11,"res_type":3,"sn":"9f1640c4-9b6b-4d9d-b2fb-a8ff7e788a62_s-1"}}
05-11 16:47:41.761 29817-29817/com.cloudminds.meta I/Meta:HubServiceModel: onResults -- 夏丹
复现步骤、现象及其他描述:识别第一次工作正常,第二次开启识别,刚开启就立刻结束了,以后就每次返回结果都是第一次的识别内容。
您好, 请问是否仍然存在问题?
兄弟你好,我的问题已经解决了。
问题出在本地,第一次获取到了数据之后,我写出到了文件。
即时调用了它,播放后却没有释放它。
导致二次覆盖写入时失败了。
希望你的问题和我一样。
你好,兄弟,Windows版,我也碰到相同问题。而且我用的不是语音识别功能,我用的是语音合成。
同你的一样,第一次返回结果正确,后面的不管提交的啥,返回的都是第一次合成的结果。
如果你的问题解决了,劳烦不吝赐教,万分感谢!!