vinidiktov opened a new issue #674: How to use standard Web APIs such as Web 
Speech API?
URL: https://github.com/apache/royale-asjs/issues/674
 
 
   Can I use standard Web APIs such as Web Speech API?
   
   If I can, how?
   
   For example, how do I work with Web Speech events? 
   
   How can I use this from Apache Royale?
   
   var synth = window.speechSynthesis;
   var voices = [];
   voices = synth.getVoices()
   
   var utterThis = new SpeechSynthesisUtterance("hello-world");
   utterThis.onend = function (event) {
           console.log('SpeechSynthesisUtterance.onend');
   }
   utterThis.onerror = function (event) {
           console.error('SpeechSynthesisUtterance.onerror');
   }
   
   utterThis.voice = voices[0];
   
   synth.speak(utterThis);
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to