eQualityTime / TheOpenVoiceFactory

The Open Voice Factory - open software for people with communication difficulties
http://theopenvoicefactory.org
23 stars 9 forks source link

Get available voices on page load #135

Closed sylvansson closed 4 years ago

sylvansson commented 4 years ago

Since speechSynthesis.getVoices is asynchronous, the list of voices is still empty by the time we synthesize our first utterance in makeWav. By calling it on page load, we ensure the voices are available in time.

This fixes the issue on both Chrome and Firefox.

Close #125

(This PR reverts eQualityTime/TheOpenVoiceFactory#134.)