Summary of the invention
In order to solve the above-mentioned technical problem or it at least is partially solved above-mentioned technical problem, the present invention provides a kind of sounds
Music file information acquisition method and device.
In a first aspect, being applied to terminal, the method packet the present invention provides a kind of music file information acquisition methods
It includes:
When monitoring the terminal plays local music file, the corresponding display information of the local music file is judged
It is whether complete;
If the corresponding display information of the local music file is imperfect, obtain that the local music file is corresponding to be lacked
It breaks one's promise breath;
Extract the characteristic information of the music file;
The corresponding missing information of the local music file is obtained according to the characteristic information.
It is optionally, described to judge whether the corresponding display information of the local music file is complete, comprising:
Obtain the file information of the local music file;
Judge whether the file information completely includes: song title, lyrics information, album name and singer informations;
If not, determining that the corresponding display information of the local music file is imperfect.
Optionally, the missing information includes following one or several kinds: song title, lyrics information, album name
And singer informations.
Optionally, the characteristic information for extracting the music file, comprising:
Extract the key message in the music file, the keyword be one kind following in the music file or
It is several: song title, the keyword in the lyrics, singer informations and album name.
Optionally, the method also includes:
Judge whether the corresponding missing information of local music file got is unique;
If not unique, the corresponding missing of local music file got described in displaying on the display screen of the terminal
Information, and will information corresponding with user's selection operation as the missing information.
Second aspect, the present invention provides a kind of music file information acquisition device, are applied to terminal, described device packet
It includes:
First judging unit, for judging the local music when monitoring the terminal plays local music file
Whether the corresponding display information of file is complete;
First information acquiring unit, for obtaining institute when the corresponding display information of the local music file is imperfect
State the corresponding missing information of local music file;
Information extraction unit, for extracting the characteristic information of the music file;
Second information acquisition unit is believed for obtaining the corresponding missing of the local music file according to the characteristic information
Breath.
Optionally, first judging unit, is specifically used for:
Obtain the file information of the local music file;
Judge whether the file information completely includes: song title, lyrics information, album name and singer informations;
If not, determining that the corresponding display information of the local music file is imperfect.
Optionally, the missing information includes following one or several kinds: song title, lyrics information, album name
And singer informations.
Optionally, the information extraction unit, is specifically used for:
Extract the key message in the music file, the keyword be one kind following in the music file or
It is several: song title, the keyword in the lyrics, singer informations and album name.
Optionally, described device further include:
Whether second judgment unit, the corresponding missing information of local music file for judging to get are unique;
Processing unit, for being obtained described in displaying on the display screen of the terminal when the missing information of acquisition is not unique
The corresponding missing information of local music file got, and information corresponding with user's selection operation is believed as the missing
Breath.
Above-mentioned technical proposal provided in an embodiment of the present invention has the advantages that compared with prior art
Music file information acquisition methods provided in an embodiment of the present invention are monitoring terminal plays local music file
When, judge whether the corresponding display information of local music file is complete;If the corresponding display information of local music file is endless
It is whole, obtain the corresponding missing information of local music file;Extract the characteristic information of music file;It is obtained according to characteristic information local
The corresponding missing information of music file.User in this way is when appreciating local music, can be with once local music the file information lacks
In time by the information completion of missing, avoid bringing adverse effect to user because of missing information.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiments of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
Member's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of music file information acquisition methods flow chart provided in an embodiment of the present invention.As shown in Figure 1, the party
Method can be applied to terminal, and this method may comprise steps of:
Step S110 judges the corresponding display letter of local music file when monitoring terminal plays local music file
It whether complete ceases.
In the embodiment of the present invention, user is when playing local music file, only music file the application in many cases,
The music file may lack correct title, and without the corresponding lyrics and album cover and singer informations etc., such user exists
When appreciating the music, it is likely that influence user experience because the corresponding display information of the local music file is imperfect.
For example, thinking retrieval and the sound when user is very interested in its broadcasting content when playing to the local music file
When relevant other music of music and songs hand, it is likely that since the local music file lacks singer's title, cause user that can not find
Other relevant music of the music, make troubles to user.
Specifically, the whether complete mode of the corresponding display information of local music file is judged in the embodiment of the present invention, it can
To specifically include:
Step S111 obtains the file information of local music file.
Step S112, judges whether the file information completely includes: song title, lyrics information, album name and singer's letter
Breath.
If not, executing step S113.
Step S113 determines that the corresponding display information of local music file is imperfect.
Since local music file was modifiable by the user in many cases, such as the title of music is modified, and the lyrics are done
Lose etc..Therefore, the embodiment of the present invention can specifically check which information the local music file all lacks, such as can sing
Song name claims, and whether search these information in lyrics information, album name and singer informations complete, if imperfect, illustrates this
Music file corresponding display information in ground is imperfect.
If the corresponding display information of local music file is imperfect, step S120 is executed.
Step S120 obtains the corresponding missing information of local music file.
At this moment in order to avoid leading to user experience because real information is imperfect because of local music file, in the embodiment of the present invention
Need to obtain which information the local music file all lacks, so as to by the missing information completion.
The missing information of local music file in the embodiment of the present invention may include following one or several kinds: song
Title, lyrics information, album name and singer informations.
Step S130 extracts the characteristic information of music file.
In order to by the missing information completion of the local music file, specifically can further may be used in the internet retrieval music
To extract the key message in music file, keyword is one or several kinds following in music file: song title, the lyrics
In keyword, singer informations and album name.
It should be noted that this feature information can represent the local music file, it, can be in net by this feature information
The corresponding missing information of the music file is searched on network.
Step S140 obtains the corresponding missing information of local music file according to characteristic information.
The embodiment of the present invention passes through the corresponding characteristic information of local music file, such as in song title or the lyrics
The information such as keyword search for the music file and corresponding information on network.
In embodiment provided by the invention, it can also be believed by the corresponding missing of the local music file for judging to get
It whether unique ceases;If not unique, the corresponding missing information of local music file got is shown on the display screen of terminal,
And will information corresponding with user's selection operation as missing information.
It in this way can be more close by these or one as there is song similar in many song perhaps lyrics of the same name
The music of sample retrieved is shown to user, allows user by further judging, the information that user is chosen is as this
The corresponding information of local music file, so as to by the corresponding missing information completion of the local music file.
Music file information acquisition methods provided in an embodiment of the present invention are monitoring terminal plays local music file
When, judge whether the corresponding display information of local music file is complete;If the corresponding display information of local music file is endless
It is whole, obtain the corresponding missing information of local music file;Extract the characteristic information of music file;It is obtained according to characteristic information local
The corresponding missing information of music file.User in this way is when appreciating local music, can be with once local music the file information lacks
In time by the information completion of missing, avoid bringing adverse effect to user because of missing information.
As the specific implementation of the above method, in another embodiment provided by the invention, a kind of music text is additionally provided
Part information acquisition device, the device are located in terminal, the apparatus may include:
First judging unit 10, for when monitoring the terminal plays local music file, judging described rock noise
Whether the corresponding display information of music file is complete;
First information acquiring unit 20, for obtaining when the corresponding display information of the local music file is imperfect
The corresponding missing information of the local music file;
Information extraction unit 30, for extracting the characteristic information of the music file;
Second information acquisition unit 40, for obtaining the corresponding missing of the local music file according to the characteristic information
Information.
In embodiment provided by the invention, first judging unit 10 is specifically used for:
Obtain the file information of the local music file;
Judge whether the file information completely includes: song title, lyrics information, album name and singer informations;
If not, determining that the corresponding display information of the local music file is imperfect.
In embodiment provided by the invention, the missing information includes following one or several kinds: song title, song
Word information, album name and singer informations.
In embodiment provided by the invention, the information extraction unit 20 is specifically used for:
Extract the key message in the music file, the keyword be one kind following in the music file or
It is several: song title, the keyword in the lyrics, singer informations and album name.
In embodiment provided by the invention, described device further include:
Whether second judgment unit, the corresponding missing information of local music file for judging to get are unique;
Processing unit, for being obtained described in displaying on the display screen of the terminal when the missing information of acquisition is not unique
The corresponding missing information of local music file got, and information corresponding with user's selection operation is believed as the missing
Breath.
It since the device corresponds to the above method, just repeats no more here, referring specifically to the corresponding implementation of the above method
Example.
Music file information acquisition device provided in an embodiment of the present invention is monitoring terminal plays local music file
When, judge whether the corresponding display information of local music file is complete;If the corresponding display information of local music file is endless
It is whole, obtain the corresponding missing information of local music file;Extract the characteristic information of music file;It is obtained according to characteristic information local
The corresponding missing information of music file.User in this way is when appreciating local music, can be with once local music the file information lacks
In time by the information completion of missing, avoid bringing adverse effect to user because of missing information.
It should be noted that, in this document, the relational terms of such as " first " and " second " or the like are used merely to one
A entity or operation with another entity or operate distinguish, without necessarily requiring or implying these entities or operation it
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to
Cover non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or setting
Standby intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in the process, method, article or apparatus that includes the element.
The above is only a specific embodiment of the invention, is made skilled artisans appreciate that or realizing this hair
It is bright.Various modifications to these embodiments will be apparent to one skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and applied principle and features of novelty phase one herein
The widest scope of cause.