Skip to content

Instantly share code, notes, and snippets.

@zhusee2
Created July 23, 2013 12:08
Show Gist options
  • Select an option

  • Save zhusee2/6061885 to your computer and use it in GitHub Desktop.

Select an option

Save zhusee2/6061885 to your computer and use it in GitHub Desktop.
var u = new SpeechSynthesisUtterance("我說國語,我也說廣東話"),
voices = speechSynthesis.getVoices();
u.voice = voices[44]; // zh-HK Sin-Ji Compact in my environment.
speechSynthesis.speak(u);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment