use different pronouciation

  • 306
  • 0

use different pronouciation

 

https://msdn.microsoft.com/en-us/library/office/hh361601(v=office.14).aspx

 

not work:

ss= '<?xml version="1.0" encoding="ISO-8859-1"?><speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US">  Gimme the <phoneme alphabet="x-microsoft-ups" ph="S1 W AA T . CH AX . M AX . S2 K AA L . IH T">  good </phoneme>.'

     u.text = ss;
     u.lang = 'en-US';
     u.rate = 1;
     speechSynthesis.speak(u);