我得到这样的答复:“对不起,出了点问题。准备就绪后,再试一次。”
当我将表面更改为扬声器模式或智能显示模式时,会发生这种情况。 在“电话”模式下测试时不会出现。
以下是我得到的响应JSON:
{
"payload": {
"google": {
"expectUserResponse": true,
"richResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "<speak><prosody pitch=\"-2.139st\">I am now loading Song#2 which is: <break time='500ms'/><emphasis level=\"strong\">Song_Name</emphasis></prosody></speak>"
}
},
{
"mediaResponse": {
"mediaType": "AUDIO",
"mediaObjects": [
{
"contentUrl": "song_url",
"description": "song_desc",
"name": "song_name"
}
]
}
}
],
"suggestions": [
{
"title": "Cast Vote"
},
{
"title": "No"
}
]
},
"userStorage": "{\"data\":{\"count\":2,\"countExit\":0}}"
}
}
}
“调试”部分在视觉响应中显示以下内容:
{
"visualResponse": {
"visualElementsList": [
{
"simulatorMediaResponse": {
"mediaResponse": {
"mediaType": 1,
"mediaObjectsList": [
{
"name": "song_name",
"description": "song_desc",
"contentUrl": "song_url"
}
],
"startOffsetMs": 0
},
"mediaSessionId": "-1057369484946957721"
}
},
{
"displayText": {
"content": "I am now loading Song#2 which is: song_name"
}
},
{
"displayText": {
"content": "Sorry, something went wrong. When you're ready, give it another try."
}
}
]
}
}
我想知道为什么仅在测试模拟器上的Speaker and Smart Display上会发生这种情况吗?
答案 0 :(得分:0)
好吧,我的解决方案花了3999印度卢比。这没问题,只是模拟器。该问题不会在设备上持续存在。该操作在Google Home Mini上没有任何问题。