我在使用 Alexa 开发者门户网站的测试
部分时收到此错误
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
并解决了我的问题。
关于javascript - 错误 : Unable to parse the provided SSML. 提供的文本无效 SSML,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40135637/