Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make recognize-file #2

Open
altec404 opened this issue Jun 14, 2017 · 12 comments
Open

make recognize-file #2

altec404 opened this issue Jun 14, 2017 · 12 comments

Comments

@altec404
Copy link

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

@pmars
Copy link

pmars commented Jun 20, 2017

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
Copy link
Owner

itspoma commented Jun 20, 2017

@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
Copy link

radiocortello commented Jul 19, 2017

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
Copy link

zbj6633 commented Oct 23, 2019

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
Copy link

northfun commented Dec 7, 2019

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
Copy link
Owner

itspoma commented May 1, 2020

@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
Copy link

dianaxun commented Jun 5, 2020

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

@Ekta-Shah
Copy link

Ekta-Shah commented Sep 3, 2020

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

@tombrown86
Copy link

tombrown86 commented Sep 15, 2020

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
Copy link

yoyonel commented May 3, 2021

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
Copy link

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

@yoyonel
Copy link

yoyonel commented Sep 29, 2022

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests