Skip to content

Record, process and plot microphone audio in real-time

Notifications You must be signed in to change notification settings

frank-chris/RealTimeAudio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages