Thank you for your follow up.
I did not know about this feature but after a look at your suggestion, I do not think this applies to the issue.
There is no Speech Synthesis API per se, there is a speech recognition (speech to text) but that is not what we are trying to do - though it is good to know for potential future apps.
The only problem here is that there is no voices in the list returned by
GetVoices().
The page below works in Chrome and Firefox but returns the error message: "
I lost my voices" with EO.Web - I tried it also in the TabbedBrowser.
I suspect there is something to do with the issue reported in this post:
https://stackoverflow.com/questions/21513706/getting-the-list-of-voices-in-speechsynthesis-of-chrome-web-speech-apiBut I cannot get it to work either way.
Code: HTML/ASPX
<!doctype html>
<html lang="en">
<head>
<title>Speak to me!</title>
</head>
<body>
<div id="MyPage">
<p>
<button onclick="SpeakToMe('Hello World'); return false">Speak to me!</button>
</p>
</div>
<script>
function SpeakToMe(phrase) {
if (window.speechSynthesis !== undefined) {
var utterance = new SpeechSynthesisUtterance(phrase);
var synth = window.speechSynthesis;
var voices = synth.getVoices();
if (voices.length == 0)
alert("I lost my voices :-(");
else
synth.speak(utterance);
}
else
alert("I am mute forever!");
}
</script>
</body>
</html>
Of course that does not work at all in IE where it fails to acquire the SpeechSynthesisUtterance instance.