0
var msg = new SpeechSynthesisUtterance();

msg.text = "ssml";
speechSynthesis.speak(msg);

It did not work. The voice attempted to narrate the XML tags.

Is this code valid? Do I have to provide an XMLDocument object instead?

Sarah Elan
  • 2,465
  • 1
  • 23
  • 45
  • What environment are you using? [Here](http://stackoverflow.com/questions/21952736/the-right-way-to-use-ssml-with-web-speech-api) is a similar discussion for Chrome. – Sarah Elan Mar 18 '15 at 16:25
  • I am using chrome environment – user279289 Mar 19 '15 at 06:41
  • This seems to be a known bug for Chrome. See https://code.google.com/p/chromium/issues/detail?id=88072 and https://code.google.com/p/chromium/issues/detail?id=428902. – Sarah Elan Mar 19 '15 at 13:16

0 Answers0