Reputation: 5882
I'm trying to find a library for Php or Python that could process audio files. I need to loop through recorded phone calls and process them to remove those that have some specific pattern e.g. beep tone only instead of human voice. I think it would be possible by comparing samples of amplitudes in audio file. Are there any libraries you know of that could help?
Thanks!
Upvotes: 0
Views: 731
Reputation: 612
Someone recommends me the pyaudiere, it can "pass sound buffers as NumPy arrays of float32's". I never used it before, you may give it a go.
I used to use pymad, it might be a little old buy very handy.
Upvotes: 0
Reputation: 266
Audiolab is a python library which can load AIFF, AU and WAV files directly into a numpy array.
It is likely that audio containing only beep tones will have a fairly simple power spectrum, which can be obtained from the audio array using numpy.fft
.
Upvotes: 0
Reputation: 19037
Python comes with the standard library wave module that can load and parse .wav files; detecting beep tones is probably a little harder than you think, but not prohibitively difficult.
Upvotes: 1