Trying theses examples in the 0.15.7
version of atom-shell on a Mac with OS X Mavericks doesn’t produce any speech but also no error is thrown.
However, there’s one sign, that something went wrong. Logging speechSynthesis
into the console, the flags speaking
and pending
are true
.
The problem is, as far as I know, that there are no voices available. speechSynthesis.getVoices()
returns an empty array.
@ghost If you are at *nix you can install
espeak
which should populate voices array withespeak
voices. Have not tried electron, launching chromium with--enable-speech-dispatcher
flag set at chromium results in audio output atspeak()
call, without api keys.