B4PT0R / streamlit-mic-recorder

Streamlit component allowing to record audio from the user's microphone and/or perform speech to text easily
MIT License
124 stars 23 forks source link

Auto stop recording #12

Open metalshanked opened 3 months ago

metalshanked commented 3 months ago

Thanks for the amazing component! Is there a way to automatically stop recording if there is no longer any sound detected? like how the AI assistants work?

Also, is there a google api quota for Speech to text calls using this component?

rayjayatunga commented 2 months ago

Hey @metalshanked, did you figure out how to stop recordings when the user stops speaking? I'm looking for the same information. Essentially trying to build a pipeline that looks like: audio -> speech-to-text -> LLM -> text-to-speech. Appreciate any learnings you may have so far