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

Error: recognize() got an unexpected keyword argument 'seconds' #11

Open shamtastic opened 5 years ago

shamtastic commented 5 years ago

Ive beet getting the following error whenever i try to recognize from a file! Any ideas how to fix this? or what the problem might be

Traceback (most recent call last): File "recognize-from-file.py", line 7, in r.recognize(seconds=seconds) TypeError: recognize() got an unexpected keyword argument 'seconds' Makefile:25: recipe for target 'recognize-file' failed make: *** [recognize-file] Error 1

rvbcia commented 5 years ago

hi, did you work it out? I'm trying to make this work but still have this error.

niknoorakmal commented 5 years ago

Hye. sorry for disturbing. i didnt run this python yet, but when i see the file recognize-from-file.py .. "from libs.reader_microphone import FileReader". you can see in libs.reader_microphone.. "class MicrophoneReader(BaseReader):" which it call different file.. i think you should change "from libs.reader_file import FileReader" inside the file recognize-from-file.py . I'm really sorry if this won't help.

shamtastic commented 5 years ago

@rvbcia Not yet, i ditched the project for the time being.

@niknoorakmal True, that was an issue with the code yes, i fixed that a while back. This isnt exactly the issue @rvbcia and i are having though. Thanks though :) If you managed to fix it and make it work, can you please send me the updated on, that would be much appreciated. Thanks :)

itspoma commented 4 years ago

@shamtastic feel to create PR to share changes with others.

Kind regards, Roman

hedo95 commented 4 years ago

I have the same issue with recognize-file. Could you share your code changes please? thanks:)