OSError: No Default Input Device Available

I have deployed streamlit app in spaces which uses speec_recognition module of python.
with sr.Microphone() as source:
Once I click the button for recording, it throws an error: OSError: No Default Input Device Available

Please let me know how to fix it.
Is there a limitation of using speech_recognition module.

Please help me on this.

1 Like

Did you find any solution to this?

Bump! I am also looking for a solution to this. Error also occurs using Pyaudio with portaudio package in packages.txt , and with standard streamlit audio calls.

Bumping… need this as well. Is there a solution?