One can monkey patch the AudioContext function by creating an extension which auto suspends it but this may lead to unwanted side effects. As suspended audiocontext cannot be reused by the website. (no sound will be playing)
But maybe I can come up with some solution... 🫡
I created a Firefox Extension that hooks calls to audiocontext and autosuspends the context after 4 seconds. This may lead to missed sounds but is much better than wasting CPU and battery 🔋(should not affect Videos and Audio played by html tags)