Wrapping Up
Although Alexa has a lovely and very natural voice, we can apply Speech Synthesis Markup Language (SSML) in our skill’s responses to alter the way she speaks, pronounces words, and even change her voice to a different voice altogether.
Using the text-to-speech simulator in the Alexa developer console, we can try out snippets of SSML and hear how they will sound before adding them to our skill’s fulfillment code. Once it’s ready, we can inject the SSML as text to be returned in the response or as prompts in the interaction model. Applying this to the Star Port 75 Travel skill, we were able to add sound effects and music in the response to the launch request as well as spice up validation prompts with a few interjections (known as “speechcons” ...
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.