Repository for Semcon AI TUG sessions
This section describes needed packages/tools for the repository.
If developing on windows, Git bash is recommended. It includes a small Linux-like environment based on MSYS2 (which in turn is based on Cygwin.)
Ensure that you have Python 3.6 installed on your laptop. You can check you python 3.x version by:
python3 -v
If you do not have it, then here is a link that might help you install python 3.6:
Install instructions for Python 3.x
Ensure that you have tox package installed.
pip3 install tox
Tox docs.
rec -r 16000 -c 1 test1.wav silence 1 0.1 3% 1 3.0 3%
This command is executed on the command line using python subprocess
p = subprocess.Popen(["rec", "test.wav", "-c", "1", "-r", "16000", "silence", "1", "0.1", "3%", "1", "3.0", "3%"],stdout=subprocess.PIPE)
The recording automatically stops when detects a silence of 3 secs. Source stackoverflow.