Skip to content

Instantly share code, notes, and snippets.

@netom
netom / spectrum.py
Last active July 24, 2023 21:51
Simple spectrum analyzer in python using pyaudio and matplotlib
#!/usr/bin/env python
# -*- charset utf8 -*-
import pyaudio
import numpy
import math
import matplotlib.pyplot as plt
import matplotlib.animation
RATE = 44100