I think this is a fun or interesting error that the community will enjoy for its oddness. (I do not enjoy it!) I do not think there is a solution (but I don’t understand the problem fully).
I accidentally upgraded to macOS 12 (meant to do 11) on my ancient trashcan Mac Pro (I love this machine, I am in the minority on that). That coincided with a difficult audio problem: a lot of audio is sped up by about 10%, and voice streaming (Zoom, Google whatever) is often unusable (loud clipping).
It isn’t entirely straightforward, and I haven’t tested it extensively, but here are some details:
After the computer sleeps and then wakes up, Safari and Apple’s Music app will play everything about 10% too fast (there is a pitch shift but yes I also have paid attention to the timing). If I restart either app, they play fine until the next time the computer sleeps. However, Firefox does not have this problem (interesting, it uses some different… something? its own codec?), so I use Firefox for Pandora.
Apple’s Music app: the issue happens with music, I haven’t tried movies.
Safari: YouTube, Pandora. (I discovered that some YouTube videos have one long soundtrack and other ones have the sound chopped into shorter bits that you don’t notice if playback is normal.) So, with YouTube videos, the video plays back at a normal rate, but the soundtrack is 10% too fast, so it rather quickly becomes out of sync, so spoken parts eventually come far before the person speaking them is on screen.
Firefox: not affected with Pandora.
Both Zoom and Google (hangouts? meetups?) have had horribly loud clipping sounds, Zoom in the native app (but not all the time) and Google I just used once in Safari. They are both completely unusable, and it is painfully loud even with the computer volume down very low. I would go so far as to call it somewhat insane.
The Google meeting-thing, I think I tried it in Firefox (after trying it in Safari) and it didn’t work (I ended up using my laptop). I don’t quite recall, I was in a rush to get on the call (making something work quickly was my focus, not diagnosis).
It is an old machine, possibly some hardware is failing (I think one of the video cards went south but I changed the ports the monitors are on and that fixed things and I haven’t tested it beyond that). But it did coincide with the system upgrade (although that was a while ago, I’ve been living with this issue since then).
So, I don’t feel too confident there is a fix, but I find it curious that Firefox is not impacted at all (outside of maybe Google meetups), while Safari is. (I think this is probably some clue about the issue, just I don’t know enough to know what this suggests.) I imagine the rest of the TidBITS community will also find it interesting! (I have tried Googling the problem but if there is a discussion about it, I missed it.) I think it is likely that there are knowledgeable TidBITS readers who will know why Safari is affected but Firefox isn’t (I am not one of those people at the moment but would love to become one).