AceCentre / pasco

Phrase Auditory Scanning COmmunicator - AAC App for iOS and the Web
https://app.pasco.chat
GNU General Public License v3.0
14 stars 6 forks source link

Fix #218 by wrapping `getVoices` in setTimeout #220

Closed gavinhenderson closed 4 years ago

gavinhenderson commented 4 years ago

This PR fixes #218 by wrapping the call to the speechSynthesis API in a setTimeout (that waits for 0ms) so that chrome can delay the call for a few microtasks which gives it time to load the voices in.

gavinhenderson commented 4 years ago

I can see a bunch of failures to deploy to netlify but that just seems like timeouts? Do I need to do anything to make the checks pass?

willwade commented 4 years ago

That looks good to me locally. Big thankyou @gavinhenderson :)