Skip to content

Instantly share code, notes, and snippets.

@kypflug

kypflug/SSML.js Secret

Last active October 14, 2016 15:32
Show Gist options
  • Save kypflug/a320a8231cc31e484c93c2b201a7d36a to your computer and use it in GitHub Desktop.
Save kypflug/a320a8231cc31e484c93c2b201a7d36a to your computer and use it in GitHub Desktop.
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