我在使用Alexa Developer门户网站的Test
部分时收到此错误
错误:无法解析提供的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": {}
}
答案 0 :(得分:7)
所以似乎alexa不喜欢outputSpeech响应的text参数中的特殊字符&
。我用单词and
替换了它,这解决了我的问题。
答案 1 :(得分:0)
尝试
"outputSpeech": {
"ssml": "<speak>your test here</speak>",
"type": "SSML",
},