Audio distortion

My IP camera audio is horribly distorted on the webplayer (tried different browsers and devices), but when I open the url with VLC the stream audio is ok. I recorded the first audio with audacity from “Stereo Mix”, the second with VLC. Please look at the waveforms and the many silence gaps in the first one. Does anybody know why this might be happening?