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

No voices in Chrome #218

Closed willwade closed 4 years ago

willwade commented 4 years ago

Screenshot 2020-04-20 at 12 42 18

Strange this one. Voices are appearing in Safari and Firefox.

gavinhenderson commented 4 years ago

I've done some digging into this.

It seems to me like its because speechSynthesis.getVoices() returns an empty array on chrome but not on safari on firefox.

Specifically on this line: https://github.com/AceCentre/pasco/blob/a9b4d53098be71293d2a702aff4ab42a17c9d451/html/js/core.js#L1172

gavinhenderson commented 4 years ago

Apparently it takes a while for the voices to be populated on chrome so you have to wait awhile before requesting the voices. Happy to try and make a fix and open a PR?

gavinhenderson commented 4 years ago

Got a fix working locally, will fork and submit a PR

willwade commented 4 years ago

Thanks! That’s awesome :)