语言

Menu
Sites
Language
Support for SpeechSynthesis web api in Tizen

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.

响应

3 回复
pika

Spend some time playing. I'm interested in finding out more because I have strong views about it. Would you please provide more details to your blog post? We will all actually gain from it. nytimes crossword

Genhister Genhister

I think yes but I've never really tried it! 

log inn

The article I saw was interesting because of the presentation.