How to use SSML with the new Ubi Portal Alexa Skill

Image for post
Image for post

Yesterday, we announced a new feature of the Ubi Portal Voice Prototyping tool for Alexa Skills.

Here’s how to use it…

What you’ll need:

  1. An Echo, Echo Dot, or other Alexa-enabled device (if you don’t have one, you can use the Ubi App here on Android)
  2. An Ubi Portal account (it’s free… sign up at portal.theubi.com)

How to setup the Ubi Portal Voice Prototyping Skill

  1. Go to alexa.amazon.com or use the Alexa App
  2. Click on “Skills” on the top right
  3. Search for “Ubi”
  4. Enable the Skill and sign in to your Ubi Portal Account

How to create a “Lesson” on the Ubi Portal

  1. Log into the Ubi Portal (portal.theubi.com)
  2. Scroll down and select “Lessons”
  3. Click on “+ New lesson”
  4. From the trigger menu, select “Alexa” and then “Utterance”
  5. Enter a phrase that will trigger your lesson (e.g. “The sky is blue”)
  6. Select “Alexa — Voice Reply” and enter what the response from Alexa will be. You can also choose other reactions like sending an email, text message, or even making a phone call). Once done, press “Save to Ubi”.
  7. Back at your Echo or other Alexa device, say “Alexa, tell portal…” and then speak the phrase you had entered as the trigger.

How to use the new SSML tags

Follow the steps above for to create a skill. However, in the voice reply field, you can enter SSML tags. For a reference of all supported Alexa SSML tags, see here: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/speech-synthesis-markup-language-ssml-reference

Here’s an example of using an interjection tag:

<speak>

<say-as interpret-as=”interjection”>wowza</say-as>

</speak>

Here’s an example of using an audio tag:

<speak>

<audio src=”https://www.keetsy.com/files/test.mp3" />

</speak>

For audio that’s supported through Alexa, see here: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/speech-synthesis-markup-language-ssml-reference#audio

Written by

Independent daily thoughts on all things future, voice technologies and AI. More at http://linkedin.com/in/grebler

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store