https://segmentfault.com/a/1190000002538321
http://www.cnblogs.com/panshijie205/p/6086424.html
浏览器发音
//简单点。。。
var msg = new SpeechSynthesisUtterance('Hi, I\'m Jakub!');
speechSynthesis.speak(msg);
//e,没啥
var msg = new SpeechSynthesisUtterance('i love 恒');
msg.lang = 'zh';
msg.voice = speechSynthesis.getVoices().filter(function(voice) {
return voice.name == 'Whisper';
})[0];
speechSynthesis.speak(msg);
网友评论