Chromium is not producing voice when I am running my code, while this is working in chrome.
var msg = new SpeechSynthesisUtterance('Hello World'); window.speechSynthesis.speak(msg);
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
I couldn't get it to work myself. From the article: https://bugs.chromium.org/p/chromium/issues/detail?id=251288
we need to use
--enable-speech-synthesis and the speech dispatcher
apt-get install speech-dispatcher
Since that did not work I tried also installing
but still chromium(58.0.3029.110) seemed unable to pickup any speech engine.
Also just to cover my basis I have tried all of this with the flag mentioned above
--enable-speech-dispatcher which gave me a "you are using an unsupported command-line flag" warning.
All of this on x64 and arm64 ubuntu 16.04.2.
espeak with a package manager, to populate
SpeechSynthesis.getVoices() array with voices from
espeak for chromium browser speech dispatcher to utilize
$ sudo apt-get install espeak
Then launch chromium with
--enable-speech-dispatcher flag set.
Speech synthesis is disabled by default in chromium builds on debian/ubuntu. Enable it with the
--enable-speech-dispatcher command line flag.
Note however that voices are not supported without installing Google API keys.