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>
- Create a new AWS Lambda function using the fact blueprint.
- Delete the code, replace with index.js
- Locate and Copy the AWS Lambda ARN for the new function.
- Create a skill such as Hello World.
- On the Configuration page, paste in your Lambda ARN as the endpoint.
- Test your skill by listening for the ssml response.
- Copy the
addSpeehconSSML()
helper function to use in your code.