worldveil / dejavu

Audio fingerprinting and recognition in Python
MIT License
6.36k stars 1.43k forks source link

resolves the infinite loop issue when recognizing song through a micr… #89

Open vc13 opened 8 years ago

vc13 commented 8 years ago

Executing "python dejavu.py --recognize mic 10" causes script to fall into a very long loop or a memory error because the argument for time (10 in this case) is passed as string to djv.recognize() function. Inside this function this string argument causes either a very long loop or a memory error. Casting time argument to integer solves the issue.

pimpmypixel commented 8 years ago

Hello vc13 - I'm trying to get the microphone recognize done on a raspberry pi and keep getting the error you mention http://pastebin.com/Hjf92w5M and this one http://pastebin.com/84exHUvq I edited the code to cast the seconds as int() but still the same error and now wondering if perhaps you know what to do from here?