frank-chris / RealTimeAudio

Record, process and plot microphone audio in real-time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RealTimeAudio

Record, process and plot microphone audio in real-time

Requirements

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

Usage

For PC

python3 pc_rec.py [OPTIONS] INDEX

For RPi

python3 rpi_rec.py [OPTIONS] INDEX
  • INDEX
    INDEX is the index of the input audio device to be used (run python3 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)

About

Record, process and plot microphone audio in real-time


Languages

Language:Python 100.0%