Operating this easy code which works positive in a browser on my mac:
In foremost.js:
perform clickMe () {
var command = "HELLO HELLO";
var synth = window.speechSynthesis;
var utterThis = new SpeechSynthesisUtterance(command);
synth.converse(utterThis);
}
With this in an index.html (with boilerplate html5):
<button onclick="clickMe()">converse</button>
This works positive within the browser on the mac however not on my cellphone. I’ve learn all of the articles concerning the must be initiated by consumer interplay, which is in fact occurring right here.
Any concepts?
Tried some pattern code to checklist and cargo accessible voices on the system, manually setting quantity and price and so forth… nonetheless nothing on the cellphone however works positive on mac.