4

I am receiving this error when using the Test section of the Alexa Developer portal website

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

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

the response output is:

{
  "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": {}
}
punkdata
  • 885
  • 8
  • 15
Vik
  • 8,721
  • 27
  • 83
  • 168

2 Answers2

7

so seems alexa doesn't like the special character & in the text parameter of the outputSpeech response. I replaced it with the word and and that resolved my issue.

punkdata
  • 885
  • 8
  • 15
Vik
  • 8,721
  • 27
  • 83
  • 168
0

try

"outputSpeech": {
          "ssml": "<speak>your test here</speak>",
          "type": "SSML",
        },
  • 2
    You should make some effort and provide some background as to why this snippet solves the problem... – Jir Nov 30 '17 at 19:39