5

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

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 libspeechd & espeak 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.

| improve this answer | |
1

Install 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.

| improve this answer | |
0

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.

| improve this answer | |
  • 2
    No, it looks like speech synthesis was removed from the runtime feature list two years ago and is enabled by default in Chromium. I'm not sure why it can't use the system TTS, which is what Firefox seems to do with no problem. – Desty Nov 26 '16 at 22:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.