Skip to content

Instantly share code, notes, and snippets.

View urbanspectrum's full-sized avatar

AndrewK urbanspectrum

  • Dallas, Tx
View GitHub Profile
@boylea
boylea / livespec.py
Last active June 18, 2025 22:06
pyqtgraph live running spectrogram from microphone
"""
Tested on Linux with python 3.7
Must have portaudio installed (e.g. dnf install portaudio-devel)
pip install pyqtgraph pyaudio PyQt5
"""
import numpy as np
import pyqtgraph as pg
import pyaudio
from PyQt5 import QtCore, QtGui