Hacker News new | ask | show | jobs
by 0xcoffee 2065 days ago
Pretty interesting that even though I mute the tab it still speaks. The music does get muted, but not the TTS
2 comments

It's using https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynth... which probably isn't affected by the "mute toggle" for accessibility reason.
Huh, I was wondering how they fit a speech synthesizer into less than 1kb. It being a builtin makes much more sense.
Even when the tab is removed the music continues :/
That is so weird - same here, sound keeps playing ~1-2 min after tab is closed. Must be bug in Firefox? How does that happen?
Pretty easy to not properly clean up resources when you share processes between tabs. Firefox does that, chrome doesn't, so it properly cleans up in chrome since it quits the process.

If you wonder why it plays for 1-2 minutes after the code stopped sending to the sound card, you always write sound in batches to the sound card so he likely wrote the whole 1-2 minutes in one big batch.

Makes sense!