4

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

错误:无法解析提供的 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": {}
}
4

2 回答 2

7

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

于 2016-10-19T15:58:49.107 回答
0

尝试

"outputSpeech": {
          "ssml": "<speak>your test here</speak>",
          "type": "SSML",
        },
于 2017-11-30T19:30:21.737 回答