Audio in virtual microphone is saturated

Solution for Audio in virtual microphone is saturated
is Given Below:

I recently coded a soundboard which plays audio when the specific button is clicked. That was working perfectly when playing audio for myself, but when I tried to play it with a virtual microphone to Discord the output had a bad quality. I figured out that the audio was saturated. How do I do ? Here is my code :

import time
from pygame import mixer

mixer.init(frequency=44100, size=16, channels=2, buffer=512) #tried from 0.1 to 2