In Ubuntu, my sound will go weird at random times when listening to music or looking at Youtube and other videos. Voices turn into robot sounds and music is distorted. When this happens, I simply type the following in the terminal:
pulseaudio -k pulseaudio --start
Notice there is only one dash (-) in the first command and two in the second. This fixes the issue for me every time. It’s probably a good idea to pause whatever sound you are playing before doing the above.
Update: I should note, that it sometimes works just pausing the music, waiting a few seconds, and turning it back on.