Instantly share code, notes, and snippets.

@kypflug /SSML.js Secret
Last active Oct 14, 2016

Embed
What would you like to do?
const ssml2 =
'<?xml version="1.0"?>' +
'<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" ' +
'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' +
'xsi:schemaLocation="http://www.w3.org/2001/10/synthesis ' +
'http://www.w3.org/TR/speech-synthesis/synthesis.xsd" ' +
'xml:lang="en-US">' +
'<voice gender="female">This is a sample of Speech Synthesis Markup Language.</voice>' +
"<!-- now request a male voice -->" +
'<voice gender="male">' +
'It can be used with the Microsoft Edge Speech Synthesis feature.' +
'</voice>' +
'<!-- now request an alternate male voice -->' +
'<voice gender="male" variant="2">It's a useful way for websites to customize their spoken text.</voice>' +
'</speak>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment