Audio sounds like a robot after changing the system's default speaker. you can visit https://loquacious-kulfi-549dee.netlify.app and click start. You can hear your voice from your default speaker normally. But the sound becomes distorted if you change your system's default speaker now. I can reproduce it on Safari Version 17.5 (19618.2.12.11.6)/Safari Technology PreviewRelease 196 (Safari 17.4, WebKit 19619.1.16.3)/Safari Version 18.0(20619.1.15.11.1). Audio is always OK on Version 17.4.1 (19618.1.15.11.14), I think it's a critical regression. The demo is very simple, getUserMedia -> audioContext.AudioNode -> audioContext.workletNode -> audioContext.destination. You can see details on the demo site.
Thank you for the report! This sounds similar to bug 274507, which is fixed in macOS 14.6 beta 1. Before we dig deeper, would it be possible for you to try it out? Alternatively, the fix is expected in the next Safari Technology Preview.
Thanks! It works on 14.6 beta now.
*** This bug has been marked as a duplicate of bug 274507 ***