-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SpeechSynthesisAnnouncer cannot be used before initialized #204
Comments
I see this with Windows + firefox as well. Was working on #160 and got blocked by this. |
This // Voices may not be available on load or the list of voices may change - update if we get an indication that
// the list of available voices has changed.
this.voicesProperty.lazyLink( this.updateVoiceListener ); The |
OK, proposing the above commit to fix this. Instead of checking for populated voices we check to wait until the SpeechSynthesisAnnouncer has been initialized. I am not sure when EDIT:
That seemed right so I added it. @marlitas do you agree, anything else for this issue? |
Over in phetsims/number-suite-common#33, I reported that both number-play and number-compare are currently failing to start in Chrome when run from phetmarks. This is blocking further development and top priority. @chrisklus seems to think this issue is the cause. |
Sorry about that! I guess I did not test phetsims/number-suite-common@3e1652f. Fixed with the above commit. |
@jessegreenberg this looks good, thanks for the work here! @chrisklus over to you for final review and closure. |
Reviewed and discussed with @marlitas on Slack, changes look great and I tested on Safari and Chrome. Thanks @marlitas and @jessegreenberg! Closing. |
@marlitas I'm not sure what is happening, but with mac + safari when I try to set the second locale, the sim freezes with this error:
When using mac + chrome, I can add the second locale and didn't notice any speech synthesis bugs.
Originally posted by @Nancy-Salpepi in #152 (comment)
The text was updated successfully, but these errors were encountered: