AXS-C01 · Question #26
A skill to search for local businesses returns the following output in the response: <speak>I've found <emphasis level="strong">Bananas & Bears</emphasis></speak> In testing, the Alexa Skill Builder…
The correct answer is D. There is an ampersand (&) in the text. Ampersands cannot be parsed by SSML and will result in an error when used in speak output in a Ampersands are considered a control character in XML.
Question
A skill to search for local businesses returns the following output in the response:
<speak>I've found <emphasis level="strong">Bananas & Bears</emphasis></speak> In testing, the Alexa Skill Builder notices the skill keeps failing and reviews the logs in Amazon CloudWatch and finds the following error:
"error": { "type": "INVALID_RESPONSE" , "message": "Invalid SSML Output Speech for requestId amzn1.echo- api.request.afb31745-05ad-400e-8703-3a. Error: Fatal error occurred when processing SSML content. This usually happens when the SSML is not well formed. Error:
Unexpected character ' ' (code 32) (missing name?)\n at [row,col {unknown-source}]:
[1,101]" } What is wrong with the <speak> response?
Options
- A<emphasis> should be <say-as>.
- BThe entire string needs to be in quotes.
- CThe apostrophe in "I've" should be removed.
- DThere is an ampersand (&) in the text.
How the community answered
(42 responses)- A12% (5)
- B5% (2)
- C2% (1)
- D81% (34)
Explanation
Ampersands cannot be parsed by SSML and will result in an error when used in speak output in a Ampersands are considered a control character in XML.
Topics
Community Discussion
No community discussion yet for this question.