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

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

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

Error: Unable to parse the provided SSML. The provided text is not valid 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": {}
}

看来 alexa 不喜欢 outputSpeech 响应的文本参数中的特殊字符 &。我用 and 一词替换了它,这解决了我的问题。

尝试

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