使用Speech获取nlp结果错误


(hushihao) #1

再获取speech nlp结果时,nlp结果错误,麻烦帮分析, 错误信息: 04-10 15:53:34.731 D/speech.speech( 3903): SpeechImpl.poll: front op = 0x7f711fd3f0 04-10 15:53:34.731 D/speech.speech( 3903): SpeechImpl.poll: front op status = 2 04-10 15:53:34.731 D/speech.speech( 3903): SpeechImpl.poll return result id(1), type(3) 04-10 15:53:34.731 D/speech.speech( 3903): SpeechImpl.poll (1) end 04-10 15:53:34.732 D/AudioRecordDemoTest.SpeechDemo( 3903): onComplete 1nlp = {“cloud”:false,“intent”:“NO_NLP”,“slots”:{},“pattern”:null,“asr”:“若琪你好”,“appId”:“ROKID.EXCEPTION”,“appName”:“NO_NLP”}, action = {“version”:“2.0.0”,“startWithActiveWord”:false,“appId”:“ROKID.EXCEPTION”,“session”:{},“response”:{“action”:{“version”:“2.0.0”,“type”:“NORMAL”,“form”:“service”,“shouldEndSession”:true,“directives”:[]},“resType”:“INTENT”,“respId”:“5acc6d77629854881337cca08dc99a78”}} 04-10 15:53:34.732 D/speech.speech( 3903): SpeechImpl.poll: front op = 0x0 04-10 15:53:34.732 D/speech.speech( 3903): SpeechImpl.poll wait 04-10 15:53:34.933 D/rokid.Connection.speech( 3903): uws recv pong: stage 3

代码: // 修改音频编码格式及语言,其它选项不变 SpeechOptions opts = new SpeechOptions(); opts.set_codec(“opu”); opts.set_lang(“zh”); _speech.config(opts);

	_speech.putText(str,cb);

(大发) #2

看起来似乎是识别结果是若琪你好,但是没有配置相应的nlp句式呢