Skip to content

Commit

Permalink
include a space in utterance for waking chromebooks, phetsims/frictio…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Feb 1, 2023
1 parent 9e7c5bb commit feff87d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/SpeechSynthesisAnnouncer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,9 @@ class SpeechSynthesisAnnouncer extends Announcer {
this.timeSinceWakingEngine += dt;
if ( !synth.speaking && this.timeSinceWakingEngine > ENGINE_WAKE_INTERVAL ) {
this.timeSinceWakingEngine = 0;
synth.speak( new SpeechSynthesisUtterance( '' ) );

// This space is actually quite important. An empty string began breaking chromebooks in https://github.com/phetsims/friction/issues/328
synth.speak( new SpeechSynthesisUtterance( ' ' ) );
}
}
}
Expand Down

0 comments on commit feff87d

Please sign in to comment.