Summary of the invention
The problem to be solved in the present invention is to meet the whole music file demand of user, improves user simultaneously and obtain the convenience of music file.
For addressing the above problem, the invention provides a kind of music file supplying method, comprising:
Receive music file request;
Resolve described music file request, generate corresponding music file order;
Search audio file and the part music information file thereof corresponding with described music file order for the first time;
Music information template is provided, by the part music information file of searching for for the first time acquisition in contrast, obtains the project of another part music information lacking in 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 for the second time, and the content of the music information project of the disappearance that described disappearance music information project and search are obtained and described audio file and part music information file synthesis are complete music file.
Optionally, described search for the first time audio file and the part music information file thereof corresponding with music file order is to search for based on Internet resources.
Optionally, the content of the music information project of described search disappearance is for the second time to search for based on Internet resources.
Optionally, will before described part music information file and music information template contrast step, also comprise the music information project step in Extraction parts music information file.
Optionally, described in synthesize complete music file and specifically comprise music information project and the content thereof of part music information file, disappearance, after 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 comprises client terminal and service platform, wherein,
Client terminal, for receiving music file request, resolves music file request and generates music file order, and described music file order is sent to service platform; Receive described service platform and search for for the first time audio file and the part music information of acquisition; Music information template is provided, by described part music information file in contrast, obtains the project of another part music information lacking in part music information file; According to the project of the music information of described disappearance, generate disappearance music information order and be sent to service platform; The music information project of disappearance and service platform being searched for for the second time to the content of music information project of the disappearance of acquisition and described audio file and part music information file synthesis is complete music file, and described music file is provided to user;
Service platform, for receiving the music file order that client terminal sends, search audio file and the music information file corresponding with described music file order for the first time, and described audio file and the part music information file of searching for for the first time acquisition are sent to client terminal; Receive the disappearance music information order that client terminal sends, search for for the second time the content of the music information project of disappearance according to described music information order, and the music information contents of a project of the disappearance of the music information project of disappearance and search acquisition are for the second time sent to client terminal.
Optionally, described client terminal further comprises:
Resolution unit, for resolving described music file request, generates music file order, and described music file order is sent to described service platform;
Synthesis unit, receives service platform and searches for for the first time the audio file corresponding with music file order and the part music information file of acquisition; Receive the content of being searched for for the second time the music information project of the disappearance of acquisition by service platform; The music information project of disappearance and service platform being searched for for the second time to the content of music information project of the disappearance of acquisition and described audio file and part music information file synthesis is complete music file.
Optionally, described client terminal also comprises music information unit, be used for the project of the part music information that extracts synthesis unit, and judge whether it has the music information of disappearance, if had, according to described disappearance music information project, produce disappearance music information order, and described disappearance music information order is sent to service platform.
Optionally, described music information unit comprises music information extraction unit and order generation unit,
Music information extraction unit, for extracting the project of the part music information in synthesis unit, and transfers to order generation unit;
Order generation unit, the part music information project sending for receiving music information extraction unit, and by itself and the inner music information template contrast arranging, find out the music information project of disappearance, according to the music information project of 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: big envelope, special edition or singer's picture of singer, song title, the lyrics, special edition, special edition, Publication Year.
Optionally, when client terminal provides complete music file to user, discharge the resource space that this complete music file takies.
Optionally, described service platform is searched for the audio file corresponding with described music file order and part music information file is to search for based on Internet resources for the first time.
Optionally, the content of the music information project of described search disappearance is to search for based on Internet resources for the second time.
Compared with prior art, the present invention has the following advantages: the music file request providing according to user, corresponding audio file and part music information file is provided, and can analyze 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 to user as unified music file, meet user's music file demand, improve user simultaneously and obtain the convenience of music file.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can more be become apparent, below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail.
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 without prejudice to intension of the present invention in the situation that.Therefore the present invention is not subject to the restriction of following public embodiment.
The invention provides a kind of music file supplying method, comprising: receive music file request; Resolve described music file request, generate corresponding music file order; Search audio file and the part music information file thereof corresponding with described music file order for the first time; Music information template is provided, by the part music information file of searching for for the first time acquisition in contrast, obtains the project of another part music information lacking in 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 for the second time, and by described disappearance music information project and the content of the music information project of the disappearance that search is obtained for the second time and described audio file and part music information file synthesis be complete music file.
Below in conjunction with accompanying drawing, music file generation method of the present invention is elaborated.
Execution step S101, receives music file request, and according to described music file request, generates corresponding music file order.Described music file request is sent by user, comprise corresponding title of the song, singer's name or the album name etc. of music file that user need to obtain, by described music file request, user wishes to obtain corresponding with it music file, and described music file comprises the audio file corresponding with music file request and music information file.
Execution step S102, according to described music file order, provides the audio file corresponding with described music file order and the music information file of part.Wherein, for the music file request of part, corresponding audio file and part music information file are searched for for the first time to obtain based on Internet resources or other database resources and are provided; For the music file request of another part, Internet resources or other database resources are searched for for the first time according to described music file order, and corresponding audio file only can be provided, and corresponding music information file all lacks.
Execution step S103, provides music information template, and contrasts with above-mentioned part music information file.Wherein, will before described part music information file and music information template contrast step, also comprise the music information project step in Extraction parts music information file.Described music information template includes predefined a series of music information project, described music information project comprises as follows: singer, song title, the lyrics, special edition, the big envelope of special edition, special edition or singer's picture, Publication Year etc., the corresponding part music information file with music file request that described music information template is provided with step S102 contrasts, the project of the music information lacking in provided part music information file is provided, as lacked singer, song title, the lyrics, special edition, the big envelope of special edition, special edition or singer's picture, one or more in the music informations such as Publication Year.
Execution 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, also includes the music file request that user provides.
Execution step S105, provides disappearance music information according to described music information order.Particularly, according to the project of the music information comprising in music information order, and the music file request wherein comprising, by Internet resources or other database resources, the search content corresponding with the project of music information lacking for the second time, one or more 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.
Execution step S106 is complete music file by the music information of described disappearance and above-mentioned audio file and part music information file synthesis.Described synthesizing comprises that by the audio file providing in the disappearance music information providing and step S102 and part music information file synthesis be unified form.Described form is applicable to user's identification.If the music information file in MP3 format is ID3 form, using described ID3 file as file header or end-of-file be positioned in audio file, provide to user as a file.
Execution step S107, provides the music file after synthetic to user, in the memory device that user provides as deposited 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 supplying method of above-mentioned music file, a kind of system that provides of music file is also 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.The music file request that music file of the present invention provides system to send for receiving user, and generate music file according to described music file request, finally provide to application apparatus 30.
The service platform 20 that described music file provides system specifically to comprise client terminal 10 and be connected with client terminal 10, wherein, client terminal 10, receive the music file request that user sends, and resolve described music file request, and generate corresponding music file order, described music file order is sent to service platform 20; Receive audio file and part music information that described service platform 20 provides; Music information template is provided, by described part music information file in contrast, obtains the project of another part music information lacking in part music information file; According to the project of the music information of described disappearance, generate disappearance music information order and be sent to service platform 20; The music information project of disappearance and service platform 20 being searched for for the second time to the content of music information project of the disappearance obtaining and described audio file and part music information file synthesis is complete music file, described music file is provided to user, be the application apparatus 30 that user provides, as memory device etc.;
Service platform 20, receive the music file order that client terminal 10 sends, according to described music file order, search for for the first time the audio file corresponding with described music file order and music information file based on internet or other databases, and described audio file and part music information file are sent to client terminal 10; Described service platform 20 also receives the disappearance music information order that client terminal 10 sends, according to described disappearance music information order, search for for the second time disappearance music information file based on internet or other databases, and described disappearance music information file is sent to client terminal 10.
With reference to figure 3, described client terminal 10 inside specifically comprise:
Resolution unit 110, client terminal 10 receives described music file request, control described resolution unit 110 described music file request is resolved, comprise the key word extracting in described music file request, generate music file order and be sent to described service platform 20.In described music file request and music file order, include the wherein one or more of the music informations such as singer's name, song title, album items;
Synthesis unit 120, service platform 20 audio file corresponding with music file order that provide and part music information file is provided, and is stored in synthesis unit 120; The disappearance music information being provided by service platform 20 is provided; The disappearance music information that the audio file of storing before inside and music information file and service platform 20 are provided synthesizes music file, provides to user;
Music information unit 130, extracts the music information project of the music information file of storage in synthesis unit 120, and judges whether it has the project of the music information of disappearance.If had, according to described disappearance music information project, produce music information order, and described order is sent to service platform 20.
With reference to figure 4, described music information unit 130 includes:
Music information extraction unit 131, for extracting the project of the music information in synthesis unit 120, and transfers to order generation unit 132;
Order generation unit 132, receive the music information project that music information extraction unit 131 sends, and itself and the inner music information template arranging are compared, find out the music information project of corresponding disappearance, described music information project can be one or more in a series of music information projects such as big envelope, special edition or singer's picture, the Publication Year of singer that the audio file in synthesis unit 120 is corresponding, song title, the lyrics, special edition, special edition; If wherein one or more of disappearance, accordingly, produces disappearance music information order, and described disappearance music information order is sent to service platform 20, wherein, described disappearance music information order also includes described music file request.
Provide system below in conjunction with the music file shown in Fig. 4, music file supplying method is described in detail.
First, user sends music file request to client terminal 10, described client terminal 10 is controlled described resolution unit 110 and is resolved music file request, and described music file request includes the wherein one or more of the music informations such as singer's name, song title, album items; Resolution unit 110 is resolved described music file request, generates described music file order, and described music file order is sent to service platform 20; Described service platform 20, based on Internet resources or other database resources, is searched for for the first time music file and the music information thereof corresponding with described music file order, and above-mentioned music file and music information is sent to described synthesis unit 120;
Audio file that provide and that described music file order is corresponding and part music information file by service platform 20 are provided described synthesis unit 120, and be stored in described synthesis unit 120, described music information file comprises one or more in big envelope, special edition or singer's picture, the Publication Year of singer, song title, the lyrics, special edition, special edition;
Then, music information extraction unit 131 extracts project corresponding to music information being stored in synthesis unit 120, and transfer to order generation unit 132, then, described order generation unit 132 contrasts by music information and the inner music information template arranging that music information extraction unit 131 is provided, and finds out the music information project of disappearance, order generation unit 132 is also according to the music information project of disappearance, generate music information order, described music information order is sent to service platform 20, in described music information order, also include described music file request, be that information in the request of diaphone music file is also positioned in the music information order of disappearance, the music information order of disappearance can't only contain the music information project of disappearance, if such as music file request is " searching the music of " on the moon " ", if client terminal only provides audio file and singer's name in this music, the music information order of disappearance is the " lyrics of " on the moon " song, special edition, the big envelope of special edition, special edition or singer's picture, Publication Year ".
As an example, if in the music information in synthesis unit 120, existing concrete singer, song title, album name and corresponding content thereof, the project that extracting the music information of this music file request has had is: singer, song title, album name, music information template in 130 inside, music information unit comprises: singer, song title, the lyrics, special edition, the big envelope of special edition, special edition or singer's picture, the music information projects such as Publication Year, therefore order generation unit 132 contrasts by music information project and the inner music information template arranging that music information extraction unit 131 is provided, the project that finds out the music information of disappearance is special edition, the big envelope of special edition, special edition or singer's picture, Publication Year, generate accordingly music information order, 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 for the second time, and the music information of described disappearance is provided to synthesis unit 120, described service platform 20 can, based on Internet resources or other database resources, be searched for the music information of described disappearance for the second time.
Wherein, the disappearance music information that described synthesis unit 120 provides service platform 20 and be temporary in inner audio file and part music information synthesizes, forms unified music file, and provides to user;
When described music file is provided to user by client terminal 10, need to discharge this music file, comprise the resource space that audio file and music information are shared.
In the present embodiment, the resolution unit of described generation music file order and be two unit for the order generation unit that generates disappearance music information order, as other embodiment, also can be integrated in an order generation unit, does not describe in detail herein.
Although the present invention with preferred embodiment openly as above; but it is not for limiting the present invention; any those skilled in the art without departing from the spirit and scope of the present invention; can utilize method and the technology contents of above-mentioned announcement to make possible variation and amendment to technical solution of the present invention; therefore; every content that does not depart from technical solution of the present invention; any simple modification, equivalent variations and the modification above embodiment done according to technical spirit of the present invention, all belong to the protection domain of technical solution of the present invention.