How to use SpeechSynthesisUtterance()
and window.speechSynthesis.speak()
at chromium browser?
var msg = new SpeechSynthesisUtteranc
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.
Install espeak using package manager
$ sudo apt-get install espeak
Launch Chromium with --enable-speech-dispatcher flag
$ chromium-browser --enable-speech-dispatcher