Last updated 5 years ago
Was this helpful?
var msg = new SpeechSynthesisUtterance();
msg.text = 'Hello World'; var voices = window.speechSynthesis.getVoices(); msg.voice = voices[19]; //設定語言 speechSynthesis.speak(msg);
參考至