Skip to content

Commit

Permalink
note about PENDING_UTTERANCE_DELAY, see #66
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Jul 15, 2022
1 parent c8f2244 commit 204a931
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/SpeechSynthesisAnnouncer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const ENGINE_WAKE_INTERVAL = 5000;
// In ms, how long to wait before we consider the SpeechSynthesis engine as having failed to speak a requested
// utterance. ChromeOS and Safari in particular may simply fail to speak. If the amount of time between our speak()
// request and the time we receive the `start` event is too long then we know there was a failure and we can try
// to handle accordingly.
// to handle accordingly. Length is somewhat arbitrary, but 5 seconds felt OK and seemed to work well to recover from
// this error case.
const PENDING_UTTERANCE_DELAY = 5000;

// In Windows Chromium, long utterances with the Google voices simply stop after 15 seconds and we never get end or
Expand Down

0 comments on commit 204a931

Please sign in to comment.