dpwe / audfprint

Landmark-based audio fingerprinting
MIT License
536 stars 121 forks source link

Reducing dependencies #51

Open utsav-195 opened 5 years ago

utsav-195 commented 5 years ago

Hey, you have made a great algorithm. I have one need that is to eliminate the ffmpeg dependency. Is there a way i can avoid using that package or use an alternate library which does not use ffmpeg in the background. Thanks !!

dpwe commented 5 years ago

OK, I just added a HAVE_FFMPEG flag to the top of audio_read.py. If you set this to False, the FFMPEG code is skipped and instead sound files are read with scipy.io.wavread. However this means that only WAV format sound files are supported (no MP3 etc), and they must already be at the system sampling rate (--samplerate, 11025 Hz by default), since we use ffmpeg to do our resampling.