Skip to content

Instantly share code, notes, and snippets.

View alepape1's full-sized avatar
🎯
Focusing

Alejandro Santana Garcia alepape1

🎯
Focusing
  • SIANI Universidad de las palmas de Gran Canaria
  • Las Palmas de Gran Canaria, Canary island, Spain
View GitHub Profile
@alepape1
alepape1 / plot_mic_fft.py
Created February 24, 2020 19:17 — forked from denisb411/plot_mic_fft.py
Real time microphone analysis. Real time plot of signal and FFT using numpy, matplotlib and pyaudio
import pyaudio
import numpy as np
import time
import wave
import matplotlib.pyplot as plt
# open stream
FORMAT = pyaudio.paInt16
CHANNELS = 1