How to use Web Speech API at chromium?

后端 未结 2 2120
我寻月下人不归
我寻月下人不归 2020-12-01 16:26

How to use SpeechSynthesisUtterance() and window.speechSynthesis.speak() at chromium browser?

var msg = new SpeechSynthesisUtteranc         


        
2条回答
  •  眼角桃花
    2020-12-01 16:55

    1. I recently tried to wrap my app which uses SpeechSynthesis with NWjs.

    Properly works on Mac (mac os has voices by default).

    As NWjs uses Chromium as a browser engine this proves that SpeechSynthesis works.

    IMHO, the only difference between Chrome and Chromium that Chromium does not have Google voices and therefore will not work on the machine without voices installed.

提交回复
热议问题