You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 11, 2022. It is now read-only.
According to the MDN docs one needs to wait in Chrome browsers for the onvoiceschanged event. This does not work on Firefox, therefore Mozilla suggests this approach:
varvoices=[];functionpopulateVoiceList(){voices=synth.getVoices();// Now we have the voices.}populateVoiceList();if(speechSynthesis.onvoiceschanged!==undefined){speechSynthesis.onvoiceschanged=populateVoiceList;}
It would be nice if the SpeechSynthesisService.getVoices() would return a Promise or an Observable.
The text was updated successfully, but these errors were encountered:
According to the MDN docs one needs to wait in Chrome browsers for the
onvoiceschanged
event. This does not work on Firefox, therefore Mozilla suggests this approach:It would be nice if the
SpeechSynthesisService.getVoices()
would return aPromise
or anObservable
.The text was updated successfully, but these errors were encountered: