Skip to content

Instantly share code, notes, and snippets.

View barulalithb's full-sized avatar
😄
,

lalithbharadwajb barulalithb

😄
,
View GitHub Profile
@barulalithb
barulalithb / plot_wav.py
Created August 18, 2018 10:52 — forked from leouieda/plot_wav.py
Python code to plot a .wav file
# Load the required libraries:
# * scipy
# * numpy
# * matplotlib
from scipy.io import wavfile
from matplotlib import pyplot as plt
import numpy as np
# Load the data and calculate the time of each sample
samplerate, data = wavfile.read('Clapping.wav')