This class helps simplify using SSML (Speech Synthesis Markup Language).
This only supports a subset of SSML tags which the Alexa device supports.
An example of how to use this class.
var speech = new Speech();
speech.say("Let's begin your lesson");
This helper function consolidates the validation checks for rate,pitch and volume. It will first check to see if the attribute is present and whether it's one of the following conditions: a) the value of the attribute is a valid value or b) the value does not exist in the list, but passes the onCheck function. A hook for additional checks.
Upon passing the above checks, the onSuccessful function is called allowing the caller to do any additional work.
This method ensures that the value of the rate must be equal or great than 20%
This method validates if the value exists in the list of values