Background technology
In the process of using computer, this machine of computer user may be stored a lot of music files, as MP3, CD etc., the information of these music files (song title for example, singer's name, album name, the special edition year of publication, album cover etc.) may be just incomplete originally, also may As time goes on search less than or lose, if computer user wants to regain the information that these music files lack, the music information that present known a kind of method is based on the MD5 sign indicating number is recaptured method, the MD5 sign indicating number is the abbreviation of message-digest algorithm 5 (md5-challenge), it can be described as file " digital finger-print ", any one file, no matter be executable program, image file, the file of temporary file or other any kinds, all there is and has only a unique MD5 information code, by than treating the MD5 sign indicating number of looking in music and the server end musical database existing music, can identify music to be looked into, and obtain to wait to look into music other various information accordingly with this.But,, make and just can not effectively identify identical and the music file that ratio of compression is different of music in this way, because both MD5 sign indicating number differences because after a file is modified, its MD5 sign indicating number also will change thereupon.Therefore, this music information based on the MD5 sign indicating number is recaptured method and is had certain limitation, and uses also cumbersome.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of local music recovery of information method based on audio fingerprint techniques, and it can allow the local user regain the information that the local music file is lacked simply, rapidly and exactly.
For solving the problems of the technologies described above, local music recovery of information method of the present invention, mutual realization by client and server end, and at first need make up a musical database at server end, this database comprises audio-frequency fingerprint and other corresponding various information of music, and, when the user need recapture the information that local music lacks, carry out according to the following step with the index of audio-frequency fingerprint as other music informations:
(1) the Client-Prompt user imports the local path of the music file that needs additional disappearance information;
(2) client is opened this path;
(3) client is extracted audio-frequency fingerprint to the music file under this path, and sends server end to;
(4) server end receives the audio-frequency fingerprint that client transmits;
(5) server end is compared the audio-frequency fingerprint that receives and the audio-frequency fingerprint in the musical database and is searched, if find the audio-frequency fingerprint that is complementary with this audio-frequency fingerprint that receives, then from musical database, extract the information of the music corresponding, and send this information to client with this audio-frequency fingerprint; If do not find the audio-frequency fingerprint that is complementary with this audio-frequency fingerprint that receives, then will search less than information send client to;
(6) information returned of client reception server end if this information is the information that the local music file is lacked, is then handled according to user's needs; If this information be search less than information, then this information is shown to the user, and termination routine.
After client obtains the information of local music missing documents, can offer the user checks, also this information can be write in this music file, with this music file of direct modification, perhaps also can be according to these music informations, rebulid catalogue, music file is copied into corresponding catalogue, to rearrange local music file.
Local music recovery of information method of the present invention, by the method that the audio-frequency fingerprint and the audio-frequency fingerprint in the server end musical database of local music are compared and searched, can make the user in seconds obtain the information that the local music file is lacked, and the accuracy of information is the highest can to reach 99%, compared with prior art, method of the present invention is simpler, rapid and accurate.
Embodiment
Understand for technology contents of the present invention, characteristics and effect being had more specifically, existing in conjunction with illustrated embodiment, details are as follows:
Audio-frequency fingerprint is meant the content-based digital signature of compacting that can represent one section important acoustic feature of music.Audio fingerprint techniques generally includes two parts: i.e. a fingerprint extraction algorithm and fingerprint comparison algorithm that efficient search is arranged in fingerprint database that calculates sense of hearing key character.In the time will discerning one section unknown audio frequency, at first according to its audio frequency characteristics of fingerprint extraction algorithm computation, then with fingerprint database in a large amount of audio-frequency fingerprints of storing compare according to the fingerprint comparison algorithm, identify corresponding audio.An effective audio fingerprint techniques can correctly identify the prototype version that may stand unknown audio frequency various signal Processing, distortion in database.
Local music recovery of information method of the present invention, utilized audio fingerprint techniques exactly, mutual by the client and server end to regain the various information that local music is lacked, this method needs at first to make up a musical database at server end, step is: server end is at first collected a large amount of on the market music and corresponding various information thereof, as song title, singer's name, album name, the special edition year of publication, album cover etc., obtain the audio stream of these music, then, from audio stream, extract the audio-frequency fingerprint of these music, the various information of other corresponding with these music constitute a musical database together, and with the index of audio-frequency fingerprint as corresponding various music informations.
The process step of local music recovery of information method of the present invention as shown in drawings, when the local computing user need regain the information that the local music file lacked, as song title, singer's name, album name, special edition year of publication, album cover etc., carry out according to the following step:
The Client-Prompt user imports the local path of the music file that needs additional disappearance information.
After the user imported this local path, client was opened this path, and the music file under this path is extracted audio-frequency fingerprint, and sent these audio-frequency fingerprints to server end by network.
Server end receives the audio-frequency fingerprint that client transmits, and the audio-frequency fingerprint that receives and the audio-frequency fingerprint in the musical database compared search, if find the audio-frequency fingerprint that is complementary with this audio-frequency fingerprint that receives, then from musical database, extract the various information of the music corresponding with this audio-frequency fingerprint, and send these information to client by network, if do not find the audio-frequency fingerprint that is complementary with this audio-frequency fingerprint that receives, then will search less than information send client to by network.
The information that client reception server end returns, if this information is the information that the local music file is lacked, then judging whether needs this information is shown to the user, if, then this information being shown to the user by display device checks, if not, then continue to judge whether to need to revise the local music file, if, then this information is added in the header file of local music file, if not, then continue to judge whether and need rearrange the local music file according to these information, if, then rebulid catalogue according to these information, and the local music file copied into corresponding catalogue, if not, termination routine then; If server end returns to client be search less than information, then this information is shown to the user, and termination routine.
Specify below in conjunction with one embodiment of the present of invention.Local user's computer E: mydocument music01.mp3 is arranged under the music catalogue, three mp3 music files of music02.mp3 and music03.mp3, has only audio frequency in these three music files, there is not song title, singer's name, information such as album name, when the user need replenish the information of these music file disappearances, at first according to the prompting of client-side program, import the local path of these three music files, be E: my document music, then, client is opened this path, the employing fingerprint extraction algorithm extracts music01.mp3, the audio-frequency fingerprint of music02.mp3 and three music files of music03.mp3, be respectively fingerprint 01, fingerprint 02, fingerprint 03, and the fingerprint that extracts sent to server end, behind the audio-frequency fingerprint that the client that receives server end transmits, beginning search for music database, find the audio-frequency fingerprint that is complementary with these audio-frequency fingerprints in the database, be respectively fingerprint 01 ', fingerprint 02 ', fingerprint 03 ', its corresponding music information is: the song that is called " sky " that fingerprint 01 ' corresponding music is sung for singer Wang Fei, affiliated special edition " A Fei main story " by name, the song that is called " conquering " that fingerprint 02 ' corresponding music is sung for singer Na Ying, affiliated special edition " what attitude " by name, the song that is called " stupid child " that fingerprint 03 ' corresponding music is sung for singer Liu Dehua, affiliated special edition " powerful and unconstrained style " by name, server end is with above-mentioned singer's name then, music information such as song title and album name returns to client, after client obtains information that these local music files are lacked, add these information to music01.mp3, in the tag mark of these three files of music02.mp3 and music03.mp3, thereby make these three mp3 music files comprise corresponding music information, when using the mp3 music player to play, for example play the music01.mp3 file, just can when playing, demonstrate this song " sky " by name, the singer is " Wang Fei ", and affiliated special edition is called " A Fei main story ".
In sum, local music recovery of information method of the present invention is utilized audio fingerprint techniques, makes the user can regain the various information of local music missing documents simpler, rapidly, exactly.