itspoma / audio-fingerprint-identifying-python

The Shazam-similar app, that identify the song using audio fingerprints & spectrum analysis and Fast Fourier transform
MIT License
351 stars 164 forks source link

make recognize-file #2

Open altec404 opened 7 years ago

altec404 commented 7 years ago

Hello, I try to test "make recognize-file filepath". But it didn't work. Is it possible recognize from mp3 file? Thanks

pmars commented 7 years ago

I have the same issue. becase this code "from libs.reader_microphone import FileReader" in recognize-from-file.py, but the class FileReader is not in the source file. @itspoma can you share the all source code here ? Thanks.

itspoma commented 7 years ago

@altec404 @pmars you need to make a change on recognize-from-file.py and replace libs.reader_microphone to libs.reader_file.

@pmars yeah, you're right, thanks! On libs.reader_file there're FileReader class that is responsible for parse audio from fs.

radiocortello commented 6 years ago

Hello, I make a change on recognize-from-file.py and replace libs.reader_microphone to libs.reader_file. But it still don't work. As I can see it necessary make more changes. Thanks! Great Job.

zbj6633 commented 4 years ago

Hello, I make a change on recognize-from-file.py and replace libs.reader_microphone to libs.reader_file. But it still don't work. As I can see it necessary make more changes. Thanks! Great Job.

I have the same issue.Have you solved it?

northfun commented 4 years ago

It seems that those codes are not given...This repo seems wouldn't be updated.But the site still works, it would mislead others.

itspoma commented 4 years ago

@northfun there're not site for this repository. It was built as a project for conference's speech. Feel free to propose PR, so I review/merge changes for others.

dianaxun commented 4 years ago

recognize-from-file.zip it's the code that i write refer the recognize_from_microphone.py.hope it will help.

Ekta-Shah commented 3 years ago

Do we have any solution to the recognize from file scenario? @itspoma

tombrown86 commented 3 years ago

recognize-from-file.zip it's the code that i write refer the recognize_from_microphone.py.hope it will help.

@dianaxun

Cool! This script seems to work fine with some sets of audio files.

Unfortunately it gets some wavs completely wrong (the same wavs work when played back in through mic)

I did see a division by zero error which may indicate the issue.

/home/guy/repos/audio-fingerprint-identifying-python/libs/fingerprint.py:91: RuntimeWarning: divide by zero encountered in log10 arr2D = 10 * np.log10(arr2D) # calculates the base 10 logarithm for all elements of arr2D

yoyonel commented 3 years ago

Here a functional implementation for recognize audio from file (a bit refactored to work with python 3.6.9): recognize-from-file.py image Enjoy ^^

Rahul-8055 commented 1 year ago

From where the command recognize-from-file.py is taking the file that has to be recognized....Unable to understand

yoyonel commented 1 year ago

From where the command recognize-from-file.py is taking the file that has to be recognized....Unable to understand

The master branch from this repo is not functionnal, it's why i send a functionnal version of this feature (see my previous comment for the link)

In my implementation, i've used argparse for taken parameters/arguments from the command line (for example the audio filename).

Good luck and have fun :)