nerdexam
Amazon

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.

Developing, Testing, and Validating

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)
  • A
    12% (5)
  • B
    5% (2)
  • C
    2% (1)
  • D
    81% (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

#SSML#INVALID_RESPONSE#ampersand#special characters

Community Discussion

No community discussion yet for this question.

Full AXS-C01 Practice