Cracking Sounds on MacOS 26

After upgrading to MacOS 26 there are cracking sounds when listening to audio over speaker. Here is how to solve it.

Flo

This Apple forum post gives the answer:

sudo killall coreaudiod

But it seems to have to be repeated multiple times.