什么是speechletResponse?

时间:2017-12-05 22:30:53

标签: alexa alexa-skills-kit

以下是我的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": {}
}

我不是在传播这个属性,我似乎无法在文档中找到任何关于它的内容,它来自何处以及它的实用性是什么?

0 个答案:

没有答案