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 April 18, 2024 16:58
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