Skip to content

Instantly share code, notes, and snippets.

View benjaminchodroff's full-sized avatar

Benjamin Evans Chodroff benjaminchodroff

View GitHub Profile
@benjaminchodroff
benjaminchodroff / wavgrep.py
Created June 14, 2017 19:56 — forked from patrakov/wavgrep.py
Find the piece most similar to one wav file (needle) in another (haystack)
#!/usr/bin/python2
import sys
import numpy
from scipy.io import wavfile
from scipy.signal import fftconvolve
def usage():
print >> sys.stderr, "Usage: wavgrep.py --like|--similar|--this needle.wav haystack.wav"