I found the problem. It is a hardware or a driver level issue. Because even in an ffmpeg recorded video I can hear the beeping. (My mic is also a webcam.) But if the camera is off the mic works fine. So yeah.