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!