Skip to content

Instantly share code, notes, and snippets.

View nabeel913's full-sized avatar

Nabeel Mehdi nabeel913

  • North Carolina State University
View GitHub Profile
@nabeel913
nabeel913 / pitch_volume_detection_pyaudio.py
Created June 20, 2018 19:53 — forked from notalentgeek/pitch_volume_detection_pyaudio.py
A simple proof of concept to extract pitch and volume of streamed audio from microphone with PyAudio.
# This is a simple demonstration on how to stream
# audio from microphone and then extract the pitch
# and volume directly with help of PyAudio and Aubio
# Python libraries. The PyAudio is used to interface
# the computer microphone. While the Aubio is used as
# a pitch detection object. There is also NumPy
# as well to convert format between PyAudio into
# the Aubio.
import aubio
import numpy as num
@nabeel913
nabeel913 / streamAudio.py
Created June 20, 2018 19:45 — forked from ZWMiller/streamAudio.py
Using Python to plot the current microphone's input and the Fourier Transform
try:
import pyaudio
import numpy as np
import pylab
import matplotlib.pyplot as plt
from scipy.io import wavfile
import time
import sys
import seaborn as sns
except: