This commit is contained in:
@@ -382,7 +382,7 @@ export function ThreatCinematic({ scenario, autoPlay = false, chrome = true, bar
|
||||
const speakNow = () => {
|
||||
synth.cancel()
|
||||
const u = new SpeechSynthesisUtterance(cue.text)
|
||||
u.lang = 'en-GB'; u.rate = 0.82; u.pitch = 0.84
|
||||
u.lang = 'en-GB'; u.rate = 0.82; u.pitch = 0.84; u.volume = 0.75
|
||||
// Muting or pausing calls synth.cancel(), which fires a benign
|
||||
// "canceled"/"interrupted" error event on the utterance — swallow it.
|
||||
u.onerror = () => {}
|
||||
|
||||
Reference in New Issue
Block a user