Cannot acces default audio device

I am deploying a speech recognition app globally but i get the following error:
OSError: No Default Input Device Available
File “/home/adminuser/venv/lib/python3.9/site-packages/pyaudio/”, line 812, in get_default_input_device_info
device_index = pa.get_default_input_device()

I could deploy it locally and working fine. Looks like I should add something to get access to the microphone in global environment , but I have no idea about it…

Will be helpful if someone helps out…


Hey @mk-rakesh,

I’d suggest you follow this thread: Record sound from the user's microphone with streamlit - #2 by MadeUpMasters

As far as I know, there’s a Streamlit PyPi package that has this component. Feel free to check it out here: audio-recorder-streamlit · PyPI

Its not official but works. Let me know if it works!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.