CN109710797A - Method for pushing, device, electronic device and the storage medium of audio file - Google Patents

Method for pushing, device, electronic device and the storage medium of audio file Download PDF

Info

Publication number
CN109710797A
CN109710797A CN201811354706.2A CN201811354706A CN109710797A CN 109710797 A CN109710797 A CN 109710797A CN 201811354706 A CN201811354706 A CN 201811354706A CN 109710797 A CN109710797 A CN 109710797A
Authority
CN
China
Prior art keywords
audio file
target
note
tone
range scope
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.)
Granted
Application number
CN201811354706.2A
Other languages
Chinese (zh)
Other versions
CN109710797B (en
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 Technology Shenzhen Co Ltd
Original Assignee
Tencent 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 Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201811354706.2A priority Critical patent/CN109710797B/en
Publication of CN109710797A publication Critical patent/CN109710797A/en
Application granted granted Critical
Publication of CN109710797B publication Critical patent/CN109710797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)

Abstract

The invention discloses a kind of method for pushing of audio file, device, electronic device and storage mediums.Wherein, this method comprises: receiving the play instruction that target account number issues, wherein play instruction is used to indicate the audio file for playing and having first identifier;The range scope of target account number is obtained according to the history singing data of target account number;In response to play instruction, the target audio file with first identifier is searched according to range scope, wherein the range of target audio file matches with range scope;Target audio file is pushed to target account number.The present invention solves the technical problem of push audio file inaccuracy.

Description

Method for pushing, device, electronic device and the storage medium of audio file
Technical field
The present invention relates to MultiMedia Fields, fill in particular to the method for pushing, device, electronics of a kind of audio file It sets and storage medium.
Background technique
The accompaniment suggested design of singing software is substantially the recommendation based on user's portrait at present.And based on user's portrait Recommend, most crucial algorithm is namely based on the personalized recommendation algorithm of user's program request historical behavior analysis.User requests tune in history, It can be found with tag attributes such as accompaniment type (love song, song of pursuing a goal with determination etc.), accompanying song original singer, accompaniments according to tag attributes The data for meeting the tag attributes in user's program request history, return to user, complete accompaniment and recommend.
At present sing accompaniment the most important defect of recommended technology be: using user request tune history tag attributes data with And the tag attributes in accompaniment library carry out matching recommendation, but since attributive classification is not comprehensive, the content of recommendation is not accurate enough, The accompaniment that suitable user sings can not be matched to.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of method for pushing of audio file, device, electronic device and storage mediums, so that Few technical problem for solving push audio file inaccuracy.
According to an aspect of an embodiment of the present invention, a kind of method for pushing of audio file is provided, comprising: receive target The play instruction that account number issues, wherein play instruction is used to indicate the audio file for playing and having first identifier;According to target account Number history singing data obtain target account number range scope;In response to play instruction, being searched according to range scope has the The target audio file of one mark, wherein the range of target audio file matches with range scope;Mesh is pushed to target account number Mark with phonetic symbols frequency file.
According to another aspect of an embodiment of the present invention, a kind of driving means of audio file is additionally provided, comprising: receive single Member, for receiving the play instruction of target account number sending, wherein play instruction is used to indicate the audio for playing and having first identifier File;Acquiring unit, for obtaining the range scope of target account number according to the history singing data of target account number;Searching unit, For searching the target audio file with first identifier according to range scope in response to play instruction, wherein target audio text The range of part matches with range scope;First push unit, for pushing target audio file to target account number.
One side according to an embodiment of the present invention additionally provides a kind of storage medium, is stored with computer in storage medium Program, wherein computer program is arranged to execute above-mentioned method when operation.
One side according to an embodiment of the present invention additionally provides a kind of electronic device, including memory and processor, storage Computer program is stored in device, processor is arranged to execute above-mentioned method by computer program.
When the present embodiment recommends accompaniment file to user, the range scope that is shown according to the history singing data of user Target audio file is matched, so that the audio file of push is more suitable for user's performance, the tone and the tone phase of accompaniment of performance Like Du Genggao, reach the technical effect for improving the accuracy of push audio file.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of hardware environment according to an embodiment of the present invention;
Fig. 2 is the flow chart of the method for pushing of audio file according to an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of search interface according to an embodiment of the present invention;
Fig. 4 is the schematic diagram of another search interface according to an embodiment of the present invention;
Fig. 5 is the schematic diagram of note score according to an embodiment of the present invention;
Fig. 6 is the schematic diagram at recommendation interface before search according to an embodiment of the present invention;
Fig. 7 is the system architecture diagram of the method for pushing of the audio file of the embodiment of the present invention;
Fig. 8 is the schematic diagram of the driving means of audio file according to an embodiment of the present invention;
Fig. 9 is a kind of structural block diagram of electronic device according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Explanation of nouns:
MIDI, full name are Musical Instrument Digital Interface (i.e. musical instrument digital interface), are one The widely used music standards format of kind.
According to an aspect of an embodiment of the present invention, a kind of method for pushing of audio file is provided.In the present embodiment, The method for pushing of above-mentioned audio file can be applied in the hardware environment that server 101 as shown in Figure 1 is constituted, optional Ground, the hardware environment may also include the user terminal 102 for being logged in target account number.As shown in Figure 1, user terminal 102 passes through net Network is attached with server 101, and above-mentioned network includes but is not limited to: wide area network, Metropolitan Area Network (MAN) or local area network, user terminal 102 The including but not limited to mobile terminals such as mobile phone, tablet computer, the terminals such as personal computer PC.
Fig. 2 is the flow chart of the method for pushing of audio file according to an embodiment of the present invention.The push side of the audio file Method can with but be not limited to execute by server 101, as shown in Fig. 2, for being executed by server 101, the sound The method for pushing of frequency file includes the following steps:
S202, server receive the play instruction that target account number issues, and play instruction, which is used to indicate broadcasting, has the first mark The audio file of knowledge.
Play instruction can be sent by search first identifier, first identifier can be song title, singer's title with And the title etc. of the associated movie and television play of song.For example, user inputs song title by search box to indicate to play the song title Claim relevant accompaniment audio file.The accompaniment audio file of song corresponding to the song title is the audio text with first identifier Part.
Above-mentioned audio file can play on the subscriber terminal, and target account number is logged on the user terminal, is such as mounted on use The target account number is logged in the audio client of family terminal.
S204, server obtain the range scope of target account number according to the history singing data of target account number.
Range scope is the range for the note for being suitble to target account number to sing.Note can indicate tone, the tone of high pitch and The tone of bass is all not easy to sing, and the target account number can be obtained according to the history singing data of target account number and is arrogated to oneself The range of long note, that is, determine the range scope of target account number.
S206, in response to play instruction, server searches the target audio file with first identifier according to range scope, The range of target audio file matches with range scope.
Target audio file is searched in audio database, target audio file is the file with first identifier, also It is accompaniment audio file identical with first identifier in the audio file of target account number search.For example, target account number is searched for " XXXXX ", the target audio file of lookup are the accompaniment audio files of " XXXXX ".The range and range model of target audio file It encloses and matches, for example, target account number is male voice, original singer is female voice, when accompaniment has male voice version, the target audio file that finds For the accompaniment of boy student's version, i.e. the range of male voice accompaniment and the range scope of target account number matches.
S208, server push target audio file to target account number.
As shown in Figure 3 and Figure 4.Target account number is by inputting first identifier in search box shown in Fig. 3, such as " XXXXX ", exhibition Show the accompaniment file found.What is made number one is target audio file, is most matched with the range scope of target account number Accompaniment audio file.Fig. 3 is shown the audio file recommended under accompaniment label, and Fig. 4 is shown to be recommended under summation label Audio file, including accompaniment audio file and other audio files.
When the present embodiment recommends accompaniment file to user, the range scope that is shown according to the history singing data of user Target audio file is matched, so that the audio file of push is more suitable for user's performance, so that the sound of the tone and accompaniment sung The similarity of tune is higher, solves the technical problem of prior art push audio file inaccuracy, reaches raising push audio file Accuracy technical effect.
Optionally, server obtains the range scope of target account number according to the history singing data of target account number can include: Obtain the pitch parameters of target note in history singing data, wherein the tone and note sheet that pitch parameters are used to indicate to sing The similarity of body tone;Obtain the pitch parameters average value of target note;According to the sound of pitch parameters average value and each note Parameter is adjusted to determine range scope.
Pitch parameters can be the score of each note, which can use the points-scoring system of singing application program itself It scores.When the similarity of note and the tone of note itself that user sings is higher, the score of the note is higher, works as mesh It marks in the song that the corresponding user of account number sings, the high note of score is more, and the whole score for completing this song song sung is got over It is high.The present embodiment will analyze the audio data of user, and the bad analysis of simple audio data, need to be converted into MIDI File, and the points-scoring system of singing application program itself is combined, analysis obtains performance score-pitch corresponding relationship and score Model, it is final to carry out matching recommendation with range scope that is accompanying in accompaniment library.
It is all notes in history singing data that target note, which can be, is also possible to have user to drill in history singing data The note for singing part is also possible to the climax parts of a piece of music or has the note for the part for singing difficulty, that is, target note It can be the whole notes or part note in history singing data, below using target note to be complete in history singing data It is illustrated for portion's note.
Firstly, the note based on MIDI file analysis-score relationship modeling.
The present embodiment mainly obtains each note in user recording data using MIDI file, and utilizes application of singing Performance scoring systems, obtain the score data of each note.There are MIDI events and meta-event in MIDI file, and Note information is exactly in meta-event, and all meta-event are started with 0xFF, and wherein note information is exactly 0x7F Beginning, so by identifying that 0xFF and 0x7F can obtain each note of user recording audio, and looked into scoring systems The score of each note is ask, establishes and sings score-note corresponding relationship, is then calculated by the multiple recorded audios of user every The average of a note determines that the average mark of all notes, all notes are averaged further according to the average of each note Point i.e. note mean parameter, and then show that (for example score is higher than all pitches and being averaged for user's score higher range scope The part of score).
Wherein, the average mark of each note can be obtained according to multiple recorded audios of user, will be in multiple recorded audios The score of identical note seeks weighted average, using the weighted average acquired as the average of the note.
Optionally, server determines that range scope can wrap according to the pitch parameters of pitch parameters average value and each note It includes: according to sequence of the tone represented by note from bass to high pitch, first being higher than the first sound of pitch parameters average value Accord with the lower limit as range scope;According to sequence of the tone represented by note from high pitch to bass, it is higher than tone for first The upper limit of second note of mean parameter as range scope;Tone represented by the continuous note between the upper limit is limited to by under As range scope.
As shown in figure 5, note includes C, #C, D, #D, E, F, #F, G, #G, A, #A, B, these notes in all records of user Average in sound audio is followed successively by 60,70,80,70,80,60,90,70,80,70,60,20.All notes is flat in Fig. 5 Equal score is: 67.5 points, then can count from low pitch, first is higher than the tone of average mark as lower limit (#C), from high pitch It is counted to bass, first is higher than conduct the upper limit (A) of average mark, and general user's performance is all that high pitch does not increase or bass It is unable to come down, two got above bound can simply be considered the boundary that user does not increase and is unable to come down, on the two sides Note among boundary can think roughly that user can do very well, so the most suitable range scope of the user got here Be: then #C to the continuous note between A finds from accompaniment library again and meets the accompaniment of this range scope and recommend user.
In the determining target audio file matched with range scope of server, following two scheme can be used, comprising: Audio file of all notes all in range scope is chosen as target audio file, and, choose a certain proportion of note Audio file other than range scope is as target audio file.
Optionally, server searches the target audio file with first identifier according to range scope can include: obtains sound The tone peak and tone minimum of domain range;The tone for searching note is between tone peak and tone minimum Audio file;Using the audio file found as target audio file.
Range scope is #C to the continuous note between A in the example shown in FIG. 5, then, search the peak of tone Not higher than the audio file that the minimum of A and tone is not less than #C, target audio file is obtained.It finds according to the method Target audio file in all notes all in #C to A within the scope of this.All notes of target audio file are all in this way The pitch for thering is suitable user to sing, therefore, it is recommended that the target audio file to user is that user is suitble to sing, that is to say, that When user sings target audio file, the similarity-rough set of each note and note itself that have sung is high.
Due to the characteristic that the note of music itself changes, some music is caused to cannot be guaranteed all notes all in range scope It is interior, still, beyond the audio file that the note in range scope is fewer and suitable user sings, these audio files User can be recommended.That is, searching the target audio file with first identifier according to range scope includes: acquisition range scope Tone peak and tone minimum;Search accounting for for the first note that tone is in other than tone peak and tone minimum Than the audio file for being less than preset value;Using the audio file found as target audio file, wherein the audio text found The accounting of part is the ratio between the number of first note and the number of all notes of the audio file found.
For example, the number of all notes has 200 in an audio file, wherein the first sound not in range scope According with number is 9, then, this accounting is 1/20, and in the case where preset value is 1/30, this has the audio text of 1/20 accounting Part can serve as target audio file.It should be noted that preset value is adjustable, for example, for different types of The adjustable preset value of music.
Optionally, server is after pushing target audio file to target account number, method further include: obtains target account number Target recording data, wherein target recording data be and the associated singing data of target audio file;Extract target recording number The pitch parameters of each note in obtain extracting result;Range scope is adjusted according to result is extracted, the range after being adjusted Range;It is that target account number pushes the first audio file according to range scope adjusted, wherein the first audio file has first Mark does not have first identifier.
The present embodiment can adjust range scope according to the recording data of user in real time, sing in user and complete a song Afterwards, using points-scoring system it is available it is current sing complete target audio file in each note scoring event, according to Divide the range scope of situation adjustment user.Range scope is perhaps reduced to the mobile range scope of high pitch or to low for example, expanding Mobile range scope of sound etc..It also, is again the corresponding target account number push audio text of user according to range scope adjusted Part, the audio file of the push are the first audio file.First audio file of push can be to be had with target audio file The audio file of identical or different first identifier.For example, target audio file is male voice version accompaniment " XXXXX ", then " XXXXX " that can be the accompaniment of female voice version of secondary recommendation, can also be the accompaniment of other songs.But no matter what kind of situation it is, The audio file of recommendation is all with the range scope of target account number to matched.
Optionally, server is before receiving the play instruction that target account number issues, method further include: according to target account number Range scope search at least one audio file to match with range scope;At least one audio text is pushed to target account number Part.
After application program is opened, before receiving play instruction, at least one audio can be recommended literary to target account number Part, as shown in fig. 6, multiple labels can be shown on the page, such as: guess that you like, list of requesting tune, rise violently list and new song list.? The label that you like is guessed in the following, multiple audio files can be shown, the range of these audio files is all the sound with target account number Domain range matches, can be when target account number does not sing target quickly from guessing that selection below label that you like is liked Music, and user is suitble to sing, improve the convenience and user experience of application.
Fig. 7 is the system architecture diagram of the method for pushing of the audio file of the embodiment of the present invention.Below in conjunction with Fig. 7 to the present invention Embodiment is illustrated.
Step S701, user initiate program request behavior by user terminals such as mobile phones;
Step S702, user terminal initiate recommendation request to recommendation backstage;
Step S703 recommends backstage to server (server stores audio user MIDI file and best range scope) Inquire the matched accompaniment of the best range scope of user;
Step S704, receive server return with the matched accompaniment of the best range scope of user, i.e., qualified companion It plays;
Step S705 recommends backstage inquiry and the best range scope matching of user into audio accompaniment MIDI file server Accompaniment;
Step S706 recommends backstage to receive the qualified accompaniment that audio accompaniment MIDI file server returns;
Step S707 recommends backstage to return to recommendation results to user terminal, such as returns to " whole people K song " sound of user terminal Frequency software, and user is shown to by user terminal;
Step S708, the user that user terminal is collected sing audio data, i.e. the generation original range data of user, and send It is stored to user's original audio data server;
Step S709, intelligent MIDI file conversion service device periodic scanning user original audio data (the i.e. original sound of user Numeric field data) this server storage user data;
Step S710, the score for each pitch that intelligent MIDI file conversion service device combines scoring backstage to obtain, returns The higher range scope of user's score, to determine the higher range scope of user's score;
MIDI file and the best range scope of user are sent to user by step S711, intelligent MIDI file conversion service device Audio MIDI file and best range scope server are stored.
The embodiment of the present application analyzes the recorded audio of user, is on the one hand more close to the users, makes promotion expo more Precisely, on the other hand also to this part, storing data is used, and improves the value of this part storing data.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Other side according to an embodiment of the present invention additionally provides a kind of for implementing the push side of above-mentioned audio file The driving means of the audio file of method, as shown in figure 8, the device includes:
Receiving unit 802, for receiving the play instruction of target account number sending, wherein play instruction is used to indicate broadcasting Audio file with first identifier;
Play instruction can be sent by search first identifier, first identifier can be song title, singer's title with And the title etc. of the associated movie and television play of song.For example, user inputs song title by search box to indicate to play the song title Claim relevant accompaniment audio file.The accompaniment audio file of song corresponding to the song title is the audio text with first identifier Part.
Acquiring unit 804, for obtaining the range scope of target account number according to the history singing data of target account number;
Range scope is the range for the note for being suitble to target account number to sing.Note can indicate tone, the tone of high pitch and The tone of bass is all not easy to sing, and the target account number can be obtained according to the history singing data of target account number and is arrogated to oneself The range of long note, that is, determine the range scope of target account number.
Searching unit 806, for searching the target audio with first identifier according to range scope in response to play instruction File, wherein the range of target audio file matches with range scope;
Target audio file is searched in audio database, target audio file is the file with first identifier, also It is accompaniment audio file identical with first identifier in the audio file of target account number search.For example, target account number is searched for " XXXXX ", the target audio file of lookup are the accompaniment audio files of " XXXXX ".The range and range model of target audio file It encloses and matches, for example, target account number is male voice, original singer is female voice, when accompaniment has male voice version, the target audio file that finds For the accompaniment of boy student's version, i.e. the range of male voice accompaniment and the range scope of target account number matches.
First push unit 808, for pushing target audio file to target account number.
As shown in Figure 3 and Figure 4.Target account number is shown and is found by inputting first identifier in search box shown in Fig. 3 Accompaniment file.What is made number one is target audio file, is and the most matched audio accompaniment text of the range scope of target account number Part.The audio file recommended under accompaniment label is shown in Fig. 3, and the audio file recommended under summation label is shown in Fig. 4, wraps Include accompaniment audio file and other audio files.
When the present embodiment recommends accompaniment file to user, the range scope that is shown according to the history singing data of user Target audio file is matched, so that the audio file of push is more suitable for user's performance, so that the sound of the tone and accompaniment sung The similarity of tune is higher, solves the technical problem of prior art push audio file inaccuracy, reaches raising push audio file Accuracy technical effect.
In determining target audio file matched with range scope, following two scheme can be used, comprising: choose institute There is audio file of the note all in range scope as target audio file, and, a certain proportion of note is chosen in range Audio file other than range is as target audio file.
Optionally, searching unit includes: the first acquisition module, and the tone peak and tone for obtaining range scope are most Low value;First searching module, the tone for searching note are in the audio file between tone peak and tone minimum; First determining module, for using the audio file found as target audio file.
Optionally, searching unit includes: the second acquisition module, and the tone peak and tone for obtaining range scope are most Low value;Second searching module, for searching the accounting for the first note that tone is in other than tone peak and tone minimum Less than the audio file of preset value;Second determining module, for using the audio file found as target audio file, In, the accounting of the audio file found be number and all notes of the audio file found of first note number it Between ratio.
Range scope is #C to the continuous note between A in the example shown in FIG. 5, then, search the peak of tone Not higher than the audio file that the minimum of A and tone is not less than #C, target audio file is obtained.It finds according to the method Target audio file in all notes all in #C to A within the scope of this.All notes of target audio file are all in this way The pitch for thering is suitable user to sing, therefore, it is recommended that the target audio file to user is that user is suitble to sing, that is to say, that When user sings target audio file, the similarity-rough set of each note and note itself that have sung is high.
Due to the characteristic that the note of music itself changes, some music is caused to cannot be guaranteed all notes all in range scope It is interior, still, beyond the audio file that the note in range scope is fewer and suitable user sings, these audio files User can be recommended.That is, searching the target audio file with first identifier according to range scope includes: acquisition range scope Tone peak and tone minimum;Search accounting for for the first note that tone is in other than tone peak and tone minimum Than the audio file for being less than preset value;Using the audio file found as target audio file, wherein the audio text found The accounting of part is the ratio between the number of first note and the number of all notes of the audio file found.
For example, the number of all notes has 200 in an audio file, wherein the first sound not in range scope According with number is 9, then, this accounting is 1/20, and in the case where preset value is 1/30, this has the audio text of 1/20 accounting Part can serve as target audio file.It should be noted that preset value is adjustable, for example, for different types of The adjustable preset value of music.
Optionally, acquiring unit includes: that third obtains module, for obtaining the tone of target note in history singing data Parameter, wherein the similarity of tone and note tone itself that pitch parameters are used to indicate to sing;4th obtains module, is used for Obtain the pitch parameters average value of target note;Range determining module, for according to pitch parameters average value and each note Pitch parameters determine range scope.
Pitch parameters can be the score of each note, which can use the points-scoring system of singing application program itself It scores.When the similarity of note and the tone of note itself that user sings is higher, the score of the note is higher, works as mesh It marks in the song that the corresponding user of account number sings, the high note of score is more, and the whole score for completing this song song sung is got over It is high.The present embodiment will analyze the audio data of user, and the bad analysis of simple audio data, need to be converted into MIDI File, and the points-scoring system of singing application program itself is combined, analysis obtains performance score-pitch corresponding relationship and score Model, it is final to carry out matching recommendation with range scope that is accompanying in accompaniment library.
Firstly, the note based on MIDI file analysis-score relationship modeling.
The present embodiment mainly obtains each note in user recording data using MIDI file, and utilizes application of singing Performance scoring systems, obtain the score data of each note.There are MIDI events and meta-event in MIDI file, and Note information is exactly in meta-event, and all meta-event are started with 0xFF, and wherein note information is exactly 0x7F Beginning, so by identifying that 0xFF and 0x7F can obtain each note of user recording audio, and looked into scoring systems The score of each note is ask, establishes and sings score-note corresponding relationship, is then calculated by the multiple recorded audios of user every The average of a note determines that the average mark of all notes, all notes are averaged further according to the average of each note Point i.e. note mean parameter, and then show that (for example score is higher than all pitches and being averaged for user's score higher range scope The part of score).
Wherein, the average mark of each note can be obtained according to multiple recorded audios of user, will be in multiple recorded audios The score of identical note seeks weighted average, using the weighted average acquired as the average of the note.
Optionally, range determining module includes: the first range submodule, for according to tone represented by note from bass To the sequence of high pitch, it is higher than the first note of pitch parameters average value as the lower limit of range scope for first;Second range Submodule is higher than pitch parameters average value for first for the sequence according to tone represented by note from high pitch to bass The upper limit of second note as range scope;Range determines submodule, the continuous note institute for that will be limited to down between the upper limit The tone of expression is as range scope.
As shown in figure 5, note includes C, #C, D, #D, E, F, #F, G, #G, A, #A, B, these notes in all records of user Average in sound audio is followed successively by 60,70,80,70,80,60,90,70,80,70,60,20.All notes is flat in Fig. 5 Equal score is: 67.5 points, then can count from low pitch, first is higher than the tone of average mark as lower limit (#C), from high pitch It is counted to bass, first is higher than conduct the upper limit (A) of average mark, and general user's performance is all that high pitch does not increase or bass It is unable to come down, two got above bound can simply be considered the boundary that user does not increase and is unable to come down, on the two sides Note among boundary can think roughly that user can do very well, so the most suitable range scope of the user got here Be: then #C to the continuous note between A finds from accompaniment library again and meets the accompaniment of this range scope and recommend user.
Optionally, device further include: recording data unit is used for after pushing target audio file to target account number, Obtain target account number target recording data, wherein target recording data be and the associated singing data of target audio file;It mentions Unit is taken, for extracting the pitch parameters of each note in target recording data, obtains extracting result;Adjustment unit is used for root Range scope is adjusted according to result is extracted, the range scope after being adjusted;Second push unit, for according to range adjusted Range is that target account number pushes the first audio file, wherein the first audio file has first identifier or do not have the first mark Know.
The present embodiment can adjust range scope according to the recording data of user in real time, sing in user and complete a song Afterwards, using points-scoring system it is available it is current sing complete target audio file in each note scoring event, according to Divide the range scope of situation adjustment user.Range scope is perhaps reduced to the mobile range scope of high pitch or to low for example, expanding Mobile range scope of sound etc..It also, is again the corresponding target account number push audio text of user according to range scope adjusted Part, the audio file of the push are the first audio file.First audio file of push can be to be had with target audio file The audio file of identical or different first identifier.For example, target audio file is male voice version accompaniment " XXXXX ", then " XXXXX " that can be the accompaniment of female voice version of secondary recommendation, can also be the accompaniment of other songs.But no matter what kind of situation it is, The audio file of recommendation is all with the range scope of target account number to matched.
Optionally, device further include: matching unit, for receive target account number issue play instruction before, according to The range scope of target account number searches at least one audio file to match with range scope;Third push unit, for Target account number pushes at least one audio file.
After application program is opened, before receiving play instruction, at least one audio can be recommended literary to target account number Part, as shown in fig. 6, multiple labels can be shown on the page, such as: guess that you like, list of requesting tune, rise violently list and new song list.? The label that you like is guessed in the following, multiple audio files can be shown, the range of these audio files is all the sound with target account number Domain range matches, can be when target account number does not sing target quickly from guessing that selection below label that you like is liked Music, and user is suitble to sing, improve the convenience and user experience of application.
Another aspect according to an embodiment of the present invention additionally provides a kind of for implementing the push side of above-mentioned audio file The electronic device (being such as, but not limited to server shown in Fig. 1) of method, as shown in figure 9, the electronic device includes, including Memory 905 and processor 901 are stored with computer program in the memory 905, which is arranged to pass through meter Calculation machine program executes the step in any of the above-described embodiment of the method.
Optionally, Fig. 9 is a kind of structural block diagram of electronic device according to an embodiment of the present invention.As shown in figure 9, the electronics Device may include: one or more (one is only shown in figure) processor 901, at least one communication bus 902, user interface 903, at least one transmitting device 904 and memory 905.Wherein, communication bus 902 is for realizing the connection between these components Communication.Wherein, user interface 903 may include display 906 and keyboard 907.Transmitting device 904 optionally may include standard Wireline interface and wireless interface.
Optionally, in the present embodiment, above-mentioned server can be in multiple network equipments of computer network At least one network equipment.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S1 receives the play instruction that target account number issues, wherein play instruction, which is used to indicate to play, has first identifier Audio file;
S2 obtains the range scope of target account number according to the history singing data of target account number;
S3 searches the target audio file with first identifier according to range scope, wherein mesh in response to play instruction The range of mark with phonetic symbols frequency file matches with range scope;
S4 pushes target audio file to target account number.
Optionally, it will appreciated by the skilled person that structure shown in Fig. 9 is only to illustrate, electronic device can be with But it is not limited to server shown in Fig. 1.Fig. 9 it does not cause to limit to the structure of above-mentioned electronic device.For example, electronics Device may also include the more perhaps less component (such as network interface, display device) than shown in Fig. 9 or have and figure Different configuration shown in 9.
Wherein, memory 905 can be used for storing software program and module, such as the audio file in the embodiment of the present invention Method for pushing and the corresponding program instruction/module of device, the software journey that processor 901 is stored in memory 905 by operation Sequence and module realize the method for pushing of above-mentioned audio file thereby executing various function application and data processing.It deposits Reservoir 905 may include high speed random access memory, can also include nonvolatile memory, as one or more magnetic storage fills It sets, flash memory or other non-volatile solid state memories.In some instances, memory 905 can further comprise relative to place The remotely located memory of device 901 is managed, these remote memories can pass through network connection to terminal.The example packet of above-mentioned network Include but be not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 904 is used to that data to be received or sent via a network.Above-mentioned network specific example It may include cable network and wireless network.In an example, transmitting device 904 includes a network adapter (Network Interface Controller, NIC), can be connected by cable with other network equipments with router so as to interconnection Net or local area network are communicated.In an example, transmitting device 904 is radio frequency (Radio Frequency, RF) module, For wirelessly being communicated with internet.
Wherein, specifically, memory 905 is used to store information, the Yi Jiying of deliberate action condition and default access user Use program.
Using the embodiment of the present invention, a kind of scheme of the method for pushing of audio file is provided.By recommending companion to user When playing file, target audio file is matched according to the range scope that the history singing data of user is shown, so that push Audio file be more suitable for user performance so that sing tone and accompaniment tone similarity it is higher, solve the prior art The technical problem for pushing audio file inaccuracy reaches the technical effect for improving the accuracy of push audio file.
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps Calculation machine program:
S1 receives the play instruction that target account number issues, wherein play instruction, which is used to indicate to play, has first identifier Audio file;
S2 obtains the range scope of target account number according to the history singing data of target account number;
S3 searches the target audio file with first identifier according to range scope, wherein mesh in response to play instruction The range of mark with phonetic symbols frequency file matches with range scope;
S4 pushes target audio file to target account number.
Optionally, storage medium is also configured to store for executing step included in the method in above-described embodiment Computer program, this is repeated no more in the present embodiment.
Optionally, in the present embodiment, those of ordinary skill in the art will appreciate that in the various methods of above-described embodiment All or part of the steps be that the relevant hardware of terminal device can be instructed to complete by program, the program can store in In one computer readable storage medium, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (15)

1. a kind of method for pushing of audio file characterized by comprising
Receive the play instruction that target account number issues, wherein the play instruction is used to indicate the sound for playing and having first identifier Frequency file;
The range scope of the target account number is obtained according to the history singing data of the target account number;
In response to the play instruction, the target audio file with the first identifier is searched according to the range scope, In, the range of the target audio file matches with the range scope;
The target audio file is pushed to the target account number.
2. the method according to claim 1, wherein being searched according to the range scope has the first identifier Target audio file include:
Obtain the tone peak and tone minimum of the range scope;
The tone of note is searched in the audio file between the tone peak and the tone minimum;
Using the audio file found as the target audio file.
3. the method according to claim 1, wherein being searched according to the range scope has the first identifier Target audio file include:
Obtain the tone peak and tone minimum of the range scope;
It searches tone and is in the accounting of the first note other than the tone peak and the tone minimum less than preset value Audio file;
Using the audio file found as the target audio file, wherein the accounting of the audio file found is Ratio between the number of all notes of the number of the first note and the audio file found.
4. the method according to claim 1, wherein obtaining institute according to the history singing data of the target account number The range scope for stating target account number includes:
Obtain the pitch parameters of target note in the history singing data, wherein what the pitch parameters were used to indicate to sing The similarity of tone and note itself tone;
Obtain the pitch parameters average value of the target note;
The range scope is determined according to the pitch parameters of the pitch parameters average value and each note.
5. according to the method described in claim 4, it is characterized in that, according to the sound of the pitch parameters average value and each note Parameter is adjusted to determine that the range scope includes:
According to sequence of the tone represented by note from bass to high pitch, it is higher than the of the pitch parameters average value for first Lower limit of one note as the range scope;
According to sequence of the tone represented by note from high pitch to bass, it is higher than the of the pitch parameters average value for first The upper limit of two notes as the range scope;
Tone represented by the continuous note between the upper limit is limited under will be described as the range scope.
6. the method according to claim 1, wherein pushing the target audio file to the target account number Later, the method also includes:
Obtain the target recording data of the target account number, wherein the target recording data be and the target audio file Associated singing data;
The pitch parameters for extracting each note in the target recording data obtain extracting result;
The range scope is adjusted according to result is extracted, the range scope after being adjusted;
It is that the target account number pushes the first audio file according to the range scope adjusted.
7. the method according to claim 1, wherein receive target account number issue play instruction before, institute State method further include:
At least one audio file to match with the range scope is searched according to the range scope of the target account number;
At least one described audio file is pushed to the target account number.
8. a kind of driving means of audio file characterized by comprising
Receiving unit, for receiving the play instruction of target account number sending, wherein the play instruction, which is used to indicate broadcasting, to be had The audio file of first identifier;
Acquiring unit, for obtaining the range scope of the target account number according to the history singing data of the target account number;
Searching unit, for searching the mesh with the first identifier according to the range scope in response to the play instruction Mark with phonetic symbols frequency file, wherein the range of the target audio file matches with the range scope;
First push unit, for pushing the target audio file to the target account number.
9. device according to claim 8, which is characterized in that the searching unit includes:
First obtains module, for obtaining the tone peak and tone minimum of the range scope;
First searching module, the tone for searching note are in the sound between the tone peak and the tone minimum Frequency file;
First determining module, for using the audio file found as the target audio file.
10. device according to claim 8, which is characterized in that the searching unit includes:
Second obtains module, for obtaining the tone peak and tone minimum of the range scope;
Second searching module, the first note being in other than the tone peak and the tone minimum for searching tone Accounting be less than preset value audio file;
Second determining module, for using the audio file found as the target audio file, wherein described to find The accounting of audio file is between the number of the first note and the number of all notes of the audio file found Ratio.
11. device according to claim 8, which is characterized in that the acquiring unit includes:
Third obtains module, for obtaining the pitch parameters of target note in the history singing data, wherein the tone ginseng The similarity of tone and note tone itself of the number for indicating to sing;
4th obtains module, for obtaining the pitch parameters average value of the target note;
Range determining module, for determining the range model according to the pitch parameters of the pitch parameters average value and each note It encloses.
12. device according to claim 11, which is characterized in that the range determining module includes:
First range submodule is higher than institute for first for the sequence according to tone represented by note from bass to high pitch State lower limit of the first note of pitch parameters average value as the range scope;
Second range submodule is higher than institute for first for the sequence according to tone represented by note from high pitch to bass State the upper limit of the second note of pitch parameters average value as the range scope;
Range determines submodule, and tone represented by the continuous note for being limited between the upper limit under will be described is as described in Range scope.
13. device according to claim 8, which is characterized in that described device further include:
Recording data unit, for obtaining the target account after pushing the target audio file to the target account number Number target recording data, wherein the target recording data be and the associated singing data of the target audio file;
Extraction unit obtains extracting result for extracting the pitch parameters of each note in the target recording data;
Adjustment unit, for adjusting the range scope according to extraction result, the range scope after being adjusted;
Second push unit, for being that the target account number pushes the first audio file according to the range scope adjusted.
14. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer Program is arranged to execute method described in any one of claim 1 to 7 when operation.
15. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory Sequence, the processor are arranged to execute side described in any one of claim 1 to 7 by the computer program Method.
CN201811354706.2A 2018-11-14 2018-11-14 Audio file pushing method and device, electronic device and storage medium Active CN109710797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811354706.2A CN109710797B (en) 2018-11-14 2018-11-14 Audio file pushing method and device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811354706.2A CN109710797B (en) 2018-11-14 2018-11-14 Audio file pushing method and device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN109710797A true CN109710797A (en) 2019-05-03
CN109710797B CN109710797B (en) 2021-03-26

Family

ID=66254835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811354706.2A Active CN109710797B (en) 2018-11-14 2018-11-14 Audio file pushing method and device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN109710797B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117235300A (en) * 2023-11-13 2023-12-15 深圳市致尚信息技术有限公司 Song recommendation method, system and storage medium of intelligent K song system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667422A (en) * 2009-09-22 2010-03-10 北京中星微电子有限公司 Method and device for adjusting mode of song accompaniment
US8050419B2 (en) * 2008-03-31 2011-11-01 General Motors Llc Adaptive initial volume settings for a vehicle audio system
CN103955490A (en) * 2014-04-16 2014-07-30 华为技术有限公司 Audio playing method and audio playing equipment
CN105550316A (en) * 2015-12-14 2016-05-04 广州酷狗计算机科技有限公司 Pushing method and device of audio list
CN105825868A (en) * 2016-05-30 2016-08-03 福州大学 Singer effective range extraction method
US20170064510A1 (en) * 2007-12-12 2017-03-02 Iii Holdings 2, Llc System and method for generating a recommendation on a mobile device
CN106611603A (en) * 2015-10-26 2017-05-03 腾讯科技(深圳)有限公司 Audio processing method and audio processing device
CN106919583A (en) * 2015-12-25 2017-07-04 广州酷狗计算机科技有限公司 The method for pushing and device of audio file
CN106991163A (en) * 2017-03-31 2017-07-28 福州大学 A kind of song recommendations method based on singer's sound speciality

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170064510A1 (en) * 2007-12-12 2017-03-02 Iii Holdings 2, Llc System and method for generating a recommendation on a mobile device
US8050419B2 (en) * 2008-03-31 2011-11-01 General Motors Llc Adaptive initial volume settings for a vehicle audio system
CN101667422A (en) * 2009-09-22 2010-03-10 北京中星微电子有限公司 Method and device for adjusting mode of song accompaniment
CN103955490A (en) * 2014-04-16 2014-07-30 华为技术有限公司 Audio playing method and audio playing equipment
CN106611603A (en) * 2015-10-26 2017-05-03 腾讯科技(深圳)有限公司 Audio processing method and audio processing device
CN105550316A (en) * 2015-12-14 2016-05-04 广州酷狗计算机科技有限公司 Pushing method and device of audio list
CN106919583A (en) * 2015-12-25 2017-07-04 广州酷狗计算机科技有限公司 The method for pushing and device of audio file
CN105825868A (en) * 2016-05-30 2016-08-03 福州大学 Singer effective range extraction method
CN106991163A (en) * 2017-03-31 2017-07-28 福州大学 A kind of song recommendations method based on singer's sound speciality

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117235300A (en) * 2023-11-13 2023-12-15 深圳市致尚信息技术有限公司 Song recommendation method, system and storage medium of intelligent K song system
CN117235300B (en) * 2023-11-13 2024-03-15 深圳市致尚信息技术有限公司 Song recommendation method, system and storage medium of intelligent K song system

Also Published As

Publication number Publication date
CN109710797B (en) 2021-03-26

Similar Documents

Publication Publication Date Title
US20130226957A1 (en) Methods, Systems, and Media for Identifying Similar Songs Using Two-Dimensional Fourier Transform Magnitudes
CN106095925B (en) A kind of personalized song recommendations method based on vocal music feature
KR100615522B1 (en) music contents classification method, and system and method for providing music contents using the classification method
JP4268386B2 (en) How to classify songs that contain multiple sounds
CN106991163A (en) A kind of song recommendations method based on singer's sound speciality
CN106898339B (en) Song chorusing method and terminal
CN105975496A (en) Music recommendation method and device based on context sensing
CN110010159B (en) Sound similarity determination method and device
CN111554303B (en) User identity recognition method and storage medium in song singing process
WO2007136349A1 (en) A method and apparatus for accessing an audio file from a collection of audio files using tonal matching
CN107767850A (en) A kind of singing marking method and system
Raju et al. TANSEN: A query-by-humming based music retrieval system
JP5428459B2 (en) Singing evaluation device
KR20200070732A (en) Apparatus for recommending music contents
CN109710797A (en) Method for pushing, device, electronic device and the storage medium of audio file
CN105575400A (en) Method, terminal, server, and system for obtaining song information
KR100702059B1 (en) Ubiquitous music information retrieval system and method based on query pool with feedback of customer characteristics
CN106919583B (en) Audio file pushing method and device
JP2002055695A (en) Music search system
JP2003316818A (en) Information researching method and device therefor, and computer program
Van Balen Automatic recognition of samples in musical audio
JP2005115164A (en) Musical composition retrieving apparatus
CN107133344B (en) Data processing method and device
Liu Effective results ranking for mobile query by singing/humming using a hybrid recommendation mechanism
CN114613364A (en) Sound control method and system based on voice control

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
GR01 Patent grant
GR01 Patent grant