错误:无法解析提供的SSML。提供的文本无效SSML

时间:2016-10-19 15:23:38

标签: javascript alexa-skills-kit amazon-echo ssml

我在使用Alexa Developer门户网站的Test部分时收到此错误

  

错误:无法解析提供的SSML。提供的文本无效SSML。

我收到成功回复并按下监听按钮后发生错误。

响应输出为:

{
  "version": "1.0",
  "response": {
    "outputSpeech": {
      "type": "PlainText",
      "text": "Here are some recent stories about siemens:Citigroup Inc. Reaffirms Buy Rating for Siemens AG (SIE)Siemens AG (SIE) Rating Reiterated by Citigroup Inc.Global Hydrophone Market Report 2014-2021 - Analysis, Technologies & Forecasts - Vendors: Siemens, Sensor Technology, Cetacean Research Technology - Research and MarketsSiemens Bags The 2016 Frost & Sullivan Asia-Pacific Building Technologies Company Of The Year Award"
    },
    "reprompt": {
      "outputSpeech": {
        "type": "PlainText",
        "text": "What else can I help with?"
      }
    },
    "shouldEndSession": false
  },
  "sessionAttributes": {}
}

2 个答案:

答案 0 :(得分:7)

所以似乎alexa不喜欢outputSpeech响应的text参数中的特殊字符&。我用单词and替换了它,这解决了我的问题。

答案 1 :(得分:0)

尝试

"outputSpeech": {
          "ssml": "<speak>your test here</speak>",
          "type": "SSML",
        },