I am working on a project to create a voice assistant using python 3.10 in pycharm. When the program starts, an error appears:

Traceback (most recent call last):
File "D:\alexa.p y", line 56, in <module>
query = takecommand().l ower()
File "D:\alexa.p y", line 37, in takecommand
with sr.Microphone() as source:
File "C:\Users\(redacted)\PycharmProject s\pythonProject 8\venv\lib\site-packages\speech _recognition\__ init__.py",...