Google Assistant模拟器曾忽略第二个Simple Response的displayText(Bug已修复)
Google Assistant Action 模拟器Bug:第二个Simple Response的displayText被忽略(已修复)
先给大家明确:这个问题是Google Assistant模拟器曾经存在的Bug,目前已经修复了。
我之前在用Python搭配REST API开发Google Assistant Action时遇到过这个问题:按照官方文档要求提交了包含两个Simple Response的富响应,测试时却出现了不一致的表现——语音会正常读取两个Simple Response的textToSpeech内容,但模拟器界面只显示第一个的displayText,第二个直接被忽略。
我当时提交的请求结构
{ "conversationToken": "", "expectUserResponse": True, "expectedInputs": [ { "inputPrompt": { "richInitialPrompt": { "items": [ { "simpleResponse": { "textToSpeech": "First speech.", "displayText": "First text." } }, { "simpleResponse": { "textToSpeech": "Second speech.", "displayText": "Second text." } } ], "suggestions": [] } }, "possibleIntents": [ { "intent": "actions.intent.TEXT" } ] } ] }
当时的异常显示截图

内容的提问来源于stack exchange,提问作者adam.ra
相关产品推荐
相关产品推荐

