Open daxeel opened 8 years ago
Hello @daxeel Would you please check what is stored in the database for the song_name column
Regards, Iskren
"output" is stored in the database for the song_name column.
@daxeel Hi, Dax. Then its obvious why you get that result.
When you fingerprint you have select the proper name you would like to be stored in the database. If you want you can share your call to the fingerprint function.
Sorry @thesunlover, but i didn't get you. Can you tell me get the song name?
Is my code is correct or do i need to change it? If so then what to change in code?
pls share you code :)
from dejavu import Dejavu from dejavu.recognize import FileRecognizer config = { "database": { "host": "127.0.0.1", "user": "root", "passwd": "", "db": "dejavu", } } djv = Dejavu(config) song = djv.recognize(FileRecognizer, "../audio/output.wav") print '-'*10 print song
ok, this is the recognition code
pls share your fingerprint code as well...
I have not wrote fingerprint code. I just followed https://github.com/worldveil/dejavu README.MD where i found this only. Now what i have to do? Please guid me because i am new to audio fingerprinting.
Please read more carefully the documentation. Especially the https://github.com/worldveil/dejavu#fingerprinting section where you specify how to store the songs and their names
@thesunlover , Ok. Thanks for answering my question. If i get stuck, i will comment here. And thank you one again.
@thesunlover , I have one simple clarification , I don't want to create issue for this..
I tested dejavu and it worked seamlessly. would you please tell me what are the attribute definition or where i can get definition of below output values.. thanks
{'song_id': 2, 'song_name': 'Sean-Fournier--Falling-For-You', 'file_sha1': 'A9D18B9B9DAA467350D1B6B249C36759282B962E', 'confidence': 689, 'offset_seconds': 30.88254, 'match_time': 0.34551191329956055, 'offset': 665}
I think there is some information on the details you need in the documentation link with the research Worldviel has done/has given the link to/. It should be somewhere in the *.md files in repository. If not please add another message here. I will have a look on next Monday.
-----Original Message----- From: "Shemul Hossain" notifications@github.com Sent: 10.6.2016 г. 14:23 To: "worldveil/dejavu" dejavu@noreply.github.com Cc: "Iskren Stanislavov" iskren.jgd@gmail.com; "Mention" mention@noreply.github.com Subject: Re: [worldveil/dejavu] Not getting song name (#91)
@thesunlover , I have one simple clarification , I don't want to create issue for this.. I tested dejavu and it worked seamlessly. would you please tell me what are the attribute definition or where i can get definition of below output values.. thanks {'song_id': 2, 'song_name': 'Sean-Fournier--Falling-For-You', 'file_sha1': 'A9D18B9B9DAA467350D1B6B249C36759282B962E', 'confidence': 689, 'offset_seconds': 30.88254, 'match_time': 0.34551191329956055, 'offset': 665}
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
I looked up on the repo for *.md files ..found only README.md and INSTALLTION.md unfortunately there is no such file contain those information.
{ 'song_id': 2, - this is the ID in the DataBase of the song 'song_name': 'Sean-Fournier--Falling-For-You', - this is obvious 'file_sha1': 'A9D18B9B9DAA467350D1B6B249C36759282B962E', - this is a unique hash of the file that was fingerprinted on that song 'confidence': 689, - how much it is sure that the match is correct 'offset_seconds': 30.88254, - position of the first match, as it says it is in seconds 'match_time': 0.34551191329956055,- time the request took to complete 'offset': 665 - can't say yet. }
Hi. This project is fantastic but i am not getting song name and instead of that i always found "output" in song_name. Here is my code
from dejavu import Dejavu from dejavu.recognize import FileRecognizer config = { "database": { "host": "127.0.0.1", "user": "root", "passwd": "",
"db": "dejavu",
}
}
djv = Dejavu(config)
song = djv.recognize(FileRecognizer, "../audio/output.wav")
print '-'*10
print song
And the output is
{'song_id': 4, 'song_name': 'output', 'file_sha1': '988EA94045D0C4413E4F540F69A5409843E6B99D', 'confidence': 4550, 'offset_seconds': 0.0, 'match_time': 2.116482973098755, 'offset': 0}
Can you tell me out to fix it? Thanks.