CN106649642A - Song searching method, song searching system and related equipment - Google Patents

Song searching method, song searching system and related equipment Download PDF

Info

Publication number
CN106649642A
CN106649642A CN201611124314.8A CN201611124314A CN106649642A CN 106649642 A CN106649642 A CN 106649642A CN 201611124314 A CN201611124314 A CN 201611124314A CN 106649642 A CN106649642 A CN 106649642A
Authority
CN
China
Prior art keywords
song
fragment
coding
target
target song
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611124314.8A
Other languages
Chinese (zh)
Inventor
傅鸿城
周国金
栗波
袁彪
杨晨
李逸腾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Music Entertainment Technology Shenzhen Co Ltd
Original Assignee
Tencent Music Entertainment Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Music Entertainment Technology Shenzhen Co Ltd filed Critical Tencent Music Entertainment Technology Shenzhen Co Ltd
Priority to CN201611124314.8A priority Critical patent/CN106649642A/en
Publication of CN106649642A publication Critical patent/CN106649642A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/683Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content

Abstract

An embodiment of the invention provides a song searching method, a song searching system and related equipment. The song searching method includes, by a terminal, receiving feature information of target song fragments input according to preset rules, acquiring codes of the target song fragments according to the feature information of the target song fragments, sending the codes of the target song fragments to a server so as to instruct the server to determine a song collection matched with the target song fragments according to the codes of the target song fragments, and receiving the song collection sent from the sever and outputting identifiers of the songs of the song collection. By the song searching method and the song searching system, song searching can be completed rapidly while song searching precision can be increased.

Description

A kind of song search method, system and relevant device
Technical field
The present invention relates to Internet technical field, more particularly to a kind of song search method, system and relevant device.
Background technology
At present, user when song is searched for can by way of one section of humming of the related keyword of input or input reality It is existing, can also be realized by way of the numbered musical notation of one section of snatch of song of input.Wherein, numbered musical notation is referred to by the table of note numeral 1~7 The bent essential information of invitation to compose songs on a specific theme, server is matched one section of numbered musical notation string being input into the complete numbered musical notation string of song in library, And the song that will match to is used as song search result.However, existing search for the scheme of song due to numbered musical notation bag by numbered musical notation The song information for including is relatively simple, causes song search result more mixed and disorderly very accurate, often goes out in song search result Existing completely unrelated song, and the mode for directly being matched using numbered musical notation string is generally less efficient, takes longer.
The content of the invention
A kind of song search method, system and relevant device are embodiments provided, song can be rapidly completed and searched Rope, and improve the precision of song search.
Embodiment of the present invention first aspect provides a kind of song search method, including:
Terminal receives the characteristic information of the target song fragment being input into according to preset rules.
The terminal obtains the coding of the target song fragment according to the characteristic information of the target song fragment.
The terminal to server sends the coding of the target song fragment, to indicate the server according to the mesh The coding of mark snatch of song, it is determined that the song collection matched with the target song fragment.
The terminal receives the song collection that the server sends, and exports the song collection includes each The song identity of song.
Embodiment of the present invention second aspect provides a kind of song search method, including:
The coding of the target song fragment that server receiving terminal sends, the coding of the target song fragment is the end Hold what is obtained according to the characteristic information of the target song fragment.
The server according to the coding of the target song fragment, it is determined that the song matched with the target song fragment Qu Jihe.
The server to the terminal sends the song collection, to indicate that the terminal exports the song collection bag The song identity of each song for including.
The embodiment of the present invention third aspect provides a kind of terminal, including:
Receiver module, for receiving the characteristic information of the target song fragment being input into according to preset rules.
Acquisition module, for according to the characteristic information of the target song fragment, obtaining the volume of the target song fragment Code.
Sending module, for sending the coding of the target song fragment to server, with indicate the server according to The coding of the target song fragment, it is determined that the song collection matched with the target song fragment.
The receiver module, is additionally operable to receive the song collection that the server sends, and exports the song book The song identity of each song that conjunction includes.
Embodiment of the present invention fourth aspect provides a kind of server, including:
Receiver module, the coding of the target song fragment sent for receiving terminal, the coding of the target song fragment It is that the terminal is obtained according to the characteristic information of the target song fragment.
Determining module, for according to the coding of the target song fragment, it is determined that matching with the target song fragment Song collection.
Sending module, for sending the song collection to the terminal, to indicate that the terminal exports the song book The song identity of each song that conjunction includes.
The aspect of the embodiment of the present invention the 5th provides a kind of song search system, including:End described in the above-mentioned third aspect Server described in end and above-mentioned fourth aspect.
In the embodiment of the present invention, terminal receives the characteristic information of the target song fragment being input into according to preset rules, according to The characteristic information of the target song fragment, obtains the coding of the target song fragment, and sends the target song piece to server The coding of section, to indicate coding of the server according to the target song fragment, it is determined that the song matched with the target song fragment Qu Jihe, the song collection that terminal the reception server sends, and export the song mark of each song that the song collection includes Know, song search can be rapidly completed, and improve the precision of song search.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of song search method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural representation of terminal provided in an embodiment of the present invention;
Fig. 3 is the structural representation of another kind of terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of server provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another kind of server provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of song search system provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Wherein, the terminal described by the embodiment of the present invention be specifically as follows smart mobile phone, panel computer, notebook computer, Desktop computer, car-mounted terminal, intelligent wearable device etc..
Fig. 1 is referred to, is a kind of schematic flow sheet of song search method provided in an embodiment of the present invention.In the present embodiment Described song search method, comprises the following steps:
101st, terminal receives the characteristic information of the target song fragment being input into according to preset rules.
Wherein, characteristic information can specifically include numbered musical notation and/or staff, and numbered musical notation is referred to and characterized by note numeral 1~7 The essential information of song, and staff also includes the high low more abundant song information of beat, tone compared to numbered musical notation, is easy to Improve the accuracy of song search result.
In implementing, user can pass through the characteristic information that input character string is input into target song fragment, preset rules Can be:Note numeral 1~7 is represented;X dieresis numeral x represents that for example, 4 represent 1/4 note, and 8 represent 1/8 note; Plus/minus octave character A (or a)/B (or b) represents (can certainly use other character representations), and for example, A is represented plus one eight Degree, AA represents plus two octaves, and B represents an octave that subtracts, and BB represents subtract two octave, the character of plus/minus octave during standard pronunciation Omit.For example, user is " 14A " by the character string that input method is input into, then terminal determines character string according to above-mentioned preset rules The characteristic information of target song fragment that " 14A " is represented is:Note is 1,1/4 note, plus an octave.
In some feasible embodiments, user can also be input into the figure of the characteristic information including target song fragment Piece, no matter characteristic information is numbered musical notation or staff, and because figure is all relatively simple, terminal can be using image recognition technology essence The characteristic information of the target song fragment that picture includes is identified accurately, such that it is able to quickly and conveniently complete target song fragment Characteristic information input, picture can user using terminal captured in real-time picture, or terminal local store Picture, can also be the picture that users from networks is downloaded, and the embodiment of the present invention is not limited.It can be seen that, by the embodiment of the present invention The relatively simple numbered musical notation of song information not only can be input into, the staff including abundant song information can also be input into, and it is defeated Enter mode efficiently, flexibly.
102nd, the terminal obtains the volume of the target song fragment according to the characteristic information of the target song fragment Code.
Wherein, either numbered musical notation or staff can be included with properties spy the characteristic information of target song fragment Levy:Beat number (beats per minute, BMP) per minute, takes a bit bit of byte 8;Note, numbered musical notation is numeral 1 ~7, staff is the interval of five line four, takes 3bit;X dieresis, refer to the speed of note, such as 1/4 note, 1/8 note, 1/16 Note etc., takes 4bit;Section break, takes 1bit;Sharp and flat, use in staff add some points and under add some points expression, altogether There are 7, take 3bit.
In implementing, terminal from the characteristic information of target song fragment, extract target song fragment include each The characteristic information of trifle, encodes to the characteristic information of each trifle, and for the characteristic information of each trifle Hash is generated Hash values, are calculated using executable link form (Executable and Linking Format, ELF) hash Method generates hash values, obtains including the coding of the target song fragment of hash values.
So that each trifle is 4 beats as an example, then the coding situation of target song fragment is as shown in table 1:
Table 1
When terminal-pair target song fragment is encoded, BMP is placed on into the last of target song fragment coding, user is searching During rope song, if it is not known that BMP, can not be input into, (4* (3+4+3) is according to table 1 for the characteristic information of each trifle Bit=40bit) generate a hash value, by the characteristic information to target song fragment carry out above-mentioned high efficient coding realize it is right The optimization and compression of characteristic information, even if can also greatly reduce follow-up volume of transmitted data when target song fragment is longer.
103rd, the terminal to server sends the coding of the target song fragment.
104th, the server receives the coding of the target song fragment, and according to the volume of the target song fragment Code, it is determined that the song collection matched with the target song fragment.
Wherein, server side is stored with backstage library, for the hit song in the library of backstage (is such as searched in the recent period Amount/playback volume exceedes the song of predetermined threshold value) caching (such as high-performance distributed key-value buffer services can be stored in Internal memory persistent storage CMEM) in, for backstage library in relatively unexpected winner song can be stored in database, song record When entering backstage library, the characteristic informations such as the numbered musical notation of song, staff are also added in the library of backstage, and utilize step Coded system described in 102 is encoded to song, i.e., generate hash values for each trifle in song, and BMP can also It is placed on the last of song coding.It (can also be song mark that server can also set up the hash values of each trifle and song number Know) index relative, to accelerate follow-up inquiry.
In implementing, hash values that server includes the coding of target song fragment and song in the library of backstage The hash values that include of coding matched, determine that hash values include with the coding of target song fragment in the library of backstage Hash values the first song collection of identical, and it is similar to target song fragment to obtain each song in the first song collection Degree, specifically by the note of each song in the first song collection, rise flat and x dieresis respectively with the sound of target song fragment Symbol, liter flat and x dieresis are compared, and obtained note, are risen flat and the respective matching degree of x dieresis, then to note, lifting Sound and x dieresis give corresponding weight, generally, due to the effect of note is larger can to distribute larger weight, will match Degree takes product and sues for peace as similarity again with respective weights, then similarity is ranked up according to order from big to small, by phase Like degree the song of predetermined number (such as 10) above is come as the song collection matched with target song fragment, according to Hash values can determine which song is song collection include with the index relative of song number.
In some feasible embodiments, if the coding of target song fragment includes BMP, server can be first The BMP that BMP includes with the coding of song in the library of backstage is matched, the match is successful to determine in the library of backstage BMP Second song book of (the BMP deviations for for example including with the coding of target song fragment are less than 50% it is believed that the match is successful) Close, then the hash that the hash values that the coding of target song fragment is included include with the coding of song in the second song collection Value is matched, to determine the second song collection in hash values the first song collection that the match is successful, can be with by first matching BMP Determine a less song scope (i.e. the second song collection), then the matching of hash values carried out in the second song collection, Amount of calculation can be effectively reduced, accelerates song search speed.
In some feasible embodiments, server, can be by target song fragment when the matching of hash values is carried out The hash values that the hash values that coding includes first include with the coding that song is cached in the library of backstage are matched, if With success, then server is from determination hash value the first song collections that the match is successful in caching song.If matching is unsuccessful, Wrap in the hash values that server again includes the coding of target song fragment and the coding of database song in the library of backstage The hash values for including are matched, and hash value first song collections that the match is successful are determined from database song, due to Caching song is recent hit song, and the reading speed better performances for caching, first from matching coding in caching song Hash values can greatly speed up the matching speed of song, improve the song search experience of user.
In some feasible embodiments, service implement body can include web server and background server, web clothes The coding of the target song fragment that business device receiving terminal sends, web server to background server forwards target song fragment Encode, specifically the embodiment by described by background server completes step 104.Additionally, web server can be also used for end The coding (i.e. song search request) of the target song fragment that end sends is filtered, and malicious attack is prevented, while could also function as To the effect for limiting flow, prevent background server from causing service paralysis because visit capacity is excessive, so as to server side is taken using web Business device and the mode of background server combination may further ensure that the smoothness of song search service and stablize.
105th, the server sends the song collection to the terminal.
106th, the terminal receives the song collection, and exports the song mark of each song that the song collection includes Know.
In implementing, the song collection (i.e. song search result) that matching is obtained is returned to terminal, terminal by server The song identity of each song that song collection includes can be exported to user, for example, song title, singer etc., can also be same When export the numbered musical notation and/or staff of song, to enrich the form of expression of song search result.
In the embodiment of the present invention, terminal receives the characteristic information of the target song fragment being input into according to preset rules, and root According to the characteristic information of the target song fragment, the target song fragment is encoded, to obtain the volume of the target song fragment Code, then the coding of the target song fragment is sent to server, server is received after the coding of the target song fragment, according to The coding of the target song fragment, determines and the target song piece from the caching song or database song of backstage library The song collection that section matches, and the song collection is sent to terminal, and then terminal exports each song that the song collection includes Bent song identity, such that it is able to be rapidly completed song search, and improves the precision of song search.
Fig. 2 is referred to, is a kind of structural representation of terminal provided in an embodiment of the present invention.Described in the present embodiment Terminal, including:
Receiver module 201, for receiving the characteristic information of the target song fragment being input into according to preset rules.
Acquisition module 202, for according to the characteristic information of the target song fragment, obtaining the target song fragment Coding.
Sending module 203, for sending the coding of the target song fragment to server, to indicate the server root According to the coding of the target song fragment, it is determined that the song collection matched with the target song fragment.
The receiver module 201, is additionally operable to receive the song collection that the server sends, and exports the song The song identity of each song that set includes.
In some feasible embodiments, the receiver module 201, specifically for:
Receive the character string for the input of target song fragment according to preset rules.
The characteristic information of the target song fragment is determined according to the character string.
In some feasible embodiments, the receiver module 201, specifically for:
Receive the picture for the input of target song fragment.
The picture is parsed, the characteristic information of the target song fragment is obtained.
In some feasible embodiments, the acquisition module 202 includes:
Extraction unit 2020, for from the characteristic information of the target song fragment, extracting the target song fragment Including each trifle characteristic information.
Signal generating unit 2021, for generating hash values for the characteristic information of each trifle, obtains including described The coding of the target song fragment of hash values.
It is understood that each functional module of the terminal of the present embodiment, the function of unit can be implemented according to said method Method in example is implemented, and it implements the associated description that process is referred to said method embodiment, no longer goes to live in the household of one's in-laws on getting married herein State.
In the embodiment of the present invention, terminal receives the characteristic information of the target song fragment being input into according to preset rules, according to The characteristic information of the target song fragment, obtains the coding of the target song fragment, and sends the target song piece to server The coding of section, to indicate coding of the server according to the target song fragment, it is determined that the song matched with the target song fragment Qu Jihe, the song collection that terminal the reception server sends, and export the song mark of each song that the song collection includes Know, such that it is able to be rapidly completed song search, and improve the precision of song search.
Fig. 3 is referred to, is the structural representation of another kind of terminal provided in an embodiment of the present invention.Described in the present embodiment Terminal, including:Processor 301, user interface 302, network interface 303 and memory 304.Wherein, processor 301, user Interface 302, network interface 303 and memory 304 can be connected by bus or other modes, and the embodiment of the present invention is with by bus As a example by connection.
Wherein, processor 301 (or claiming CPU (Central Processing Unit, central processing unit)) is the meter of terminal Core and control core are calculated, it can parse the Various types of data of all kinds of instructions in terminal and processing terminal, for example:CPU Can be used for parsing the switching on and shutting down instruction that user is sent to terminal, and control terminal carries out switching on and shutting down operation;For another example:CPU can To transmit all kinds of interaction datas, etc. between terminal inner structure.User interface 302 is to realize that user interacts with terminal The medium exchanged with information, it embodies the display screen (Display) and the key for input that can include for output Disk (Keyboard) etc., it should be noted that keyboard herein both can be physical keyboard, or touch screen virtual key Disk, the keyboard that can also be combined with touch screen virtualphase for entity.Network interface 303 optionally can connect including the wired of standard Mouth, wave point (such as WI-FI, mobile communication interface), by the control of processor 301 transceiving data is used for.Memory 304 (Memory) it is memory device in terminal, for depositing program and data.It is understood that memory 304 herein was both The internal memory of terminal can be included, naturally it is also possible to including the extended menory that terminal is supported.Memory 304 is provided and deposited Storage space, the memory space stores the operating system of terminal, it may include but be not limited to:Windows systems (one kind operation system System), android system, IOS systems etc., the present invention is to this and is not construed as limiting.
In embodiments of the present invention, processor 301 is performed such as by the executable program code in run memory 304 Lower operation:
Processor 301, for receiving the characteristic information of the target song fragment being input into according to preset rules.
The processor 301, is additionally operable to the characteristic information according to the target song fragment, obtains the target song piece The coding of section.
Network interface 303, for sending the coding of the target song fragment to server, to indicate the server root According to the coding of the target song fragment, it is determined that the song collection matched with the target song fragment.
The network interface 303, is additionally operable to receive the song collection that the server sends, and exports the song The song identity of each song that set includes.
In some feasible embodiments, the processor 301, specifically for:
Character string according to preset rules for the input of target song fragment is received by user interface 302.
The characteristic information of the target song fragment is determined according to the character string.
In some feasible embodiments, the processor 301, specifically for:
Receive the picture for the input of target song fragment.
The picture is parsed, the characteristic information of the target song fragment is obtained.
In some feasible embodiments, the processor 301, specifically for:
From the characteristic information of the target song fragment, the spy of each trifle that the target song fragment includes is extracted Reference ceases.
Hash values are generated for the characteristic information of each trifle, obtains including the target song of the hash values The coding of fragment.
In implementing, processor 301, user interface 302, network interface 303 described in the embodiment of the present invention and Memory 304 can perform the implementation described in a kind of flow process of song search method provided in an embodiment of the present invention, The implementation described in a kind of terminal provided in an embodiment of the present invention is can perform, be will not be described here.
In the embodiment of the present invention, terminal receives the characteristic information of the target song fragment being input into according to preset rules, according to The characteristic information of the target song fragment, obtains the coding of the target song fragment, and sends the target song piece to server The coding of section, to indicate coding of the server according to the target song fragment, it is determined that the song matched with the target song fragment Qu Jihe, the song collection that terminal the reception server sends, and export the song mark of each song that the song collection includes Know, such that it is able to be rapidly completed song search, and improve the precision of song search.
Fig. 4 is referred to, is a kind of structural representation of server provided in an embodiment of the present invention.Described in the present embodiment Server, including:
Receiver module 401, the coding of the target song fragment sent for receiving terminal, the volume of the target song fragment Code is that the terminal is obtained according to the characteristic information of the target song fragment.
Determining module 402, for according to the coding of the target song fragment, it is determined that with the target song fragment phase The song collection matched somebody with somebody.
Sending module 403, for sending the song collection to the terminal, to indicate that the terminal exports the song The song identity of each song that set includes.
In some feasible embodiments, the determining module 402 includes:
Matching unit 4020, in the hash values that include the coding of the target song fragment and backstage library The hash values that the coding of song includes are matched, and determine hash values the first song that the match is successful in the backstage library Set.
Acquiring unit 4021, for obtaining first song collection in each song and the target song fragment phase Like degree.
Sequencing unit 4022, for the similarity to be ranked up according to order from big to small, by the similarity The song of predetermined number above is come as the song collection matched with the target song fragment.
In some feasible embodiments, the matching unit 4020, specifically for:
If the coding of the target song fragment includes BMP, by the coding of song in the BMP and backstage library The BMP for including is matched.
Determine BMP the second song collections that the match is successful in the backstage library, and by the target song fragment The hash values that the hash values that coding includes include with the coding of song in second song collection are matched, and determine institute State the first song collection that the match is successful of hash values in the second song collection.
In some feasible embodiments, the matching unit 4020, specifically for:
During the coding of song is cached in the hash values that the coding of the target song fragment is included and backstage library Including hash values matched.
If the match is successful, from the caching song hash value the first song collections that the match is successful are determined.
If matching is unsuccessful, the hash values that the coding of the target song fragment is included and the backstage library The hash values that the coding of middle database song includes are matched, and determine that hash values are matched into from the database song First song collection of work(.
It is understood that each functional module of the server of the present embodiment, the function of unit can be according to said method realities The method applied in example is implemented, and it implements the associated description that process is referred to said method embodiment, herein no longer Repeat.
In the embodiment of the present invention, the coding of the target song fragment that server receiving terminal sends, the target song fragment Coding to be terminal obtain according to the characteristic information of the target song fragment, volume of the server according to the target song fragment Code, it is determined that the song collection matched with the target song fragment, and the song collection is sent to terminal, with instruction terminal output The song identity of each song that the song collection includes, such that it is able to be rapidly completed song search, and improves song search Precision.
Fig. 5 is referred to, is the structural representation of another kind of server provided in an embodiment of the present invention.Retouched in the present embodiment The server stated, including:Processor 501, network interface 502 and memory 503.Wherein, processor 501, network interface 502 and Memory 503 can be connected by bus or other modes, and the embodiment of the present invention by bus as a example by being connected.
Wherein, processor 501 (or claiming central processing unit (Central Processing Unit, CPU)) is server Calculate core and control core.Network interface 502 can optionally include wireline interface, the wave point of standard (such as WI- FI, mobile communication interface etc.), it is used for transceiving data by the control of processor 501.Memory 503 (Memory) is server Memory device, for depositing program and data.It is understood that memory 503 herein can be high-speed RAM memory, Can also be non-labile memory (non-volatile memory), for example, at least one magnetic disc store;It is optional to go back It can be at least one storage device for being located remotely from aforementioned processor 501.Memory 503 provides memory space, and the storage is empty Between store the operating system and executable program code of server, it may include but be not limited to:(one kind operation of Windows systems System), Linux (a kind of operating system) system etc., the present invention is to this and is not construed as limiting.
In embodiments of the present invention, processor 501 is performed such as by the executable program code in run memory 503 Lower operation:
Network interface 502, the coding of the target song fragment sent for receiving terminal, the volume of the target song fragment Code is that the terminal is obtained according to the characteristic information of the target song fragment.
Processor 501, for according to the coding of the target song fragment, it is determined that matching with the target song fragment Song collection.
The network interface 502, is additionally operable to send the song collection to the terminal, to indicate the terminal output institute State the song identity of each song that song collection includes.
In some feasible embodiments, the processor 501, specifically for:
The hash values that the coding of the target song fragment is included include with the coding of song in the library of backstage Hash values matched, determine hash values the first song collection that the match is successful in the backstage library.
Obtain the similarity of each song and the target song fragment in first song collection.
The similarity is ranked up according to order from big to small, the similarity is come into predetermined number above Song as the song collection matched with the target song fragment.
In some feasible embodiments, the processor 501, specifically for:
If the coding of the target song fragment includes BMP, by the coding of song in the BMP and backstage library The BMP for including is matched.
Determine BMP the second song collections that the match is successful in the backstage library, and by the target song fragment The hash values that the hash values that coding includes include with the coding of song in second song collection are matched, and determine institute State the first song collection that the match is successful of hash values in the second song collection.
In some feasible embodiments, the processor 501, specifically for:
During the coding of song is cached in the hash values that the coding of the target song fragment is included and backstage library Including hash values matched.
If the match is successful, from the caching song hash value the first song collections that the match is successful are determined.
If matching is unsuccessful, the hash values that the coding of the target song fragment is included and the backstage library The hash values that the coding of middle database song includes are matched, and determine that hash values are matched into from the database song First song collection of work(.
In implementing, the processor 501, network interface 502 and memory 503 described in the embodiment of the present invention can be held Implementation described in a kind of row flow process of song search method provided in an embodiment of the present invention, also can perform the present invention real Implementation described in a kind of server of example offer is provided, be will not be described here.
In the embodiment of the present invention, the coding of the target song fragment that server receiving terminal sends, the target song fragment Coding to be terminal obtain according to the characteristic information of the target song fragment, volume of the server according to the target song fragment Code, it is determined that the song collection matched with the target song fragment, and the song collection is sent to terminal, with instruction terminal output The song identity of each song that the song collection includes, such that it is able to be rapidly completed song search, and improves song search Precision.
Fig. 6 is referred to, is a kind of structural representation of song search system provided in an embodiment of the present invention.In the present embodiment Described song search system, including:Terminal 601 and server 602, wherein:
Terminal 601, for receiving the characteristic information of the target song fragment being input into according to preset rules.
The terminal 601, is additionally operable to the characteristic information according to the target song fragment, obtains the target song fragment Coding.
The terminal 601, is additionally operable to send the coding of the target song fragment to server 602.
The server 602, for receiving the coding of the target song fragment, and according to the target song fragment Coding, it is determined that the song collection matched with the target song fragment.
The server 602, is additionally operable to send the song collection to the terminal 601.
The terminal 601, is additionally operable to receive the song collection, and exports each song that the song collection includes Song identity.
Terminal 601 and server 602 described in the embodiment of the present invention can perform one kind provided in an embodiment of the present invention Implementation described in the flow process of song search method, will not be described here.
In the embodiment of the present invention, terminal receives the characteristic information of the target song fragment being input into according to preset rules, and root According to the characteristic information of the target song fragment, the target song fragment is encoded, to obtain the volume of the target song fragment Code, then the coding of the target song fragment is sent to server, server is received after the coding of the target song fragment, according to The coding of the target song fragment, determines and the target song piece from the caching song or database song of backstage library The song collection that section matches, and the song collection is sent to terminal, and then terminal exports each song that the song collection includes Bent song identity, such that it is able to be rapidly completed song search, and improves the precision of song search.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, can be Related hardware is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosed is only a kind of preferred embodiment of the invention, can not limit the power of the present invention with this certainly Sharp scope, one of ordinary skill in the art will appreciate that all or part of flow process of above-described embodiment is realized, and according to present invention power Profit requires made equivalent variations, still falls within the covered scope of invention.

Claims (18)

1. a kind of song search method, it is characterised in that include:
Terminal receives the characteristic information of the target song fragment being input into according to preset rules;
The terminal obtains the coding of the target song fragment according to the characteristic information of the target song fragment;
The terminal to server sends the coding of the target song fragment, to indicate that the server is sung according to the target The coding of knee-piece section, it is determined that the song collection matched with the target song fragment;
The terminal receives the song collection that the server sends, and exports each song that the song collection includes Song identity.
2. method according to claim 1, it is characterised in that the terminal receives the target song being input into according to preset rules The characteristic information of knee-piece section, including:
Terminal receives the character string according to preset rules for the input of target song fragment;
The terminal determines the characteristic information of the target song fragment according to the character string.
3. method according to claim 1, it is characterised in that the terminal receives the target song being input into according to preset rules The characteristic information of knee-piece section, including:
Terminal receives the picture for the input of target song fragment;
Picture described in the terminal-pair is parsed, and obtains the characteristic information of the target song fragment.
4. the method according to any one of claims 1 to 3, it is characterised in that the terminal is according to the target song The characteristic information of fragment, obtains the coding of the target song fragment, including:
The terminal extracts each trifle that the target song fragment includes from the characteristic information of the target song fragment Characteristic information;
The terminal generates Hash hash values for the characteristic information of each trifle, obtains including the described of the hash values The coding of target song fragment.
5. method according to claim 1, it is characterised in that
The characteristic information includes numbered musical notation and/or staff.
6. a kind of song search method, it is characterised in that include:
The coding of the target song fragment that server receiving terminal sends, the coding of the target song fragment is the terminal root Obtain according to the characteristic information of the target song fragment;
The server according to the coding of the target song fragment, it is determined that the song book matched with the target song fragment Close;
The server to the terminal sends the song collection, to indicate that the terminal exports what the song collection included The song identity of each song.
7. method according to claim 6, it is characterised in that volume of the server according to the target song fragment Code, it is determined that the song collection matched with the target song fragment, including:
The coding of hash values that the server includes the coding of the target song fragment and song in the library of backstage The hash values for including are matched, and determine hash values the first song collection that the match is successful in the backstage library;
The server obtains the similarity of each song and the target song fragment in first song collection;
The server is ranked up the similarity according to order from big to small, by the similarity come above it is pre- If the song of quantity is used as the song collection matched with the target song fragment.
8. method according to claim 7, it is characterised in that the server is by the coding of the target song fragment Including the hash values that include with the coding of song in the library of backstage of hash values matched, determine the backstage library Middle hash values the first song collection that the match is successful, including:
If the coding of the target song fragment includes beat number BMP per minute, the server by the BMP with it is rear The BMP that the coding of song includes in platform library is matched;
The server determines BMP the second song collections that the match is successful in the backstage library, and by the target song The hash values that the hash values that the coding of fragment includes include with the coding of song in second song collection are matched, Determine hash values the first song collection that the match is successful in second song collection.
9. method according to claim 7, it is characterised in that the server is by the coding of the target song fragment Including the hash values that include with the coding of song in the library of backstage of hash values matched, determine the backstage library Middle hash values the first song collection that the match is successful, including:
Song is cached in the hash values that the server includes the coding of the target song fragment and backstage library The hash values that coding includes are matched;
If the match is successful, the server determines hash value the first song collections that the match is successful from the caching song;
If matching is unsuccessful, the hash values that the server includes the coding of the target song fragment and the backstage The hash values that the coding of database song includes in library are matched, and hash values are determined from the database song First song collection that the match is successful.
10. a kind of terminal, it is characterised in that include:
Receiver module, for receiving the characteristic information of the target song fragment being input into according to preset rules;
Acquisition module, for according to the characteristic information of the target song fragment, obtaining the coding of the target song fragment;
Sending module, for sending the coding of the target song fragment to server, to indicate the server according to described The coding of target song fragment, it is determined that the song collection matched with the target song fragment;
The receiver module, is additionally operable to receive the song collection that the server sends, and exports the song collection bag The song identity of each song for including.
11. terminals according to claim 10, it is characterised in that the receiver module, specifically for:
Receive the character string for the input of target song fragment according to preset rules;
The characteristic information of the target song fragment is determined according to the character string.
12. terminals according to claim 10, it is characterised in that the receiver module, specifically for:
Receive the picture for the input of target song fragment;
The picture is parsed, the characteristic information of the target song fragment is obtained.
13. terminals according to any one of claim 10~12, it is characterised in that the acquisition module includes:
Extraction unit, for from the characteristic information of the target song fragment, it is every that the extraction target song fragment includes The characteristic information of individual trifle;
Signal generating unit, for generating hash values for the characteristic information of each trifle, obtains including the institute of the hash values State the coding of target song fragment.
14. a kind of servers, it is characterised in that include:
Receiver module, the coding of the target song fragment sent for receiving terminal, the coding of the target song fragment is institute State what terminal was obtained according to the characteristic information of the target song fragment;
Determining module, for according to the coding of the target song fragment, it is determined that the song matched with the target song fragment Qu Jihe;
Sending module, for sending the song collection to the terminal, to indicate that the terminal exports the song collection bag The song identity of each song for including.
15. servers according to claim 14, it is characterised in that the determining module includes:
Matching unit, for the volume of the hash values that include the coding of the target song fragment and song in the library of backstage The hash values that code includes are matched, and determine hash values the first song collection that the match is successful in the backstage library;
Acquiring unit, for obtaining first song collection in each song and the target song fragment similarity;
Sequencing unit, for the similarity to be ranked up according to order from big to small, the similarity is come before Predetermined number song as the song collection matched with the target song fragment.
16. servers according to claim 15, it is characterised in that the matching unit, specifically for:
If the coding of the target song fragment includes BMP, will wrap in the coding of song in the BMP and backstage library The BMP for including is matched;
Determine BMP the second song collections that the match is successful in the backstage library, and by the coding of the target song fragment The hash values that the hash values for including include with the coding of song in second song collection are matched, and determine described Hash values the first song collection that the match is successful in two song collections.
17. servers according to claim 15, it is characterised in that the matching unit, specifically for:
The hash values that the coding of the target song fragment is included include with the coding of caching song in the library of backstage Hash values matched;
If the match is successful, from the caching song hash value the first song collections that the match is successful are determined;
If matching is unsuccessful, count in the hash values that the coding of the target song fragment is included and the backstage library The hash values included according to the coding of storehouse song are matched, and determine what the match is successful for hash values from the database song First song collection.
18. a kind of song search systems, it is characterised in that include:Terminal as any one of claim 10~13 and Server as any one of claim 14~17.
CN201611124314.8A 2016-12-08 2016-12-08 Song searching method, song searching system and related equipment Pending CN106649642A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611124314.8A CN106649642A (en) 2016-12-08 2016-12-08 Song searching method, song searching system and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611124314.8A CN106649642A (en) 2016-12-08 2016-12-08 Song searching method, song searching system and related equipment

Publications (1)

Publication Number Publication Date
CN106649642A true CN106649642A (en) 2017-05-10

Family

ID=58818832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611124314.8A Pending CN106649642A (en) 2016-12-08 2016-12-08 Song searching method, song searching system and related equipment

Country Status (1)

Country Link
CN (1) CN106649642A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107622090A (en) * 2017-08-22 2018-01-23 上海艾融软件股份有限公司 Acquisition methods, the apparatus and system of object
CN111338598A (en) * 2020-03-09 2020-06-26 南京维沃软件技术有限公司 Message processing method and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070250899A1 (en) * 2006-04-11 2007-10-25 Veotag, Inc. Nondestructive self-publishing video editing system
CN101140580A (en) * 2007-09-24 2008-03-12 武汉大学 Music searching method
CN101344887A (en) * 2008-06-06 2009-01-14 网易有道信息技术(北京)有限公司 Audio search method and device
CN101506808A (en) * 2006-08-31 2009-08-12 索尼爱立信移动通讯有限公司 System and method for searching based on audio search criteria
CN103440313A (en) * 2013-08-27 2013-12-11 复旦大学 Music retrieval system based on audio fingerprint features
CN104598515A (en) * 2014-12-03 2015-05-06 百度在线网络技术(北京)有限公司 Song searching method, device and system
CN105630831A (en) * 2014-11-06 2016-06-01 科大讯飞股份有限公司 Humming retrieval method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070250899A1 (en) * 2006-04-11 2007-10-25 Veotag, Inc. Nondestructive self-publishing video editing system
CN101506808A (en) * 2006-08-31 2009-08-12 索尼爱立信移动通讯有限公司 System and method for searching based on audio search criteria
CN101140580A (en) * 2007-09-24 2008-03-12 武汉大学 Music searching method
CN101344887A (en) * 2008-06-06 2009-01-14 网易有道信息技术(北京)有限公司 Audio search method and device
CN103440313A (en) * 2013-08-27 2013-12-11 复旦大学 Music retrieval system based on audio fingerprint features
CN105630831A (en) * 2014-11-06 2016-06-01 科大讯飞股份有限公司 Humming retrieval method and system
CN104598515A (en) * 2014-12-03 2015-05-06 百度在线网络技术(北京)有限公司 Song searching method, device and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107622090A (en) * 2017-08-22 2018-01-23 上海艾融软件股份有限公司 Acquisition methods, the apparatus and system of object
CN111338598A (en) * 2020-03-09 2020-06-26 南京维沃软件技术有限公司 Message processing method and electronic equipment
CN111338598B (en) * 2020-03-09 2023-10-13 南京维沃软件技术有限公司 Message processing method and electronic equipment

Similar Documents

Publication Publication Date Title
KR102110057B1 (en) Song confirmation method and device, storage medium
US9613147B2 (en) Collection of telemetry data by a telemetry library within a client device
CN102693272B (en) Keyword extraction from uniform resource locators (URLs)
CN103678702B (en) Video duplicate removal method and device
CN105095211B (en) The acquisition methods and device of multi-medium data
JP2019212290A (en) Method and device for processing video
CN111563216B (en) Local data caching method and device and related equipment
CN105895090A (en) Voice signal processing method and device
CN102185762B (en) Method for recognizing, extracting user data sending behavior
CN110347790B (en) Text duplicate checking method, device and equipment based on attention mechanism and storage medium
WO2014108004A1 (en) Method and system for identifying microblog user identity
JP2007124561A (en) Data compression method and compressed data transmission method
US20110047249A1 (en) Determining a property of a communication device
CN104598502A (en) Method, device and system for obtaining background music information in played video
CN109460499A (en) Target search word generation method and device, electronic equipment, storage medium
CN111241496B (en) Method and device for determining small program feature vector and electronic equipment
CN114817651B (en) Data storage method, data query method, device and equipment
CN106649642A (en) Song searching method, song searching system and related equipment
CN113516961A (en) Note generation method, related device, storage medium and program product
US20100235319A1 (en) Method and System for Converting Virtual Item
KR100916310B1 (en) System and Method for recommendation of music and moving video based on audio signal processing
KR20110017760A (en) System for extracting multimedia contents descriptor and method therefor
CN111242494B (en) Patent infringement detection method and system based on game theory
CN112836057B (en) Knowledge graph generation method, device, terminal and storage medium
CN114756901B (en) Operational risk monitoring method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510