I have an script correctly running on chrome for windows, but when I try it on my android chrome, it doesn't works. It seems to be a problem of the voices, since the :
if ('speechSynthesis' in window)
returns true. I've tried some online examples (for example http://codepen.io/matt-west/pen/wGzuJ) and the "voices" selection list is empty.
Do I need to install something to make this work?
This code works in chrome for windows but not in chrome for android:
function playSentence(text) {
var msg = new SpeechSynthesisUtterance();
msg.text = text;
window.speechSynthesis.speak(msg);
}
$(function () {
playSentence("Hello world");
});
Versions: Android 5.0.0 - Chrome 46.0.2490.76