Record, process and plot microphone audio in real-time
sudo apt-get install libportaudio0 libportaudio2 libportaudiocpp0 portaudio19-dev
sudo apt-get install python-dev
sudo apt-get install python3-pyaudio
pip install scipy
pip install matplotlib
pip install numpy
python3 pc_rec.py [OPTIONS] INDEX
python3 rpi_rec.py [OPTIONS] INDEX
-
INDEX
INDEX is the index of the input audio device to be used (runpython3 list_devices.py
to get a list of the indices and names of all audio devices with one or more input channels). -
OPTIONS:
-p, --plot
Plot the recorded audio. Default: False-d, --dur DURATION
DURATION is the number of seconds to be recorded. Default: 20-r, --rate RATE
RATE is the sampling rate to be used while recording. Default: 16000
Chris Francis (chris.francis@iitgn.ac.in)