简体   繁体   中英

Processing audio file with python or php

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 eg 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!

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.

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 .

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM