I have the following piece of code:
import speech_recognition as sr
r = sr.Recognizer()
with sr.Microphone() as source:
audio = sr.listen(source)
I get the following error:
audio = sr.listen(source)
AttributeError: 'module' object has no attribute 'listen'