Python Voice Activity Detection for Chat Bots Python_vad.py listens to micro-phone and captures voice activity in a sound chunck. My modifications just make the app run continouse and uses sound buffers instead of reading/writing to file.
This code is the foundation if a more advanced version that actually sends sound chuncks to Google for speech to text conversion.
YouTube: https://youtu.be/b8dxSCz5JnU
Modification of: https://github.com/wiseman/py-webrtcvad (MIT Copyright (c) 2016 John Wiseman) https://github.com/wangshub/python-vad (MIT Copyright (c) 2017 wangshub)