by warbrett · 10y ago · 0 comments
In Chrome the following works as a basic sample:
speech = new SpeechSynthesisUtterance(String("生日快乐"))
voice = speechSynthesis.getVoices()[80] // use Google Chinese Voice
speech.voice = voice
speechSynthesis.speak(speech)