Summary of the invention
The problem to be solved in the present invention be fail to comprise music information in the music file or the music information that comprises incomplete, can't satisfy user's demand, to improve the convenience that the user obtains music file.
For addressing the above problem, the invention provides a kind of music file method is provided, comprising:
Receive the music file request;
Provide and described music file request corresponding audio files and part music information file thereof according to described music file request;
The music information template is provided, with described part music information file in contrast, obtains the project of another part music information of lacking in the part music information file;
According to the music information project of described disappearance, generate disappearance music information order;
According to described disappearance music information order, the content of the music information project of search disappearance, and the music information contents of a project of the disappearance that described disappearance music information project and search are obtained and described audio file and part music information file synthesize complete music file.
Optionally, described music information template comprises the project of following music information: the big envelope of singer, song title, the lyrics, special edition, special edition, special edition or singer's picture, Publication Year.
Optionally, with the music information project step that also comprises before described part music information file and the music information template contrast step in the extraction unit branch music message file.
Optionally, describedly synthesize complete music file and specifically comprise and music information project and content thereof with part music information file, disappearance behind the file header or end-of-file as audio file, synthesize complete music file.
The present invention also provides a kind of music file that system is provided, and it is characterized in that, comprising:
Client terminal is used to receive the music file request that the user sends; And provide and described music file corresponding audio files and part music information file thereof according to described music file request; The music information template is provided, with described part music information file in contrast, obtains the project of another part music information of lacking in the part music information file; According to the project of the music information of described disappearance, generate disappearance music information order and also be sent to service platform; The content of the music information project of the disappearance that the music information project and the service platform search of disappearance obtained and described audio file and part music information file synthesize complete music file;
Service platform is used for according to described disappearance music information order, the content of the music information project of search disappearance, and the content of the music information project of the disappearance of the music information project of the disappearance that will obtain and search acquisition is sent to client terminal.
Optionally, described client terminal also comprises:
Musical database is used for storing audio files and music information file;
Search unit is used for search and music file corresponding audio files and music information file;
After described client terminal received the music file request that the user sends, control search unit search for music database obtained and described music file request corresponding audio files and part music information file thereof.
Optionally, described client terminal further comprises:
Synthesis unit is used for the composite music file;
Described client terminal control search unit will be searched for the audio file, the part music information file that obtain and be sent to synthesis unit;
Disappearance music information project and content thereof that described service platform obtains search are sent to synthesis unit, the content of the music information project of the disappearance that described client terminal control synthesis unit obtains part music information file, search and the music information project of the disappearance that search is obtained synthesizes complete music file as the file header or the end-of-file of audio file.
Optionally, described client terminal further comprises:
The music information unit is used for extracting the project in the part music information file of synthesis unit, and judges whether it has the music information of disappearance, if have, according to described disappearance music information project, produce the music information order, and described order is sent to service platform.
Optionally, described music information unit further comprises:
The music information extraction unit is used for extracting the music information project of the part music information file in the synthesis unit, and transfers to the order generation unit;
The order generation unit, be used for music information project and the inner music information template contrast that is provided with part music information file, find out the music information project of disappearance, music information project according to disappearance, produce disappearance music information order, and described disappearance music information order is sent to service platform.
Optionally, described music information template comprises the project of following music information: the big envelope of singer, song title, the lyrics, special edition, special edition, special edition or singer's picture, Publication Year.
Optionally, after client terminal is sent to the user with complete music file, discharge the resource space that this complete music file takies.
Compared with prior art, the present invention has the following advantages: the music file request that provides according to the user, corresponding audio files and part music information file are provided, and can analyze the part music information, draw the music information project that it lacks, the music information of corresponding disappearance is provided, the music information of described disappearance and original audio file and music information are offered the user as unified music file, satisfy user's music file demand, to improve the convenience that the user obtains music file.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can more be become apparent, the specific embodiment of the present invention is described in detail below in conjunction with accompanying drawing.
Set forth detail in the following description so that fully understand the present invention.But the present invention can be different from alternate manner described here and implements with multiple, and those skilled in the art can do similar popularization under the situation of intension of the present invention.Therefore the present invention is not subjected to the restriction of following public embodiment.
The invention provides a kind of music file method is provided, comprising: receive the music file request; Provide and described music file request corresponding audio files and part music information file thereof according to described music file request; The music information template is provided, with described part music information file in contrast, obtains the project of another part music information of lacking in the part music information file; According to the music information project of described disappearance, generate disappearance music information order; According to described disappearance music information order, the content of the music information project of search disappearance, and the music information contents of a project of the disappearance that described disappearance music information project and search are obtained and described audio file and part music information file synthesize complete music file.
Below in conjunction with accompanying drawing music file generation method of the present invention is elaborated.
Execution in step S101 receives the music file request.Described music file request is sent by the user, title of the song, singer's name or the album name etc. that comprise the music file correspondence that the user need obtain, by described music file request, the user wishes to obtain corresponding with it music file, and described music file comprises and music file request corresponding audio files and music information file.
Execution in step S102 according to described music file request, provides the music information file with described music file request corresponding audio files and part.Wherein, for the music file request of part, corresponding audio files and part music information file are provided by local resource, as by local data base, provide as local computing; For the music file request of another part, local data base only can provide corresponding audio files as local computing, and corresponding music information file all lacks.
Execution in step S103 provides the music information template, and compares with the music information file of above-mentioned part.Wherein, described music information template is provided with step S102 compare with the corresponding part music information file of music file request before, also comprise the music information project step in the extraction unit branch music message file.
Described music information template includes predefined a series of music information project, described music information project comprises as follows: the singer, song title, the lyrics, special edition, the big envelope of special edition, special edition or singer's picture, Publication Year etc., extract after the music information project in the described part music information file, compare with described music information template, find out the project of the music information that is lacked in the part music information file that is provided, as having lacked the singer, song title, the lyrics, special edition, the big envelope of special edition, special edition or singer's picture, in the music informations such as Publication Year one or multinomial.
Execution in step S104 according to the project of above-mentioned disappearance music information, generates disappearance music information order.Wherein said music information order includes the project of the music information of disappearance, the music file request that also includes the user and provided.
Execution in step S105 provides the disappearance music information according to described music information order.Particularly, project according to the music information that comprises in the music information order, and the music file request that wherein comprises, by the project corresponding content of Internet resources or other database resources search, such as big envelope, special edition or singer's picture of the concrete singer of correspondence, song title, the lyrics, special edition, special edition, Publication Year one or multinomial with the music information that lacks.
Execution in step S106 synthesizes complete music file with the music information of described disappearance and above-mentioned audio file and part music information file.Described synthetic comprise the disappearance music information that will provide, and step S102 in the audio file and the part music information file that provide synthesize unified format.Described form is applicable to User Recognition.As the music information file in the MP3 format is the ID3 form, and described ID3 file is positioned in the audio file as file header or end-of-file, provides to the user as a file.
Execution in step S107 deposits the music file after synthetic in the memory device in.Described memory device comprises as SD card, USB flash disk or has in the mobile phone of memory function, to be user-friendly to described music file.
Based on the method that provides of above-mentioned music file, a kind of system that provides of music file also is provided in the present invention, as shown in Figure 2, is a kind of embodiment structural representation that music file of the present invention provides system.Music file of the present invention provides system to be used to receive the music file request that the user sends, and generates music file according to described music file request, provides at last to application apparatus 30.
Described music file provides system specifically to comprise client terminal 10, reach the service platform 20 that is connected with client terminal 10, and wherein, client terminal 10 is used to receive the music file request that the user sends; Extract the audio file and the part music information file of client terminal 10 inside according to described music file request; The music information template is provided, with described part music information file in contrast, obtains the project of another part music information of lacking in the part music information file; According to the project of the music information of described disappearance, generate disappearance music information order and also be sent to service platform 20; Receive disappearance music information project and content thereof that described service platform 20 provides, and synthesize music file, be sent to application apparatus 30, memory device that provides as the user etc. with audio file, the part music information file of inside;
Service platform 20, described service platform 20 receives the disappearance music information order that client terminal 10 sends, according to described disappearance music information order, based on the music information content of internet or other database searchs disappearance music information project correspondence, and described disappearance music information project and content thereof be sent to client terminal 10.
With reference to figure 3, described client terminal 10 inside specifically comprise:
Search unit 110, client terminal 10 receives the music file request that described user sends, and controls described search unit 110 based on described music file request, searches for and described music file request corresponding audio files and music information file.Include wherein or multinomial of music informations such as singer's name, song title, album items in the described music file request, described client terminal 10 is also controlled audio file, the partial information file that described search unit 110 and search obtain and is sent to synthesis unit 130;
Musical database 120, store the music information file of audio file and part, described music information file is in the big envelope as singer, song title, the lyrics, special edition, special edition, special edition or a series of music informations such as singer's picture, Publication Year of each audio file correspondence one or multinomial;
Synthesis unit 130 is used for the composite music file, particularly, comprising: receive by search unit 110 that provide with music file request corresponding audio files and part music information file; Reach the disappearance music information that provides by service platform 20 is provided; And the music information project of the disappearance of part music information file, search being obtained by client terminal 10 control synthesis units 130 and content thereof synthesize complete music file as the file header or the end-of-file of audio file;
Music information unit 140 extracts the music information project of the music information file in the synthesis unit 130, and judges whether it has the project of the music information of disappearance.If have, according to described disappearance music information project, produce the music information order, and described music information order is sent to service platform 20.
With reference to figure 4, described music information unit 140 includes:
Music information extraction unit 141 is used to extract the project of depositing synthesis unit 130 inner branch music information, and transfers to order generation unit 142;
Order generation unit 142, receive the music information project that music information extraction unit 141 sends, and itself and inner music information template that is provided with compared, find out the music information project of corresponding disappearance, the music information project that described music information template includes can be in big envelope, special edition or a series of music information projects such as singer's picture, Publication Year of singer, song title, the lyrics, special edition, special edition of audio file correspondence one or multinomial; If disappearance wherein or multinomial, then accordingly, produce disappearance music information order, and described disappearance music information order is sent to service platform 20, wherein, also include described music file request in the described disappearance music information order, be that information in the request of diaphone music file also is positioned in the music information order of disappearance, the music information order of disappearance can't only contain the music information project of disappearance, such as if the music file request be " searching the music of " on the moon " ", if client terminal only provides audio file and singer's name in this music, then Que Shi music information order is " lyrics of " on the moon " song; special edition; the big envelope of special edition; special edition or singer's picture; Publication Year ".
In the present embodiment, described music information extraction unit 141 is projects of extracting music information according to the part music information file in the synthesis unit 130, as other embodiment, also according to described music file request, from the audio database 120 interior projects of extracting the part music information corresponding with described music file request.
Provide system below in conjunction with music file shown in Figure 4, provide method to be described in detail music file.
At first, the user sends the music file request to client terminal 10, and described music file request includes wherein or multinomial of music informations such as singer's name, song title, album items; Described client terminal 10 control search units 110 are searched for corresponding audio files and part music information file based on described music file request in described musical database 120; Described audio file and part music information file are sent to synthesis unit 130, and described music information file comprises in big envelope, special edition or singer's picture, the Publication Year of singer, song title, the lyrics, special edition, special edition one or multinomial;
Then, the project of the part music information correspondence in 141 pairs of synthesis units of music information extraction unit 130 is extracted, and transfer to order generation unit 142, then, described order generation unit 142 compares by music information and the inner music information template that is provided with that music information extraction unit 141 is provided, and finds out the music information project of disappearance; Order generation unit 142 also according to the music information project of disappearance, generates the music information order, and described music information order is sent to service platform 20, and described music information order also includes described music file request.
As an example, such as if synthesis unit 130 in music information in, existing concrete singer, song title, album name and corresponding content thereof, the project that then extracting the music information of this music file request has had is: singer, song title, album name; In the music information template of 140 inside, music information unit, comprise: the singer, song title, the lyrics, special edition, the big envelope of special edition, special edition or singer's picture, music information projects such as Publication Year, therefore order generation unit 142 compares by music information project and the inner music information template that is provided with that music information extraction unit 141 is provided, the project that finds out the music information of disappearance is a special edition, the big envelope of special edition, special edition or singer's picture, Publication Year, generate the music information order in view of the above, and described music information order is sent to service platform 20, described music information order also includes described music file request.
Described service platform 20 is according to described music information order, the music information of search disappearance, and the music information of described disappearance provided to synthesis unit 130, described service platform 20 can be searched for the music information of described disappearance based on Internet resources or other database resources.
Wherein, service platform 20 the disappearance music information that provides and the audio file and the part music information that are temporary in inside are provided described synthesis unit 130, are sent to application apparatus 30, and the memory device as the user provides uses for the user.
Wherein, after described music file transfers to application apparatus 30 by synthesis unit 130, need to discharge the shared resource space of this music file.
The music file request that the present invention provides according to the user, corresponding audio files and music information file are provided, and can analyze music information, and draw the music information project that it lacks, and then the music information that provides correspondence to lack, the music information of described disappearance and original audio file and music information are offered the user as unified music file, satisfy user's music file demand.
Though the present invention with preferred embodiment openly as above; but it is not to be used for limiting the present invention; any those skilled in the art without departing from the spirit and scope of the present invention; can utilize the method and the technology contents of above-mentioned announcement that technical solution of the present invention is made possible change and modification; therefore; every content that does not break away from technical solution of the present invention; to any simple modification, equivalent variations and modification that above embodiment did, all belong to the protection domain of technical solution of the present invention according to technical spirit of the present invention.