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

I get this error when using the TestAlexa Developer website section of the website

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

The error occurs after I receive a successful response, and I press the listen button.

response output:

{
  "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
source share
2 answers

therefore, it seems that alexa does not like the special character &in the text parameter of the response output speech. I replaced it with the word andand solved my problem.

+7
source

try

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

Source: https://habr.com/ru/post/1658222/


All Articles