phetsims / utterance-queue

Alerting library powered by aria-live
MIT License
0 stars 2 forks source link

Latest MacOS includes novelty voices in english #93

Closed jessegreenberg closed 1 year ago

jessegreenberg commented 1 year ago

@Nancy-Salpepi just reported that the latest MacOS includes novelty voices by default. All of these now take up space in the dialog.

Screenshot 2022-11-03 at 6 53 13 PM (2)

This is a good screenshot because it includes all of the attributes on the SpeechSynthesisVoice. I don't see a good way to filter them out They are listed as english and nothing lists them as "novelty".

@Nancy-Salpepi and I did not see any way to uninstall the novelty voices on her machine.

I think the best thing we can do currently is filter out these novelty voices.

jessegreenberg commented 1 year ago
Screenshot 2022-11-03 at 7 12 56 PM

Here is the full list of novelty voices, all of the ones we will want to exclude.

jessegreenberg commented 1 year ago

A potential fix has been pushed. @Nancy-Salpepi can you please see if these voices are now hidden on master?

Nancy-Salpepi commented 1 year ago

I don't see the novelty voices anymore with safari or chrome @jessegreenberg!

Screenshot 2022-11-04 at 7 48 35 AM Screenshot 2022-11-04 at 7 47 23 AM
jessegreenberg commented 1 year ago

Great, thanks @Nancy-Salpepi - glad that filter is working.

Would you mind testing those voices you have listed and making sure they sound OK? For example, I am wondering how "Grandpa" sounds and if it would be more distracting than helpful for students.

Nancy-Salpepi commented 1 year ago

Oh boy! I didn't even notice that it said grandma and grandpa. Those voices aren't distracting, but they are a little fast. Slowing down to .75x makes it too slow. "Flo" is extremely fast for some reason and just sounds garbled. "Junior" sounds like they have a frog in their throat, similar to "Fred." The others are OK. As usual, Samantha, Alex, and Google US English are the clearest.

https://user-images.githubusercontent.com/87318828/200033994-59c7fed8-0cc1-4dd9-ad17-bd74f3f3feaf.mov

jessegreenberg commented 1 year ago

Thanks @Nancy-Salpepi, sounds great. I just removed the voices you mentioned. Can you please confirm? Would you recommend any other changes?

Nancy-Salpepi commented 1 year ago

Hey @jessegreenberg, I am still seeing most of those voices on chrome. Only "junior" seems to have been removed.

Screenshot 2022-11-09 at 9 03 05 AM

Also--I was wondering if there was a way for me to get the "Alex" voice on safari? There are currently 3 choices: Samantha, Ralph and Fred.

jessegreenberg commented 1 year ago

OK, hopefully they are removed after the above commit. The "English (US)" was in the string name so the filter wasn't quite right. Can you please test again?

I was wondering if there was a way for me to get the "Alex" voice on safari?

Possibly, I have Alex on Safari so I am not sure why it isn't showing up for you.

I am worried that as we remove Voices, new ones that also sound strange will enter the list. Maybe we should just stick to excluding "novelty" voices and let the operating system handle the rest. After the most recent change do the remaining voices sound OK @Nancy-Salpepi?

Nancy-Salpepi commented 1 year ago

The voice list contains some voices that I would never choose as a user, but nothing overly strange. The good thing is, the better voices are listed first (at least on my computer). I'm thinking we are good for now @jessegreenberg.

jessegreenberg commented 1 year ago

OK, thanks @Nancy-Salpepi! Sounds good, I will close this issue then.

jessegreenberg commented 1 year ago

@Nancy-Salpepi also just reported that these voices are available in published sims (John Travoltage and GFL:B). @emily-phet do you think this warrants a maintenance release of those sims to hide the novelty voices?

emily-phet commented 1 year ago

@jessegreenberg Can you remind me how resource intensive a maintenance release is (or point me to a place where this may be summarized)?

emily-phet commented 1 year ago

If it's more than an hour or two of your time, is this something that @jbphet could do? He might have some small amount of time opening up this quarter, depending on how intensive the sound ducking feature is.

jessegreenberg commented 1 year ago

Thanks @emily-phet, It will not take that long only because this only involves two sims. If smooth, one hour of my time + 1 hour of QA time seems about right.

I may need to re-implement the fixing commits in a different way to be compatible with older sim code. That makes it difficult to assign to another developer. So the quickest path for this one would be for me to do it.

We are blocked from any maintenance releases until JO finishes a bigger project-wide batch of maintenance releases. I will proceed with this once that is done, unless you say otherwise.

jessegreenberg commented 1 year ago

A round of maintenance releases has completed and a new one will begin on Tuesday. We have a little window now to do this.

If Quadrilateral can get to a dev test on Friday Ill kick this off.

jessegreenberg commented 1 year ago

I missed my window for this, and JO has begun a new round of maintenance patching. Ill have to try again when it is done.

jessegreenberg commented 1 year ago

We have a window now, Ill build versions for this. The three commits in order were: https://github.com/phetsims/utterance-queue/commit/87cccf9f05dbf4514f606004e31809a31a693abb https://github.com/phetsims/utterance-queue/commit/eef67e41160ed9049faa59284abdfc4ebdbef1e3 https://github.com/phetsims/utterance-queue/commit/d734eb009a613f76b0a12d530883c0fd89f36652

Impacted sims are GFL:B and JT.

EDIT: I cannot cherry-pick into sims, they predate SpeechSynthesisAnnouncer and were built when voice code lived in scenery. Will need to redo these changes in joist.

EDIT: Build for gravity-force-lab-basics and john-travoltage complete. I was able to verify that "junior" was pruned from list of voices in macOS 11.7.2 + Safari

jessegreenberg commented 1 year ago

The fix was patched manually into the two sims and I made https://github.com/phetsims/qa/issues/907 for a spot check before republishing.

jessegreenberg commented 1 year ago

https://github.com/phetsims/qa/issues/907 was done a while ago, closing.