Applying SSML in Skill Responses
There are two places where you’ll likely use SSML in a skill:
-
In a request handler’s response, through the response builder’s speak() or reprompt() methods
-
In the interaction model as one of the values defined in the prompts section
And even though automated tests can’t possibly verify how SSML sounds, you’ll probably want your tests to assert that the SSML returned is what you expect.
In the Star Port 75 skill, we’re going to add SSML in the response from the launch handler to include some audio clips to the launch message. And for fun we’ll also throw a few interjections into the validation prompts in our interaction model.
First, let’s tweak the default response from the launch request handler to include ...
Get Build Talking Apps for Alexa now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.