Click here to Skip to main content
15,901,373 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hi!
I want to know if it's possible to compare songs not by their names but by comparing the digits of the songs. Do I need something that will convert the audio track into some intermidiate language and then compare digit by digit?
I would like to know what are the things that I have to know for this . ( what is AI ??)
Posted
Comments
yesotaso 16-May-11 10:26am    
If you want to compare "files" Wayne explains the way to do that. If you want to compare likeness(not exact match) of "audio files", I would say stay away from that subject while you havent begun yet :). Most common known definition of AI is Artificial Intelligence but I doubt thats what you want to know.
Albert Holguin 16-May-11 10:33am    
agree, see my solution...
rachel lvani 16-May-11 15:59pm    
what I realy wanted to do is to compare two similar audio files with different names, by their digit code (this is for my senior year project) but the question is if different encoding (wav vs mp3...) will have different Hash code..?! thank you very much !

If you want to check whether two files are the same, you can just create a SHA1 or MD5 hash and then compare the Hash codes. Thus, if you know the music files are in the same format, this would be an easy way to check if they are the same. This assumes you meant to ask how to do a binary comparison.
 
Share this answer
 
You typically need real digital signal processing for this type of project for a number of reasons:
1. A bit offset will render a comparison obsolete (you'll have to do a correlation).
2. Different data rates will have different binary data.
3. Different encoding (wav vs mp3) will have different binary data.

I don't know if there's any library that already does this (there may be, WinAmp already does this for automatic track tagging), but if you'd like to do it from scratch it may be quite a bit of work.
 
Share this answer
 
Comments
yesotaso 16-May-11 11:01am    
Quite concise :)
I found "http://wiki.musicbrainz.org/XML_Web_Service" if anyone interested.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900