Hi Tizen devs,
I wanted to know whether tizen support SpeechSynthesis api or not. I have created a small demo and trying it in tizen tv but it is not working and the app exits while running the code. Sharing the code for reference.
var voices = speechSynthesis.getVoices();
for (var i = 0; i < voices.length; i++) {
if (voices[i].lang === 'en_US') {
var voice = voices[i];
break;
}
}
var text = 'Hello world!';
var speech = new SpeechSynthesisUtterance(text);
speech.voice = voice;
window.speechSynthesis.speak(speech);
At the last line of code the app exits itself.(app is closing).
Web api reference for speechSynthesis
https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis
Is it supported or there is another way to do the same.