Skip to content

Latest commit

 

History

History
 
 

ssml-speechcons

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Ingredients

ssml-speechcons


What you will learn

This ingredient shows how to add special emphasis to key phrases within your speech output response.

var speechOutput = "aha, this is a phrase with speechcons, well done.";

console.log(addSpeehconSSML(speechOutput));  // includes ssml tags

// <say-as interpret-as="interjection"> aha </say-as>

Instructions for deploying this sample skill

  1. Create a new AWS Lambda function using the fact blueprint.
  2. Delete the code, replace with index.js
  3. Locate and Copy the AWS Lambda ARN for the new function.
  4. Create a skill such as Hello World.
  5. On the Configuration page, paste in your Lambda ARN as the endpoint.
  6. Test your skill by listening for the ssml response.
  • Copy the addSpeehconSSML() helper function to use in your code.