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