How to use Web Speech API at chromium?

后端 未结 2 2037
我寻月下人不归
我寻月下人不归 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.

    0 讨论(0)
  • 2020-12-01 16:58

    Install espeak using package manager

    $ sudo apt-get install espeak
    

    Launch Chromium with --enable-speech-dispatcher flag

    $ chromium-browser --enable-speech-dispatcher
    
    0 讨论(0)
提交回复
热议问题