Python Forum
Recording audio to file until no dialogue. - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Recording audio to file until no dialogue. (/thread-20492.html)



Recording audio to file until no dialogue. - diffLocks16 - Aug-14-2019

Is there a way in Python that I can call a function to start recording audio to a file, which will then only stop when it can't make out any other words. Not when it is silent because I want it to work in a room with minimal ambient noise and therefore only want it to stop when no more dialogue is detected. Another point is that I would like to avoid using the python speech recognition module https://pypi.org/project/SpeechRecognition/ because the way it records is not suitable for my requirements. Any suggestions? Thank you.


RE: Recording audio to file until no dialogue. - Larz60+ - Aug-14-2019

What you're describing sounds like VOX (voice-operated exchange) which is a voice operated switching used by amateur radio.
You might want to read up on that, and/or search for 'software VOX' or 'software voice-operated exchange'.

have a look at: https://towardsdatascience.com/building-a-simple-voice-assistant-for-your-mac-in-python-62247543b626