NLu识别返回json错误,无results信息
kangtainan 发布于2018-11 浏览:1345 回复:1
0
收藏

下载了语音理解.bsg。进行理解的测试的时候。应该返回 {"raw_text": "打开设置","parsed_text": "打开设置","results": [{"domain": "app","intent": "open","object": {"appsetting": "设置"}}]}这种格式,

实际返回{\"raw_text\":\"小虎打开设置。\",\"results\":[]}。results中无数据。

我的启动参数为:

params.put(SpeechConstant.DECODER,2);//纯在先0/在线及离线命令词2

params.put(SpeechConstant.ASR_OFFLINE_ENGINE_GRAMMER_FILE_PATH,"assets://baidu_speech_grammar.bsg");
params.put(SpeechConstant.NLU,"enable");
params.put(SpeechConstant.ACCEPT_AUDIO_VOLUME,false);
params.put(SpeechConstant.PID,19362);

params.put(SpeechConstant.VAD_ENDPOINT_TIMEOUT,0);

请问是哪里出了问题

收藏
点赞
0
个赞
共1条回复 最后由q17821959241回复于2022-08
#2fujiayi1984回复于2018-11

bsg文件中是否设置过“小虎打开设置”

0
TOP
切换版块