以下是我的API发送Alexa的回复:
{
version: '1.0',
sessionAttributes: {}
response: {
outputSpeech: {
type: 'PlainText',
text: "some text"
},
reprompt: {
outputSpeech: {
type: 'PlainText',
text: "some text"
}
},
shouldEndSession: false
}
}
但是,当我查看developer.amazon.com中的响应时,它还有一个名为“speechletResponse”的附加属性
{
"version": "1.0",
"response": {
"outputSpeech": {
"text": "Where are you planning to go ?",
"type": "PlainText"
},
"reprompt": {
"outputSpeech": {
"text": "some text",
"type": "PlainText"
}
},
"speechletResponse": {
"outputSpeech": {
"text": "Where are you planning to go ?"
},
"reprompt": {
"outputSpeech": {
"text": "some text"
}
},
"shouldEndSession": false
}
},
"sessionAttributes": {}
}
我不是在传播这个属性,我似乎无法在文档中找到任何关于它的内容,它来自何处以及它的实用性是什么?