vinidiktov commented on issue #674: How to use standard Web APIs such as Web 
Speech API?
URL: https://github.com/apache/royale-asjs/issues/674#issuecomment-575474368
 
 
   @Harbs 
   
   Should I wait for an updated version of Royale?
   
   How can I use the updated typedefs right now?
   
   Will SpeechSynthesisUtterance  also be accessible? 
   
   Do you mean I'll be able to write code exactly like this, or do I have to 
change it up?:
   
   Will the events also work?
   
   `
   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