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 August 22, 2024 02:22
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