Summary of the invention
But, in prior art, owing to needing user to judge voluntarily the tonequality height of local music file, and download one by one high-quality music file to carry out the renewal of music file by hand, when the music file that upgrades when needs is more, need user to carry out loaded down with trivial details operation and just can complete said process, and efficiency is very low.
Therefore by local music file update, be that high-quality music file is very bothersome process in the prior art.
For this reason, be starved of a kind of improved media file quality upgrade method and equipment, automatically local media file is upgraded, upgraded to high-quality media file, improve the efficiency of media file update, improve user and experience.
In the present context, embodiments of the present invention expectation provides a kind of media file quality upgrade method and equipment.
In the first aspect of embodiment of the present invention, a kind of method is provided, be applied to client, described client is connected with server, comprising: obtain the file identification of local media file, described file identification is for media file described in unique identification; When the tonequality of determining described local media file is during lower than the tonequality of online Media file corresponding to server, to server, send download request; The file identification of the local media file that wherein, described download request comprises acquisition; The media file of the renewal that reception server sends, is used local media file described in the media file update of described renewal; Wherein, the tonequality of the media file of described renewal is higher than the tonequality of described local media file.
In the second aspect of embodiment of the present invention, a kind of method is provided, be applied to server, described server is connected with client, comprising: the download request that receives the file identification that comprises local media file of client transmission; Wherein, described download request is to server, to send during lower than the tonequality of online Media file corresponding to server in the tonequality of determining described local media file in described client; Determine the online Media file corresponding with described file identification, described online Media file is sent to client as the media file upgrading, so that after the media file of described client's the renewal sending at reception server, use the local media file of the media file update client of described renewal; Wherein, the tonequality of the media file of described renewal is higher than the tonequality of described local media file.
In the third aspect of embodiment of the present invention, a kind of client device is provided, comprising: file identification obtains unit, be configured for the file identification that obtains local media file, described file identification is for media file described in unique identification; Download request transmitting element, is configured for when the tonequality of determining described local media file is during lower than the tonequality of online Media file corresponding to server, to server, sends download request; The file identification of the local media file that wherein, described download request comprises acquisition; Receiving element, is configured for the media file of the renewal that reception server sends; Wherein, the tonequality of the media file of described renewal is higher than the tonequality of described local media file; Updating block, is configured for local media file described in the media file update that uses described renewal.
In the fourth aspect of embodiment of the present invention, a kind of server apparatus is provided, comprising: download request receiving element, is configured for the download request that receives the file identification that comprises local media file that client sends; Wherein, described download request is to server, to send during lower than the tonequality of online Media file corresponding to server in the tonequality of determining described local media file in described client; Media file transmitting element, be configured for and determine the online Media file corresponding with described file identification, described online Media file is sent to client as the media file upgrading, so that after the media file of described client's the renewal sending at reception server, use the local media file of the media file update client of described renewal; Wherein, the tonequality of the media file of described renewal is higher than the tonequality of described local media file.
According to media file quality upgrade method and the equipment of embodiment of the present invention, can be in the quality of automatic decision local media file during lower than the tonequality of online Media file corresponding to server, according to the file identification of the local media file obtaining, from trend server, send download request, to download more high-quality media file, and automatically upgrade local media file, and without user, judge voluntarily the tonequality height of local media file, also without user, manually download more high-quality media file to replace inferior media file, thereby complexity and the fussy degree of user's operation have been reduced significantly, and improved the efficiency that upgrading is upgraded, for user has brought better experience.
summary of the invention
The inventor finds, in prior art, owing to needing user to judge voluntarily the tonequality height of local music file, and download one by one high-quality music file to carry out the renewal of music file by hand, when the music file that upgrades when needs is more, need user to carry out loaded down with trivial details operation and just can complete said process, and efficiency is very low.
For prior art, exist upgrading media file quality time the efficiency that exists low, the technical matters of complex operation, the invention provides a kind of media file quality upgrade method and equipment, can be in the quality of automatic decision local media file during lower than the tonequality of online Media file corresponding to server, according to the file identification of the local media file obtaining, from trend server, send download request, to download more high-quality media file, and automatically upgrade local media file, and without user, judge voluntarily the tonequality height of local media file, also without user, manually download more high-quality media file to replace inferior media file, thereby complexity and the fussy degree of user's operation have been reduced significantly, and improved the efficiency that upgrading is upgraded, for user has brought better experience.
After having introduced ultimate principle of the present invention, lower mask body is introduced various non-limiting embodiment of the present invention.
application scenarios overview
First with reference to figure 1, the adaptable scene of embodiment of the present invention can be for example scene as shown in Figure 1.Wherein, client device 700(hereinafter referred client) and server end equipment 800(hereinafter referred server) can interaction data (for example, audio file, video file etc.).
illustrative methods
Below in conjunction with the application scenarios of Fig. 1, be described with reference to Figure 2 the media file quality upgrade method according to exemplary embodiment of the invention.It should be noted that above-mentioned application scenarios is only to illustrate for the ease of understanding spirit of the present invention and principle, embodiments of the present invention are unrestricted in this regard.On the contrary, any scene that embodiments of the present invention can be applied to be suitable for.
As shown in Figure 2, be the process flow diagram of media file quality upgrade method according to an embodiment of the present invention, the method is applied to client-side, and concrete example is as comprised:
S201, the file identification of acquisition local media file, described file identification is for media file described in unique identification.
Wherein, in a kind of possible implementation, the file identification that obtains local media file can comprise: the audio-frequency fingerprint information of extracting described local media file; Wherein, described audio-frequency fingerprint information is for characterizing the signal characteristic of described audio fragment; To server, send described audio-frequency fingerprint information, so that described server is after receiving described audio-frequency fingerprint information, described audio-frequency fingerprint information and the audio-frequency fingerprint in server are mated to determine to the file identification of the media file corresponding with described audio-frequency fingerprint information; The file identification that reception server sends is as the file identification of described local media file.In this implementation, client is extracted the audio-frequency fingerprint information of local media file, and described audio-frequency fingerprint information is for characterizing the signal characteristic of described local media file.During specific implementation, the mode that client is extracted the audio-frequency fingerprint information of local media file can be to choose as required, at this, does not limit.For example can comprise, be a plurality of audio fragments by local media Divide File, and a plurality of audio fragments that obtain are carried out respectively to signal analysis and processing, extracts for characterizing the audio-frequency fingerprint information of the signal characteristic of described audio fragment.Then, client sends to server by the audio-frequency fingerprint information of the local media file of extraction, by server after receiving described audio-frequency fingerprint information, audio-frequency fingerprint information in the audio-frequency fingerprint storehouse that described audio-frequency fingerprint information is preserved in advance with server is mated, obtain matching result, described matching result comprises the file identification of the media file corresponding with described audio-frequency fingerprint information.Server sends to client, the file identification being sent by client server, and the file identification using it as local media file by the file identification of the media file corresponding with described audio-frequency fingerprint information of determining.Further, in a kind of possible implementation, the information that server sends to client can further include the tonequality information of the online Media file corresponding with described audio-frequency fingerprint information.The tonequality information of described online Media file can be sampling rate or the code rate information of described online Media file.Certainly, the tonequality information that it will be appreciated by persons skilled in the art that online Media file can be also other forms of information, as long as quality that can presentation medium file.Certainly, server also can be when receiving the tonequality request that comprises media file sign that client sends, then to client, send the tonequality information of the online Media file corresponding with described file identification.
Wherein, in the implementation of another possibility, the method that the embodiment of the present invention provides, before extracting the audio-frequency fingerprint information of described local media file, also comprises: whether the local media file that judgement obtains has default label information; Wherein, include file sign in described default label information; When the local media file of judgement acquisition has default label information, extraction document sign from described label information.During specific implementation, can set in advance label information for the media file of downloading from server, in described label information, comprise the file identification of media file.When client gets local media file, whether the local media file that first judgement obtains has default label information, if so, from described label information, extracts the file identification corresponding with described local media file; If not, extract the audio-frequency fingerprint information of local media file, and send audio-frequency fingerprint information to server, the file identification of the media file corresponding with described audio-frequency fingerprint information that reception server is determined.
Wherein, in the implementation of another possibility, obtain the file identification of local media file, comprise: when the local media file obtaining exists corresponding file song label ID3 information, the described file song label ID3 information obtaining is sent to server, so that the file song label ID3 information that the described file song label ID3 information that described server sends client and described server are preserved compares and obtain matching result; Receive the matching result that described server sends, according to described matching result, obtain the file identification of local media file; Wherein, during the file song label ID3 information matches of preserving in file song label ID3 information corresponding to described local media file and described server, described matching result comprises the file identification that described media file is corresponding.During specific implementation, in file song label ID3 information corresponding to the local media file of client storage and described server, preserve file song label ID3 information matches time, described matching result comprises the complete file song label ID3 information corresponding with described media file of server preservation and the media file sign corresponding with described media file, and described media file sign is for media file described in unique identification.Client can be obtained according to described matching result the file identification of local media file.
S202, when the tonequality of determining described local media file is during lower than the tonequality of online Media file corresponding to server, sends download request to server; The file identification of the local media file that wherein, described download request comprises acquisition.
When specific implementation of the present invention, the tonequality of determining local media file when client during lower than the tonequality of online Media file corresponding to server, sends the download request of the file identification that comprises media file to server.The tonequality of client how to confirm local media file can adopt various ways to realize lower than the tonequality of online Media file corresponding to server, below several possible implementations is introduced.
In a kind of possible implementation, whether the tonequality that client is determined local media file is lower than the tonequality of media file corresponding to server, comprise: to server, send the tonequality request of the file identification that comprises local media file, so that described server after receiving described tonequality request, is determined the tonequality information of the online Media file corresponding with described file identification of preserving in server; The tonequality information of the online Media file that reception server sends; The tonequality information of the online Media file of the tonequality information of the local media file of acquisition and acquisition is compared, with the tonequality of determining local media file whether lower than the tonequality of media file corresponding to server.Wherein, the tonequality information of online Media file can be code check or the sampling rate of described online Media file.
In the implementation of another possibility, whether the tonequality that client is determined local media file is lower than the tonequality of media file corresponding to server, comprise: the comparison of request of the file identification that comprises local media file to server transmission and the tonequality information of local media file, so that described server is after receiving described comparison of request, determine the tonequality information of the online Media file corresponding with described file identification of preserving in server, and the tonequality information of the tonequality information of described online Media file and described local media file is compared to obtain comparative result, the comparative result that reception server sends, whether the tonequality of determining local media file according to described comparative result is lower than the tonequality of media file corresponding to server.
In the implementation of another possibility, whether the tonequality that client is determined local media file is lower than the tonequality of media file corresponding to server, comprise: the file identification of media file and the tonequality information of online Media file that reception server sends, the tonequality information of the online Media file of the tonequality information of the local media file of acquisition and acquisition is compared, with the tonequality of determining local media file whether lower than the tonequality of media file corresponding to server.Particularly, described server is to receive client after the audio-frequency fingerprint information of its transmission, the file identification that described audio-frequency fingerprint information and the audio-frequency fingerprint in server is mated to determine to the media file corresponding with described audio-frequency fingerprint information, and the file identification of definite media file and the media file tonequality information corresponding with described file identification are sent to client together.Or, described server also can be when the file song label ID3 information corresponding with local media file that receives that client sends, the described file song label ID3 information that client is sent compares and obtains matching result with the file song label ID3 information of described server preservation, and the matching result that comprises the file identification that media file is corresponding and the media file tonequality information corresponding with described file identification are sent to client in the lump.
It will be appreciated by persons skilled in the art that the operation that the tonequality information of the online Media file that the tonequality information of local media file and server are preserved compares both can, in client executing, also can carry out at server end.Client only need during lower than the tonequality of online Media file corresponding to server, send download request to server in the tonequality of determining described local media file according to comparative result.When server receives after the download request of client transmission, to client, send the media file upgrading.Wherein, the tonequality of the media file of described renewal is higher than the tonequality of described local media file.
S203, the media file of the renewal that reception server sends, is used local media file described in the media file update of described renewal; Wherein, the tonequality of the media file of described renewal is higher than the tonequality of described local media file.
The media file of the renewal that client server sends, is used local media file described in the media file update of described renewal.During specific implementation, client is used the media file upgrading to replace local media file, and automatically deletes the local media file that tonequality is low.Like this, without user's manual operation, automatically complete upgrading and the renewal of media file quality, and automatically deleted the low local media file of quality, promoted the efficiency of upgrading, simplified user's operation.
Further, method provided by the invention also comprises: when determining that the tonequality of described local media file is not less than the tonequality of the online Media file that server is corresponding, to server, send ID3 information updating request; Utilize the ID3 information of the ID3 information updating local file mating with local media file that server returns.During specific implementation, due to the media file that user obtains from different channels, its corresponding file song label ID3 information is imperfect or comparatively chaotic.In prior art, user needs manually by explorer, the contents such as the western information of the ID3 in file attribute or filename to be revised one by one, very loaded down with trivial details.In embodiments of the present invention, when determining that the tonequality of described local media file is not less than the tonequality of the online Media file that server is corresponding, client sends ID3 information updating request from trend server, with to the complete ID3 information of server request.Wherein, the file identification that described ID3 information updating request comprises media file, server is determined the ID3 information corresponding with file identification described media file that preserve in server according to the ID3 information updating request receiving, and the ID3 information of renewal is sent to client, by client, utilized the ID3 information of the ID3 information updating local file mating with local media file that server returns.From client from trend server send the implementation of ID3 information updating request different be, client also can be when the tonequality of determining described local media file be not less than the tonequality of the online Media file that server is corresponding, show the 3rd information, for pointing out user whether to upgrade ID3 information; Then, can be in response to user the trigger action for the 3rd information, to server, send ID3 information updating request.Certainly, it will be appreciated by persons skilled in the art that the ID3 information updating request that user end to server sends also can send together with media file download request, be configured in single in a piece of news and send, also can in twice message, send respectively.
Further, method provided by the invention also comprises: when determining that the tonequality of described local media file is not less than the tonequality of the online Media file that server is corresponding, show the second information; Whether described the second information is used for pointing out user local media file to be uploaded onto the server; Trigger action in response to user for the second information, uploads onto the server local media file.In this implementation, client can point out user that high-quality media file is uploaded onto the server, when user's input operation or trigger action show that user agrees to media file to upload onto the server, client triggers to carry out local media file is uploaded onto the server.
Referring to Fig. 3, schematically show the media file quality upgrade method process flow diagram according to further embodiment of this invention, it is distolateral that the method is applied to server, and concrete example is as comprised:
S301, the download request of the file identification that comprises local media file that reception client sends; Wherein, described download request is to server, to send during lower than the tonequality of online Media file corresponding to server in the tonequality of determining described local media file in described client.
The tonequality how client obtains local media file identification and how to confirm local media file refers to the description of last embodiment lower than the specific implementation of the tonequality of online Media file corresponding to server.
Wherein, the mode that obtains local media file identification when client be by server, send that the mode of audio-frequency fingerprint information obtains time, the method that the embodiment of the present invention provides further comprises: server receives the audio-frequency fingerprint information of the local media file that client sends; Wherein, described audio-frequency fingerprint information is for characterizing the signal characteristic of described audio fragment; The file identification that described audio-frequency fingerprint information and the audio-frequency fingerprint in server is mated to determine to the media file corresponding with described audio-frequency fingerprint information; To client, send the file identification of media file corresponding to described definite described audio-frequency fingerprint information.
Wherein, the mode that obtains local media file identification when client be by the mode of server Transmit message song label ID3 information, obtain time, the method that the embodiment of the present invention provides further comprises: server receives the file song label ID3 information corresponding with local media file that client sends; The file song label ID3 information that the described file song label ID3 information that client is sent and described server are preserved compares and obtains matching result; To client, send described matching result; Wherein, during the file song label ID3 information matches of preserving in file song label ID3 information corresponding to described local media file and described server, described matching result comprises the file identification that described media file is corresponding.
Further, when user end to server sends the tonequality request of the file identification that comprises local media file, the method that the embodiment of the present invention provides also further comprises: receive the tonequality request of the file identification that comprises local media file of client transmission; According to described tonequality request, determine the tonequality information of the online Media file corresponding with described file identification of preserving in server; To client, send the tonequality information of described online Media file, so that described client compares the tonequality information of the online Media file of the tonequality information of the local media file of acquisition and acquisition, with the tonequality of determining local media file whether lower than the tonequality of media file corresponding to server.
Further, during the comparison of request of the file identification that comprises local media file sending when user end to server and the tonequality information of local media file, the method that the embodiment of the present invention provides also further comprises: the comparison of request that receives the tonequality information of the file identification that comprises local media file that client sends and local media file; According to described comparison of request, determine the tonequality information of the online Media file corresponding with described file identification of preserving in server; The tonequality information of the tonequality information of described online Media file and described local media file is compared to obtain comparative result; To client, send described comparative result, so that the tonequality that client is determined local media file according to described comparative result is whether lower than the tonequality of media file corresponding to server.
S302, determine the online Media file corresponding with described file identification, described online Media file is sent to client as the media file upgrading, so that after the media file of described client's the renewal sending at reception server, use the local media file of the media file update client of described renewal; Wherein, the tonequality of the media file of described renewal is higher than the tonequality of described local media file.
When server receives the download request that comprises media file sign of client transmission, according to described file identification, determine the online Media file corresponding with described file identification, described online Media file is sent to client as the media file upgrading.Wherein, the tonequality of the media file of described renewal is higher than the tonequality of described local media file.
Further, the method that the embodiment of the present invention provides also comprises: receive the ID3 information updating request that client sends; Wherein, described ID3 information updating request is that described client sends to described server when the tonequality of determining described local media file is not less than the tonequality of the online Media file that server is corresponding; To client, send the ID3 information of mating with the local media file of client, so that client is upgraded the ID3 information of local file.
Further, the method that the embodiment of the present invention provides also comprises: receive the local media file that client sends, when the tonequality of determining described local media file is during higher than the tonequality of online Media file, utilize the local media file update online Media file receiving.
Below in conjunction with several concrete implementations, method of the present invention is introduced, embodiment shown below is all to Fig. 2 or change or distortion embodiment illustrated in fig. 3.
Fig. 4 schematically shows the media file quality upgrade method process flow diagram according to further embodiment of this invention.
S401, client determines whether to receive user's media file quality upgrade request, if so, enters step S402.
Wherein, client determines whether that the media file quality upgrade request that receives user can comprise: when cursor being detected and stay predeterminable area, show the first information; Described the first information is used for pointing out user whether to carry out media file quality updating operation; After receiving the clicking operation of user for described the first information, determine the media file quality upgrade request that receives user.During specific implementation, can upgrading tonequality button be set at client end interface, when cursor being detected and remain in the region at described upgrading tonequality button place, show for pointing out user whether to carry out the first information of media file quality updating operation.When user being detected and carry out clicking operation for the first information, surely receive user's media file quality upgrade request.Further, when user being detected and carry out clicking operation for the first information, can also further point out the media file whether user uses renewal to replace local media file, if user selects to determine,, after preserving the media file upgrading, also further delete the old low local media file of tonequality.
In another implementation, client determines whether that the media file quality upgrade request that receives user can comprise: when receiving, click when operation by right key, show right-click menu; Wherein said right-click menu comprises media file quality upgrade option; When receiving user for the clicking operation of the preset options of described right-click menu, determine the media file quality upgrade request that receives user.Further, when receiving user's when operation of clicking by right key, show right-click menu, wherein, right-click menu comprises media file quality upgrade option.When receive for the media file quality upgrade option of described right-click menu clicking operation time, determine the media file quality upgrade request that receives user.It should be noted that, user can, when clicking single by right key, show right-click menu.Also can be when clicking other predeterminated positions of client end interface by right key, show right-click menu.At this, do not limit.
S402, whether the local media file that client judgement obtains has default label information, if not, enters step S403, if so, enters step S406.
Wherein, include file sign in described default label information, for unique identification media file.During specific implementation, client can set in advance label information for the media file of downloading from server, comprises the file identification of media file in described label information.For example can comprise, for the audio file of downloading from cloud music servers adds cloud music mark, the file identification that described cloud music mark comprises described audio file, for audio file described in unique identification.
S403, client is extracted the audio-frequency fingerprint information of local media file, sends the audio-frequency fingerprint information of local media file to server.
S404, server audio reception finger print information, determines corresponding media file sign and online Media file tonequality information, sends the tonequality information of media file sign and online Media file to client.
S405, client compares the tonequality information of the online Media file of the tonequality information of the local media file of acquisition and acquisition, with the tonequality of determining local media file whether lower than the tonequality of media file corresponding to server.If so, enter step S409.
S406, client is extracted the file identification of media file from label information, and user end to server sends the tonequality request of the file identification that comprises local media file.
S407, server sends the tonequality information of the online Media file corresponding with described file identification to client.S408, during the tonequality information of the online Media file sending to server when client, client compares the tonequality information of the online Media file of the tonequality information of the local media file of acquisition and acquisition, with the tonequality of determining local media file whether lower than the tonequality of media file corresponding to server.If so, enter step S409.
S409, whether the tonequality of determining local media file when client during lower than the tonequality of media file corresponding to server, send media file download request, the file identification that described download request comprises local media file to server.
S410, server obtains online Media file according to described file identification, to client, sends online media file.
S411, the online Media file update local media file that client utilization is upgraded.Wherein, upgrade local media file and comprise with the online Media file replacement local media file upgrading, and delete local media file.
It should be noted that, in another implementation of the present invention, step S403 is specifically as follows: S403 ', client judges whether local media file exists corresponding file song label ID3 information, if so, the file song label ID3 information of the local media file of acquisition is sent to server.S404 is specifically as follows: the described file song label ID3 information that S404 ' server sends client compares and obtain matching result with the file song label ID3 information of described server preservation, and the matching result of the tonequality information that comprises file identification that media file is corresponding and online Media file is sent to client.
Certainly; it will be understood by those skilled in the art that; the mode of being obtained the file identification of media file, file identification by file song label ID3 acquisition of information media file and being obtained the file identification of media file by default label information by audio-frequency fingerprint can be suitable for separately; also can be used in combination; those skilled in the art can arrange as required; obtain other implementations not paying under creative work, all belong to protection scope of the present invention.
Referring to Fig. 5, schematically show media file quality upgrade method process flow diagram according to yet another embodiment of the invention, described method can comprise:
S501, the file identification of acquisition local media file.
During specific implementation, client can be in response to the operation that starts described client, scanning medium file in the file scanning pattern setting in advance; At least part of media file that rule based on default obtains scanning adds in the local playlist of described client, to generate the local playlist of described client.Then, obtain the local playlist of described client; While there is corresponding file song label ID3 information in the media file in the local playlist of the described client obtaining, the described file song label ID3 information obtaining is sent to server, so that the file song label ID3 information that the described file song label ID3 information that described server sends client and described server are preserved compares and obtain matching result; Receive the matching result that described server sends; When file song label ID3 information matches that described matching result shows to preserve in file song label ID3 information that media file in the local playlist of described client is corresponding and described server, show the media file song information comprising in the matching result that described server sends; Wherein, described matching result also comprises the media file sign that described media file is corresponding, and described media file sign is for media file described in unique identification.
That is to say, client can scan default scanning pattern, local audio file is added in the playlist of client, and by ID3 information matches, obtains the file identification of the local media file in client.
S502, user end to server sends the tonequality request that comprises local media file identification.
During specific implementation, client can set regular time or regular time interval to server, send tonequality request.For example, the time interval that one day or one week is set regularly sends tonequality request to server.
S503, server sends the tonequality information of the online Media file corresponding with file identification to client.
S504, client compares the tonequality information of the online Media file of the tonequality information of the local media file of acquisition and acquisition, with the tonequality of determining local media file whether lower than the tonequality of media file corresponding to server.
S505, the tonequality of determining described local media file when client during lower than the tonequality of online Media file corresponding to server, shows the first information, described the first information is used for pointing out user whether to carry out media file quality updating operation.Receive user for the clicking operation of described the first information.
S506, the operation in response to user for client, triggers the operation that sends download request to server.The file identification that described download request comprises local media file.
It should be noted that, in another implementation, the tonequality of determining described local media file when client is during lower than the tonequality of online Media file corresponding to server, judging whether user arranges carries out the upgrading of automatic media document quality, if so, trigger the operation that sends download request to server.The file identification that described download request comprises local media file.
S507, server obtains online Media file according to the file identification in download request, to client, sends online media file.
S508, the online Media file update local media file that client utilization is upgraded.Wherein, upgrade local media file and comprise with the online Media file replacement local media file upgrading, and delete local media file.
It should be noted that, more also can being carried out by server end of local media file and online Media file tonequality, the realization of step S502-S504 also can adopt following implementation: S502 ', the comparison of request of the file identification that user end to server transmission comprises local media file and the tonequality information of local media file.S503 ', server is after receiving described comparison of request, determine the tonequality information of the online Media file corresponding with described file identification of preserving in server, and the tonequality information of the tonequality information of described online Media file and described local media file is compared to obtain comparative result, and send comparative result to client.S504 ', the comparative result that client server sends, whether the tonequality of determining local media file according to described comparative result is lower than the tonequality of media file corresponding to server.
It will be appreciated by persons skilled in the art that can also above implementation be changed and is out of shape to obtain other implementations, all belong to protection scope of the present invention.
Referring to Fig. 6, schematically show media file quality upgrade method process flow diagram according to another embodiment of the present invention;
S601, client determines whether to receive user's media file quality upgrade request, if so, enters step S602.
Wherein, the specific implementation of step S601 can be identical with step S401.
S602, client obtains the file identification of local media file, the comparison of request of the file identification that comprises local media file to server transmission and the tonequality information of local media file.
Wherein, the mode of the file identification of client acquisition local media file does not limit.
S603, server is after receiving described comparison of request, determine the tonequality information of the online Media file corresponding with described file identification of preserving in server, and the tonequality information of the tonequality information of described online Media file and described local media file is compared to obtain comparative result.
S604, server sends comparative result to client.
S605, whether the tonequality that client is determined local media file according to comparative result is lower than the tonequality of media file corresponding to server.
S606, when the tonequality of determining local media file is during lower than the tonequality of media file corresponding to server, sends the download request that comprises media file sign to server.
S607, server obtains online Media file according to the file identification in download request, to client, sends online media file.
S608, the online Media file update local media file that client utilization is upgraded.Wherein, upgrade local media file and comprise with the online Media file replacement local media file upgrading, and delete local media file.
In this embodiment, different from front several embodiment is, be the tonequality information of the local media file that client sends that received by server, and the tonequality information of the tonequality information of the local media file of acquisition and the online Media file of server preservation is compared to obtain comparative result.
It will be appreciated by persons skilled in the art that the mode that above-described embodiment all can be changed, be out of shape, combines obtains other implementations, all belongs to protection scope of the present invention.
example devices
After having introduced the method for exemplary embodiment of the invention, next, with reference to the client device for media file quality upgrading of 7 pairs of exemplary embodiment of the invention of figure, be introduced.
Referring to Fig. 7, schematically show client device block diagram according to an embodiment of the invention, described client device 700 for example can comprise: file identification obtains unit 701, be configured for the file identification that obtains local media file, described file identification is for media file described in unique identification; Download request transmitting element 702, is configured for when the tonequality of determining described local media file is during lower than the tonequality of online Media file corresponding to server, to server, sends download request; The file identification of the local media file that wherein, described download request comprises acquisition; Receiving element 703, is configured for the media file of the renewal that reception server sends; Wherein, the tonequality of the media file of described renewal is higher than the tonequality of described local media file; Updating block 704, is configured for local media file described in the media file update that uses described renewal.
Further, file identification obtains unit 701 and is specially the first file identification acquisition unit, described the first file identification obtains unit and comprises extraction unit, audio-frequency fingerprint information transmitting unit, file identification receiving element, wherein: audio-frequency fingerprint information extraction unit, is configured for the audio-frequency fingerprint information of extracting described local media file; Wherein, described audio-frequency fingerprint information is for characterizing the signal characteristic of described local media file; Audio-frequency fingerprint information transmitting unit, be configured for to server and send described audio-frequency fingerprint information, so that described server is after receiving described audio-frequency fingerprint information, described audio-frequency fingerprint information and the audio-frequency fingerprint in server are mated to determine to the file identification of the media file corresponding with described audio-frequency fingerprint information; File identification receiving element, is configured for the file identification of reception server transmission as the file identification of described local media file.
Further, described client device also comprises: the first judging unit, and whether the local media file that is configured for judgement acquisition has default label information; Wherein, include file sign in described default label information; When the local media file of judgement acquisition has default label information, enter the second file identification and obtain unit; When the local media file of judgement acquisition does not have default label information, enter the first file identification and obtain unit.
Further, described file identification obtains unit 701 and is specially the second file identification acquisition unit, is configured for when the local media file of judgement acquisition has default label information extraction document sign from described label information.
Further, described file identification obtains unit 701 and is specially the 3rd file identification acquisition unit, comprise ID3 information transmitting unit, matching result receiving element, wherein: described ID3 information transmitting unit, be configured for when the local media file obtaining exists corresponding file song label ID3 information, the described file song label ID3 information obtaining is sent to server, so that the file song label ID3 information that the described file song label ID3 information that described server sends client and described server are preserved compares and obtain matching result; Described matching result receiving element, is configured for and receives the matching result that described server sends, and obtains the file identification of local media file according to described matching result; Wherein, during the file song label ID3 information matches of preserving in file song label ID3 information corresponding to described local media file and described server, described matching result comprises the file identification that described media file is corresponding.Further, described client device also comprises determining unit, be configured for determine local media file tonequality whether lower than the tonequality of media file corresponding to server.
Wherein, described determining unit is specially the first determining unit, described the first determining unit comprises tonequality request unit, tonequality information receiving unit, comparing unit, wherein: described tonequality request unit is configured for the tonequality request that sends the file identification that comprises local media file to server, so that described server after receiving described tonequality request, is determined the tonequality information of the online Media file corresponding with described file identification of preserving in server; Described tonequality information receiving unit, is configured for the tonequality information of the online Media file that reception server sends; Described comparing unit is configured for the tonequality information of the online Media file of the tonequality information of the local media file of acquisition and acquisition is compared, with the tonequality of determining local media file whether lower than the tonequality of media file corresponding to server.
Further, described determining unit is specially the second determining unit, described the second determining unit comprises comparison of request transmitting element, comparative result receiving element, wherein: described comparison of request transmitting element is configured for the comparison of request that sends the tonequality information of the file identification comprise local media file and local media file to server, so that described server is after receiving described comparison of request, determine the tonequality information of the online Media file corresponding with described file identification of preserving in server, and the tonequality information of the tonequality information of described online Media file and described local media file is compared to obtain comparative result, described comparative result receiving element is configured for the comparative result that reception server sends, and whether the tonequality of determining local media file according to described comparative result is lower than the tonequality of media file corresponding to server.
Further, described client device also comprises: upgrade request receiving element, is configured for the media file quality upgrade request that determines whether to receive user; If so, trigger the operation of the file identification of carrying out described acquisition local media file.
Wherein, described upgrade request receiving element is configured for when cursor being detected and stay predeterminable area, shows the first information; Described the first information is used for pointing out user whether to carry out media file quality updating operation; After receiving the clicking operation of user for described the first information, determine the media file quality upgrade request that receives user; Or, when receiving, click when operation by right key, show right-click menu; Wherein said right-click menu comprises media file quality upgrade option; When receiving user for the clicking operation of the preset options of described right-click menu, determine the media file quality upgrade request that receives user.
Further, described client device also comprises: the first Tip element, be configured for when the tonequality of determining described local media file is during lower than the tonequality of online Media file corresponding to server, before sending download request to server, show the first information, described the first information is used for pointing out user whether to carry out media file quality updating operation; After receiving the clicking operation of user for described the first information, trigger the operation that sends download request to server.
Further, described client device also comprises: trigger judging unit, be configured for and judge whether user arranges and carry out the upgrading of automatic media document quality, if so, trigger to the operation of server transmission download request.
Further, described client device also comprises: ID3 information updating request unit, be configured for when determining that the tonequality of described local media file is not less than the tonequality of the online Media file that server is corresponding, and to server, send ID3 information updating request.
ID3 information updating unit, is configured for the ID3 information of utilizing the ID3 information updating local file mating with local media file that server returns.
Further, described client device also comprises: the second Tip element, be configured for when the tonequality of determining described local media file is during higher than the tonequality of online Media file corresponding to server, and show the second information; Whether described the second information is used for pointing out user local media file to be uploaded onto the server.
Uploading unit, is configured for the trigger action for the second information in response to user, and local media file is uploaded onto the server.
Referring to Fig. 8, schematically show server apparatus block diagram according to an embodiment of the invention, described server apparatus 800 for example can comprise: download request receiving element 801, is configured for the download request that receives the file identification that comprises local media file that client sends; Wherein, described download request is to server, to send during lower than the tonequality of online Media file corresponding to server in the tonequality of determining described local media file in described client; Media file transmitting element 802, be configured for and determine the online Media file corresponding with described file identification, described online Media file is sent to client as the media file upgrading, so that after the media file of described client's the renewal sending at reception server, use the local media file of the media file update client of described renewal; Wherein, the tonequality of the media file of described renewal is higher than the tonequality of described local media file.
Further, described server apparatus also comprises: audio-frequency fingerprint information receiving unit, is configured for the audio-frequency fingerprint information that receives the local media file that client sends; Wherein, described audio-frequency fingerprint information is for characterizing the signal characteristic of described audio fragment.File identification matching unit, is configured for the file identification that described audio-frequency fingerprint information and the audio-frequency fingerprint in server is mated to determine the media file corresponding with described audio-frequency fingerprint information.File identification transmitting element, is configured for the file identification that sends media file corresponding to described definite described audio-frequency fingerprint information to client.
Further, described server apparatus also comprises: ID3 information receiving unit, is configured for the file song label ID3 information corresponding with local media file that client sends that receives.ID3 information matches unit, is configured for the file song label ID3 information of the described file song label ID3 information of client transmission and the preservation of described server is compared and obtain matching result.Matching result transmitting element, is configured for to client and sends described matching result; Wherein, during the file song label ID3 information matches of preserving in file song label ID3 information corresponding to described local media file and described server, described matching result comprises the file identification that described media file is corresponding.
Further, described server apparatus also comprises: tonequality request reception unit, is configured for the tonequality request of the file identification that comprises local media file that receives client transmission.The first tonequality information determining unit, is configured for the tonequality information of determining the online Media file corresponding with described file identification of preserving in server according to described tonequality request.Tonequality information transmitting unit, be configured for the tonequality information that sends described online Media file to client, so that described client compares the tonequality information of the online Media file of the tonequality information of the local media file of acquisition and acquisition, with the tonequality of determining local media file whether lower than the tonequality of media file corresponding to server.
Further, described server apparatus also comprises: comparison of request receiving element, is configured for the comparison of request that receives the file identification that comprises local media file of client transmission and the tonequality information of local media file; The second tonequality information determining unit, is configured for the tonequality information of determining the online Media file corresponding with described file identification of preserving in server according to described comparison of request; Tonequality comparing unit, is configured for the tonequality information of the tonequality information of described online Media file and described local media file is compared to obtain comparative result; Comparative result transmitting element, is configured for to client and sends described comparative result, so that whether the tonequality that client is determined local media file according to described comparative result is lower than the tonequality of media file corresponding to server.
Further, described server apparatus also comprises: ID3 information updating request reception unit, is configured for the ID3 information updating request that client sends that receives; Wherein, described ID3 information updating request is that described client sends to described server when the tonequality of determining described local media file is not less than the tonequality of the online Media file that server is corresponding; ID3 information updating transmitting element, is configured for to client and sends the ID3 information of mating with the local media file of client, so that client is upgraded the ID3 information of local file.
Although it should be noted that some devices or the sub-device of having mentioned client device and server apparatus in above-detailed, this division is only not enforceable.In fact, according to the embodiment of the present invention, the feature of above-described two or more devices and function can be specialized in a device.Otherwise, the feature of an above-described device and function can Further Division for to be specialized by a plurality of devices.In addition, although described in the accompanying drawings the operation of the inventive method with particular order,, this not requires or hint must be carried out these operations according to this particular order, or the operation shown in must carrying out all could realize the result of expectation.Additionally or alternatively, can omit some step, a plurality of steps be merged into a step and carry out, and/or a step is decomposed into a plurality of steps carries out.
Although described spirit of the present invention and principle with reference to some embodiments, but should be appreciated that, the present invention is not limited to disclosed embodiment, the division of each side is not meant that to the feature in these aspects can not combine to be benefited yet, and this division is only the convenience in order to explain.The present invention is intended to contain interior included various modifications and the equivalent arrangements of spirit and scope of claims.