美文网首页
浏览器读字发音

浏览器读字发音

作者: adtk | 来源:发表于2017-08-24 15:51 被阅读0次

    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);
    

    相关文章

      网友评论

          本文标题:浏览器读字发音

          本文链接:https://www.haomeiwen.com/subject/hmledxtx.html