I opened the Console app and searched for coreaudiod after I heard a crackle. I then copy-pasted the relevant rows to ChatGPT. That was able to give plenty of easy to understand descriptions of the logs to help track down the cause of crackling.
However, in my case, the fix was rather simple: restart Spotify.