Skip to content

Instantly share code, notes, and snippets.

@abeyer
Last active October 17, 2022 03:18
Show Gist options
  • Save abeyer/ecb6eae2ffe8d8900da1b429594fd626 to your computer and use it in GitHub Desktop.
Save abeyer/ecb6eae2ffe8d8900da1b429594fd626 to your computer and use it in GitHub Desktop.
SpeechSynthesis zero utterance volume bug test
testZero = new SpeechSynthesisUtterance("test zero")
testZero.volume = 1.0;
testSmall = new SpeechSynthesisUtterance("test small")
testSmall.volume = 1.0;
failedZero = new SpeechSynthesisUtterance("failed")
failedZero.volume = 0.0;
failedSmall = new SpeechSynthesisUtterance("failed")
failedSmall.volume = 0.001;
speechSynthesis.speak(testZero);
speechSynthesis.speak(failedZero);
speechSynthesis.speak(testSmall);
speechSynthesis.speak(failedSmall);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment