saySSMLEZB
Audio.saySSMLEZB(ssml, [ezbIndex])
Parameters
ssml | Text to say. |
ezbIndex (optional) | Board index of the EZB to output the audio from. |
Returns
NothingDescription
Speak the SSML document given in the string using text-to-speech through the EZB’s audio system. Execution of the script will continue while the audio is playing.
Read about SSML in this support document here: https://www.w3.org/standards/history/speech-synthesis/
Example
// This is an example using the say-as to specify an input format and speak the date
var str = "<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US">" +
"<say-as type="date:mdy"> 1/29/2009 </say-as>" +
"</speak>";
Audio.saySSMLEZB(str);
// This example includes a pause of 500ms between the two words hello and there
var str = "<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US">" +
"hello <break time="500ms"> there" +
"</break></speak>";
Audio.saySSMLEZB(str);