我收到类似这样的回复“抱歉,出了点问题。准备好后,再试一次。”
当我将表面更改为扬声器模式或智能显示模式时,会发生这种情况。在电话模式下测试时不会出现。
以下是我得到的响应 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."
}
}
]
}
}
我想知道为什么这只发生在测试模拟器上的扬声器和智能显示器上?