A series of Jupyter notebooks and python files which stream audio from a microphone using pyaudio, then processes it.

markjay4k markjay4k Last update: Jan 27, 2024

Audio-Spectrum-Analyzer-in-Python

A live audio spectrum analyzer using pyAudio, matplotlib and scipy.

pip install numpy
pip install matplotlib
pip install scipy

# Installing pyAudio
pip install pipwin
pipwin install pyaudio

# Running the spectrum analyzer
python spec_anim.py

Made from a YouTube tutorial series found here.

A series of Jupyter notebooks and python files which stream audio from a microphone using pyaudio.

Part 1 is a notebook which streams audio and displays the waveform with matplotlib.

Part 2 adds a spectrum viewer using scipy.fftpack to compute the FFT.

Subscribe to our newsletter