Skip to content
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

On Chromebook, it sometimes takes two actions before a statement is heard #32

Closed
Tracked by #925
Nancy-Salpepi opened this issue Mar 17, 2023 · 8 comments
Closed
Tracked by #925
Assignees
Labels

Comments

@Nancy-Salpepi
Copy link

Test device
Chromebook

Operating System
ChromeOS 110.0.5481.181

Problem description
For phetsims/qa#917, with 'Hear Number Sentence' on, after selecting a locale that has only eSpeak voices, it usually takes 2 actions before I hear anything.

Steps to reproduce
Here is one example:

  1. In the Audio Tab, turn on 'Hear Number Sentence' --compare sentence is heard in English
  2. In the localization tab, select a locale that has eSpeak voices (ex. italiano on my device). DO NOT press the voice.
  3. Exit the dialog
  4. Place an item in the left play area --nothing is heard
  5. Place a second item in the left play area --compare statement is heard
Troubleshooting information: !!!!! DO NOT EDIT !!!!! Name: ‪Number Compare‬ URL: https://phet-dev.colorado.edu/html/number-compare/1.0.0-dev.6/phet/number-compare_all_phet.html Version: 1.0.0-dev.6 2023-03-15 01:30:22 UTC Features missing: applicationcache, applicationcache, touch Flags: pixelRatioScaling User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15 Language: en-US Window: 1203x654 Pixel Ratio: 2/1 WebGL: WebGL 1.0 GLSL: WebGL GLSL ES 1.0 (1.0) Vendor: WebKit (WebKit WebGL) Vertex: attribs: 16 varying: 30 uniform: 1024 Texture: size: 16384 imageUnits: 16 (vertex: 16, combined: 32) Max viewport: 16384x16384 OES_texture_float: true Dependencies JSON: {}
@zepumph
Copy link
Member

zepumph commented Mar 29, 2023

I asked @jessegreenberg to kindly do a bit of reproducing because he has a chromebook. He'll report back to see if pairing is the next step.

@jessegreenberg
Copy link
Contributor

jessegreenberg commented Mar 29, 2023

I am able to reproduce this pretty consistently. One way for me to reproduce is to switch between English and Bengali (eSpeak Bengali) and then just press the yellow speaker button. It happens ever time I switch, even without reload.

EDIT: It happens ~70% of the time, not always.

@jessegreenberg
Copy link
Contributor

jessegreenberg commented Mar 29, 2023

I think this is an extension of phetsims/gravity-force-lab-basics#303 (Chromebook puts speech to sleep if not used and then takes a while to re-initialize again). I have the same problem if I do the following:

  • Choose an eSpeak voice in Preferences.
  • Press the yellow "Speaker" button to hear the voice.
  • Let the sim sit untouched for ~30 seconds.
  • Press the yellow "Speaker" button again. You won't hear anything the first time, but if you press again you will hear it.

If the "sleep" optimization Chromebooks use is specific to the Voice, maybe we can "wake" it by providing the selected Voice in the workaround utterance here. https://github.com/phetsims/utterance-queue/blob/36fdea460883369af36712e1aefef89bf2e25e0d/js/SpeechSynthesisAnnouncer.ts#L474-L489

EDIT: After 20 minutes of testing, I can no longer reproduce this.

EDIT2: It IS reprodicible in 1.0.0-dev.6 but NOT in master. Either something changed or Chromebooks behave differently with localhost.

EDIT3: In case it was about the URL or build, I made https://bayes.colorado.edu/dev/html/jg-tests/number-compare/number-compare_all_phet_debug.html off of master. I cannot reproduce the problem in that build.

@jessegreenberg
Copy link
Contributor

jessegreenberg commented Mar 29, 2023

@zepumph @chrisklus I can reproduce it in 1.0.0-dev.6 but it seems fixed in master. See above notes. I am not sure what else to do. Can you think of any changes to sim or utterance-queue since dev.6 that could have fixed this or changed the behavior?

I noticed in master you now hear speech when pressing the language in the vertical carousel, but I don't know why that would change things.

@chrisklus
Copy link
Contributor

Thank you so much for this @jessegreenberg! I was initially wondering if this was related to switching from two announcers to one etc, but it looks like that change was finished just before dev.6 was created. There have been a number of changes related to speech synthesis since then, see phetsims/number-suite-common#56 and the many issues tagged in that issue, so @zepumph and I are not sure what the fix was.

We recommend to mark this is as ready for review and have it verified in the next dev version. @Nancy-Salpepi could you please wait for now but confirm this in the next Number Play/Number Compare dev test? I'll be sure to link it in issues to verify, thanks! Feel free to close if still looking good at that point. And thank you again @jessegreenberg!

@Nancy-Salpepi
Copy link
Author

This looks good in Number Play 1.1.0-dev10. @chrisklus shall we keep this open until confirmed in a Number Compare dev/rc as well?

@zepumph
Copy link
Member

zepumph commented Apr 4, 2023

This version was published today, can you just use that one? Feel free to close if all is well

https://phet-dev.colorado.edu/html/number-compare/1.0.0-dev.7/phet/number-compare_all_phet.html

@chrisklus chrisklus assigned Nancy-Salpepi and unassigned chrisklus Apr 5, 2023
@Nancy-Salpepi
Copy link
Author

Sounds good in Number Compare as well.
Closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants