编程语言
首页 > 编程语言> > javascript – 错误:无法解析提供的SSML.提供的文本无效SSML

javascript – 错误:无法解析提供的SSML.提供的文本无效SSML

作者:互联网

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

Error: Unable to parse the provided SSML. The provided text is not valid SSML.

我收到成功的响应并按下listen按钮后发生错误.

响应输出是:

{
  "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": {}
}

解决方法:

所以似乎alexa不喜欢这个特殊的角色&在outputSpeech响应的text参数中.我用这个词替换了它,这解决了我的问题.

标签:javascript,alexa-skills-kit,amazon-echo,ssml
来源: https://codeday.me/bug/20190611/1218708.html