I have a problem that when I use SpeechRecognition library in python and when I want to put r.listen(source)in while loop my code drasticly slows down.
r.listen(source)