CN109710797B - Audio file pushing method and device, electronic device and storage medium - Google Patents

Audio file pushing method and device, electronic device and storage medium Download PDF

Info

Publication number
CN109710797B
CN109710797B CN201811354706.2A CN201811354706A CN109710797B CN 109710797 B CN109710797 B CN 109710797B CN 201811354706 A CN201811354706 A CN 201811354706A CN 109710797 B CN109710797 B CN 109710797B
Authority
CN
China
Prior art keywords
range
audio file
target
note
notes
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.)
Active
Application number
CN201811354706.2A
Other languages
Chinese (zh)
Other versions
CN109710797A (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

Images

Landscapes

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

Abstract

The invention discloses a method and a device for pushing an audio file, an electronic device and a storage medium. Wherein, the method comprises the following steps: receiving a playing instruction sent by a target account, wherein the playing instruction is used for indicating to play an audio file with a first identifier; acquiring the range of the vocal range of the target account according to the historical singing data of the target account; in response to a playing instruction, searching a target audio file with a first identifier according to the range of the range, wherein the range of the target audio file is matched with the range of the range; and pushing the target audio file to the target account. The invention solves the technical problem of inaccurate audio file pushing.

Description

Audio file pushing method and device, electronic device and storage medium
Technical Field
The invention relates to the field of multimedia, in particular to a method and a device for pushing an audio file, an electronic device and a storage medium.
Background
The accompaniment recommendation scheme of the existing singing software is basically based on the recommendation of user portrait. And based on the recommendation of the user portrait, the most core algorithm is a personalized recommendation algorithm based on the analysis of the user's singing historical behavior. In the user singing-requesting history, tag attributes such as accompaniment types (songs, inspirational songs and the like), accompaniment songs, original sings, accompaniments and the like are carried, data meeting the tag attributes in the user singing-requesting history are found according to the tag attributes, and are returned to the user, so that accompaniment recommendation is completed.
The main defects of the current recommendation technology of singing accompaniment are as follows: the matching recommendation is carried out by utilizing the tag attribute data of the user singing history and the tag attribute in the accompaniment library, but the recommended content is not accurate enough due to incomplete attribute classification, so that the accompaniment suitable for the user singing can not be matched.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for pushing an audio file, an electronic device and a storage medium, and at least solves the technical problem that the audio file is not pushed accurately.
According to an aspect of the embodiments of the present invention, there is provided an audio file pushing method, including: receiving a playing instruction sent by a target account, wherein the playing instruction is used for indicating to play an audio file with a first identifier; acquiring the range of the vocal range of the target account according to the historical singing data of the target account; in response to a playing instruction, searching a target audio file with a first identifier according to the range of the range, wherein the range of the target audio file is matched with the range of the range; and pushing the target audio file to the target account.
According to another aspect of the embodiments of the present invention, there is also provided an audio file pushing apparatus, including: the receiving unit is used for receiving a playing instruction sent by a target account, wherein the playing instruction is used for indicating to play an audio file with a first identifier; the acquisition unit is used for acquiring the range of the vocal range of the target account according to the historical singing data of the target account; the searching unit is used for responding to the playing instruction and searching a target audio file with a first identifier according to the range of the range, wherein the range of the target audio file is matched with the range of the range; and the first pushing unit is used for pushing the target audio file to the target account.
According to an aspect of the embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is configured to perform the above method when executed.
According to an aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the above method through the computer program.
When the accompaniment file is recommended to the user, the target audio file is matched according to the range of the vocal range shown by the historical singing data of the user, so that the pushed audio file is more suitable for the user to sing, the tone of the singing is higher in similarity with the tone of the accompaniment, and the technical effect of improving the accuracy of the pushed audio file is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of a hardware environment according to an embodiment of the present invention;
fig. 2 is a flowchart of a push method of an audio file according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a search interface according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another search interface according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a note score according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a pre-search recommendation interface, according to an embodiment of the invention;
fig. 7 is a system architecture diagram of an audio file push method according to an embodiment of the present invention;
fig. 8 is a schematic diagram of an audio file pushing apparatus according to an embodiment of the present invention;
fig. 9 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The noun explains:
MIDI, commonly referred to as Musical Instrument Digital Interface, is a widely used music standard format.
According to an aspect of the embodiment of the invention, a method for pushing an audio file is provided. In this embodiment, the method for pushing the audio file may be applied to a hardware environment formed by the server 101 shown in fig. 1, and optionally, the hardware environment may further include the user terminal 102 logged with the target account. As shown in fig. 1, a user terminal 102 is connected to a server 101 via a network including, but not limited to: the user terminal 102 includes, but is not limited to, a mobile terminal such as a mobile phone or a tablet computer, and a computer terminal such as a personal computer PC.
Fig. 2 is a flowchart of a push method of an audio file according to an embodiment of the present invention. The pushing method of the audio file may be, but is not limited to be, executed by the server 101, as shown in fig. 2, for example, executed by the server 101, and the pushing method of the audio file includes the following steps:
s202, the server receives a playing instruction sent by the target account, and the playing instruction is used for indicating to play the audio file with the first identifier.
The play instruction may be sent by searching for a first identifier, which may be the name of the song, the name of the artist, the name of the movie associated with the song, and so on. For example, the user inputs a song title through a search box to instruct playing of an accompaniment audio file related to the song title. The accompaniment audio file of the song corresponding to the song name is the audio file with the first identification.
The audio file can be played on a user terminal, and a target account is logged on the user terminal, for example, the target account is logged on an audio client installed on the user terminal.
And S204, the server acquires the range of the vocal range of the target account according to the historical singing data of the target account.
The register range is the range of notes that fit the target account to sing. The note may represent a tone, and both the high tone and the low tone are not easy to sing, and the range of the note good at the target account may be obtained according to the historical sing data of the target account, that is, the range of the pitch range of the target account is determined.
S206, responding to the playing instruction, the server searches the target audio file with the first identification according to the range of the range, and the range of the target audio file is matched with the range of the range.
And searching a target audio file in an audio database, wherein the target audio file is a file with a first identifier, namely an accompaniment audio file which is the same as the first identifier in the audio files searched by the target account. For example, the target account number searches for "XXXXX", and the target audio file searched for is the accompaniment audio file of "XXXXX". The range of the target audio file is matched with the range of the range, for example, the target account number is male voice, the original singing is female voice, when the male voice version of the accompaniment exists, the searched target audio file is the accompaniment of the male birth version, namely, the range of the male voice accompaniment is matched with the range of the target account number.
S208, the server pushes the target audio file to the target account.
As shown in fig. 3 and 4. The target account number displays the found accompaniment file by inputting a first identifier, such as "XXXXX", into the search box shown in fig. 3. The first ranked is the target audio file, which is the accompaniment audio file that best matches the range of the target account. Fig. 3 shows audio files recommended under the accompaniment label, and fig. 4 shows audio files recommended under the sum label, including accompaniment audio files and other audio files.
When the accompaniment file is recommended to the user, the target audio file is matched according to the range of the sound range shown by the historical singing data of the user, so that the pushed audio file is more suitable for the user to sing, the similarity between the singing tone and the accompaniment tone is higher, the technical problem that the pushed audio file in the prior art is inaccurate is solved, and the technical effect of improving the accuracy of pushing the audio file is achieved.
Optionally, the obtaining, by the server, the range of the vocal range of the target account according to the historical singing data of the target account may include: acquiring a tone parameter of a target note in historical singing data, wherein the tone parameter is used for expressing the similarity between the singing tone and the tone of the note; acquiring a tone parameter average value of a target note; the range of the pitch range is determined from the mean value of the pitch parameter and the pitch parameter of each note.
The pitch parameter may be a score for each note, which may be scored using the scoring system of the singing application itself. When the similarity between the note sung by the user and the tone of the note is higher, the score of the note is higher, and when the note with the higher score is more in the song sung by the user corresponding to the target account, the overall score of the song finished sung is higher. In the embodiment, the audio data of the user needs to be analyzed, the simple audio data is not well analyzed and needs to be converted into a MIDI file, and the corresponding relation between singing score and pitch and a score model are obtained through analysis by combining a scoring system of a singing application program, and finally, the score model is matched and recommended with the range of the vocal range of the accompaniment in the accompaniment library.
The target note may be all notes in the historical singing data, or a note of a part of the historical singing data that a user sings, or a part of a climax of a piece of music or a part with difficulty in singing, that is, the target note may be all notes or a part of notes in the historical singing data, and the following description will be given by taking the target note as all notes in the historical singing data as an example.
First, a note-score relationship based on MIDI file analysis is modeled.
In the embodiment, each note in the user recording data is obtained mainly by using the MIDI file, and score data of each note is obtained by using a singing score system of a singing application. The MIDI file contains MIDI events and meta-events, and the note information is that in the meta-events, all the meta-events start with 0xFF, wherein the note information is 0x7F, so each note of the user's recorded audio can be obtained by identifying 0xFF and 0x7F, and the score of each note is inquired in the scoring system, the corresponding relationship of the singing score and the note is established, then the average score of each note is calculated through a plurality of recorded audio of the user, the average score of all notes is determined according to the average score of each note, the average score of all notes is the average value of the note parameters, and a range of the scale with higher score (for example, the score is higher than the average score of all pitches) is obtained.
The average score of each note can be obtained according to a plurality of recording audios of the user, the scores of the same note in the plurality of recording audios are weighted and averaged, and the weighted and averaged value is used as the average score of the note.
Alternatively, the server determining the range of the pitch range from the pitch parameter average and the pitch parameter of each note may include: taking the first note higher than the average value of the pitch parameter as the lower limit of the range of the pitch range according to the sequence of the pitches represented by the notes from the bass to the treble; taking a second note with the first note higher than the average value of the pitch parameter as the upper limit of the range of the pitch range according to the sequence of the pitches represented by the notes from high pitch to low pitch; the pitch represented by the consecutive notes between the lower limit and the upper limit is taken as the range of the pitch range.
As shown in fig. 5, the musical notes include C, # C, D, # D, E, F, # F, G, # G, A, # A, B, and the average scores of these musical notes in all the recorded audio of the user are 60, 70, 80, 60, 90, 70, 80, 70, 60, 20 in this order. The average score for all notes in FIG. 5 is: 67.5 points, the first tone higher than the average score is used as the lower limit (# C) from the low tone, the first tone higher than the average score is used as the upper limit (a) from the high tone to the low tone, while the ordinary user sings the music without going up the high tone or without going down the low tone, the two upper and lower limits obtained above can be simply regarded as the limits of the user without going up and without going down, the musical notes in the middle of the two boundaries can be roughly regarded as the user can perform well, so the most suitable range of the user is obtained here: the continuous notes between # C and A, and then finding the accompaniment meeting the range of the register from the accompaniment library and recommending the accompaniment to the user.
When the server determines the target audio file matching with the range of the register, the following two schemes can be adopted, including: and selecting the audio file with all the musical notes in the range of the range as a target audio file, and selecting the audio file with a certain proportion of the musical notes outside the range of the range as the target audio file.
Optionally, the server searching for the target audio file with the first identifier according to the range of the range may include: acquiring the tone highest value and the tone lowest value of a range of a register; searching for an audio file having a note with a pitch between a pitch maximum and a pitch minimum; and taking the searched audio file as a target audio file.
In the example shown in fig. 5, the register range is the consecutive notes between # C to a, and then, the audio file having the highest value of the pitch not higher than a and the lowest value of the pitch not lower than # C is searched for, resulting in the target audio file. All notes found in the target audio file in this way are in the range # C to a. Therefore, all the notes of the target audio file have pitches suitable for the user to sing, so that the target audio file recommended to the user is suitable for the user to sing, namely, when the user sings the target audio file, the similarity between each note sung and the note per se is higher.
Due to the characteristic of note change of music, some music cannot ensure that all notes are in the range of the range. That is, finding a target audio file with a first identification from a range of a register includes: acquiring the tone highest value and the tone lowest value of a range of a register; searching an audio file with the pitch being beyond the pitch highest value and the pitch lowest value and the ratio of the first note being smaller than a preset value; and taking the searched audio file as a target audio file, wherein the proportion of the searched audio file is the ratio of the number of the first musical notes to the number of all the musical notes of the searched audio file.
For example, the number of all the notes in an audio file is 200, wherein the number of the first notes not in the range of the register is 9, then the ratio is 1/20, and in the case of the preset value 1/30, the audio file with the ratio of 1/20 can be used as the target audio file. It should be noted that the preset value can be adjusted, for example, the preset value can be adjusted for different types of music.
Optionally, after the server pushes the target audio file to the target account, the method further includes: acquiring target recording data of a target account, wherein the target recording data is singing data associated with a target audio file; extracting the tone parameter of each note in the target recording data to obtain an extraction result; adjusting the range of the range according to the extraction result to obtain the adjusted range of the range; and pushing a first audio file for the target account according to the adjusted range of the.
The embodiment can adjust the range of the vocal range in real time according to the recording data of the user, and after the user sings a song, the scoring system can be used for obtaining the scoring condition of each note in the target audio file finished by the current singing, and the range of the vocal range of the user is adjusted according to the scoring condition. For example, the range of the pitch range is expanded or reduced, and the range of the pitch range is shifted to a high pitch or to a low pitch. And pushing the audio file for the target account corresponding to the user again according to the adjusted range of the range of. The pushed first audio file may be an audio file having the same or different first identification as the target audio file. For example, the target audio file is "XXXXX" for a male version of the accompaniment, and again "XXXXX" for a female version of the accompaniment may be recommended, and accompaniment of other songs may be possible. In either case, however, the recommended audio file is matched to the range of the target account.
Optionally, before the server receives the play instruction sent by the target account, the method further includes: searching at least one audio file matched with the range of the target account; and pushing at least one audio file to the target account.
After the application program is opened, before a play instruction is received, at least one audio file may be recommended to the target account, as shown in fig. 6, and a plurality of tags may be displayed on the page, for example: guessing your likes, requesting a song list, speeding up a song list, new song list and the like. A plurality of audio files can be displayed under the label guessing you like, the ranges of the audio files are matched with the range of the target account, favorite music can be quickly selected under the label guessing you like when the target account does not have a singing target, and the audio file is suitable for the user to sing, so that the application convenience and the user experience are improved.
Fig. 7 is a system architecture diagram of an audio file push method according to an embodiment of the present invention. An embodiment of the present invention will be described below with reference to fig. 7.
Step S701, a user initiates a chorus behavior through a user terminal such as a mobile phone;
step S702, a user terminal initiates a recommendation request to a recommendation background;
step S703, the recommending background inquires about the accompaniment matched with the optimal range of the user from the server (the server stores the MIDI file of the user audio and the optimal range of the sound range);
step S704, receiving the accompaniment which is returned by the server and matched with the optimal range of the user, namely the accompaniment which meets the condition;
step S705, the recommending background inquires the accompaniment matched with the optimal range of the user in an accompaniment audio MIDI file server;
step S706, recommending the background to receive the accompaniment which meets the conditions and is returned by the accompaniment audio MIDI file server;
step S707, the recommendation background returns a recommendation result to the user terminal, such as 'national Karaoke' audio software returned to the user terminal, and the recommendation result is displayed to the user through the user terminal;
step S708, the audio data of singing by the user collected by the user terminal, namely the original voice range data of the user is generated and sent to the original audio data server of the user for storage;
step S709, the intelligent MIDI file conversion server periodically scans the user data stored in the server, i.e. the user original audio data (i.e. the user original sound domain data);
step S710, the intelligent MIDI file conversion server returns the range of the range with higher user score according to the score of each pitch obtained by the scoring background so as to determine the range of the range with higher user score;
in step S711, the intelligent MIDI file conversion server transmits the MIDI file and the user optimal register range to the user audio MIDI file and optimal register range server for storage.
The embodiment of the application analyzes the recording audio of the user, on one hand, the recording audio is closer to the user, so that the recommendation is more accurate, on the other hand, the part of the storage data is also utilized, and the value of the part of the storage data is improved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
According to another aspect of the embodiments of the present invention, there is also provided an audio file pushing apparatus for implementing the audio file pushing method, as shown in fig. 8, the apparatus including:
a receiving unit 802, configured to receive a play instruction sent by a target account, where the play instruction is used to instruct to play an audio file with a first identifier;
the play instruction may be sent by searching for a first identifier, which may be the name of the song, the name of the artist, the name of the movie associated with the song, and so on. For example, the user inputs a song title through a search box to instruct playing of an accompaniment audio file related to the song title. The accompaniment audio file of the song corresponding to the song name is the audio file with the first identification.
The acquiring unit 804 is used for acquiring the range of the vocal range of the target account according to the historical singing data of the target account;
the register range is the range of notes that fit the target account to sing. The note may represent a tone, and both the high tone and the low tone are not easy to sing, and the range of the note good at the target account may be obtained according to the historical sing data of the target account, that is, the range of the pitch range of the target account is determined.
A searching unit 806, configured to search, in response to the playing instruction, a target audio file having a first identifier according to the range of the range, where the range of the target audio file matches the range of the range;
and searching a target audio file in an audio database, wherein the target audio file is a file with a first identifier, namely an accompaniment audio file which is the same as the first identifier in the audio files searched by the target account. For example, the target account number searches for "XXXXX", and the target audio file searched for is the accompaniment audio file of "XXXXX". The range of the target audio file is matched with the range of the range, for example, the target account number is male voice, the original singing is female voice, when the male voice version of the accompaniment exists, the searched target audio file is the accompaniment of the male birth version, namely, the range of the male voice accompaniment is matched with the range of the target account number.
A first pushing unit 808, configured to push the target audio file to the target account.
As shown in fig. 3 and 4. The target account inputs the first identifier through the search box shown in fig. 3, and displays the searched accompaniment file. The first ranked is the target audio file, which is the accompaniment audio file that best matches the range of the target account. Fig. 3 shows audio files recommended under the accompaniment label, and fig. 4 shows audio files recommended under the sum label, including accompaniment audio files and other audio files.
When the accompaniment file is recommended to the user, the target audio file is matched according to the range of the sound range shown by the historical singing data of the user, so that the pushed audio file is more suitable for the user to sing, the similarity between the singing tone and the accompaniment tone is higher, the technical problem that the pushed audio file in the prior art is inaccurate is solved, and the technical effect of improving the accuracy of pushing the audio file is achieved.
When determining the target audio file matching with the range of the register, the following two schemes can be adopted, including: and selecting the audio file with all the musical notes in the range of the range as a target audio file, and selecting the audio file with a certain proportion of the musical notes outside the range of the range as the target audio file.
Optionally, the lookup unit includes: the first acquisition module is used for acquiring the tone highest value and the tone lowest value of the range of the register; the first searching module is used for searching an audio file with the tone of the musical note between the tone highest value and the tone lowest value; and the first determining module is used for taking the searched audio file as a target audio file.
Optionally, the lookup unit includes: the second acquisition module is used for acquiring the tone highest value and the tone lowest value of the range of the register; the second searching module is used for searching the audio file of which the ratio of the first note of which the tone is beyond the tone highest value and the tone lowest value is smaller than a preset value; and the second determining module is used for taking the searched audio file as a target audio file, wherein the proportion of the searched audio file is the ratio of the number of the first musical notes to the number of all the musical notes of the searched audio file.
In the example shown in fig. 5, the register range is the consecutive notes between # C to a, and then, the audio file having the highest value of the pitch not higher than a and the lowest value of the pitch not lower than # C is searched for, resulting in the target audio file. All notes found in the target audio file in this way are in the range # C to a. Therefore, all the notes of the target audio file have pitches suitable for the user to sing, so that the target audio file recommended to the user is suitable for the user to sing, namely, when the user sings the target audio file, the similarity between each note sung and the note per se is higher.
Due to the characteristic of note change of music, some music cannot ensure that all notes are in the range of the range. That is, finding a target audio file with a first identification from a range of a register includes: acquiring the tone highest value and the tone lowest value of a range of a register; searching an audio file with the pitch being beyond the pitch highest value and the pitch lowest value and the ratio of the first note being smaller than a preset value; and taking the searched audio file as a target audio file, wherein the proportion of the searched audio file is the ratio of the number of the first musical notes to the number of all the musical notes of the searched audio file.
For example, the number of all the notes in an audio file is 200, wherein the number of the first notes not in the range of the register is 9, then the ratio is 1/20, and in the case of the preset value 1/30, the audio file with the ratio of 1/20 can be used as the target audio file. It should be noted that the preset value can be adjusted, for example, the preset value can be adjusted for different types of music.
Optionally, the obtaining unit includes: the third acquisition module is used for acquiring the pitch parameter of the target note in the historical singing data, wherein the pitch parameter is used for expressing the similarity between the singing pitch and the pitch of the note; the fourth acquisition module is used for acquiring the pitch parameter average value of the target note; and the range determining module is used for determining the range of the range according to the average value of the pitch parameter and the pitch parameter of each note.
The pitch parameter may be a score for each note, which may be scored using the scoring system of the singing application itself. When the similarity between the note sung by the user and the tone of the note is higher, the score of the note is higher, and when the note with the higher score is more in the song sung by the user corresponding to the target account, the overall score of the song finished sung is higher. In the embodiment, the audio data of the user needs to be analyzed, the simple audio data is not well analyzed and needs to be converted into a MIDI file, and the corresponding relation between singing score and pitch and a score model are obtained through analysis by combining a scoring system of a singing application program, and finally, the score model is matched and recommended with the range of the vocal range of the accompaniment in the accompaniment library.
First, a note-score relationship based on MIDI file analysis is modeled.
In the embodiment, each note in the user recording data is obtained mainly by using the MIDI file, and score data of each note is obtained by using a singing score system of a singing application. The MIDI file contains MIDI events and meta-events, and the note information is that in the meta-events, all the meta-events start with 0xFF, wherein the note information is 0x7F, so each note of the user's recorded audio can be obtained by identifying 0xFF and 0x7F, and the score of each note is inquired in the scoring system, the corresponding relationship of the singing score and the note is established, then the average score of each note is calculated through a plurality of recorded audio of the user, the average score of all notes is determined according to the average score of each note, the average score of all notes is the average value of the note parameters, and a range of the scale with higher score (for example, the score is higher than the average score of all pitches) is obtained.
The average score of each note can be obtained according to a plurality of recording audios of the user, the scores of the same note in the plurality of recording audios are weighted and averaged, and the weighted and averaged value is used as the average score of the note.
Optionally, the range determination module comprises: a first pitch range sub-module for setting a first note higher than the average of the pitch parameter as a lower limit of the pitch range in an order from a low pitch to a high pitch of a tone represented by the notes; a second pitch range sub-module for setting a first second note higher than the average of the pitch parameter as an upper limit of the pitch range in an order from high to low in a pitch represented by the notes; and the range determining submodule is used for taking the pitch represented by the continuous notes between the lower limit and the upper limit as the range of the range.
As shown in fig. 5, the musical notes include C, # C, D, # D, E, F, # F, G, # G, A, # A, B, and the average scores of these musical notes in all the recorded audio of the user are 60, 70, 80, 60, 90, 70, 80, 70, 60, 20 in this order. The average score for all notes in FIG. 5 is: 67.5 points, the first tone higher than the average score is used as the lower limit (# C) from the low tone, the first tone higher than the average score is used as the upper limit (a) from the high tone to the low tone, while the ordinary user sings the music without going up the high tone or without going down the low tone, the two upper and lower limits obtained above can be simply regarded as the limits of the user without going up and without going down, the musical notes in the middle of the two boundaries can be roughly regarded as the user can perform well, so the most suitable range of the user is obtained here: the continuous notes between # C and A, and then finding the accompaniment meeting the range of the register from the accompaniment library and recommending the accompaniment to the user.
Optionally, the apparatus further comprises: the recording data unit is used for acquiring target recording data of a target account after a target audio file is pushed to the target account, wherein the target recording data is singing data associated with the target audio file; the extraction unit is used for extracting the tone parameter of each note in the target recording data to obtain an extraction result; the adjusting unit is used for adjusting the range of the range according to the extraction result to obtain the adjusted range of the range; and the second pushing unit is used for pushing the first audio file for the target account according to the adjusted range of the range.
The embodiment can adjust the range of the vocal range in real time according to the recording data of the user, and after the user sings a song, the scoring system can be used for obtaining the scoring condition of each note in the target audio file finished by the current singing, and the range of the vocal range of the user is adjusted according to the scoring condition. For example, the range of the pitch range is expanded or reduced, and the range of the pitch range is shifted to a high pitch or to a low pitch. And pushing the audio file for the target account corresponding to the user again according to the adjusted range of the range of. The pushed first audio file may be an audio file having the same or different first identification as the target audio file. For example, the target audio file is "XXXXX" for a male version of the accompaniment, and again "XXXXX" for a female version of the accompaniment may be recommended, and accompaniment of other songs may be possible. In either case, however, the recommended audio file is matched to the range of the target account.
Optionally, the apparatus further comprises: the matching unit is used for searching at least one audio file matched with the scope of the target account according to the scope of the target account before receiving the playing instruction sent by the target account; and the third pushing unit is used for pushing at least one audio file to the target account.
After the application program is opened, before a play instruction is received, at least one audio file may be recommended to the target account, as shown in fig. 6, and a plurality of tags may be displayed on the page, for example: guessing your likes, requesting a song list, speeding up a song list, new song list and the like. A plurality of audio files can be displayed under the label guessing you like, the ranges of the audio files are matched with the range of the target account, favorite music can be quickly selected under the label guessing you like when the target account does not have a singing target, and the audio file is suitable for the user to sing, so that the application convenience and the user experience are improved.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device (for example, but not limited to, a server shown in fig. 1) for implementing the method for pushing an audio file, as shown in fig. 9, the electronic device includes a memory 905 and a processor 901, the memory 905 stores therein a computer program, and the processor 901 is configured to execute the steps in any one of the method embodiments by the computer program.
Alternatively, fig. 9 is a block diagram of an electronic device according to an embodiment of the invention. As shown in fig. 9, the electronic device may include: one or more processors 901 (only one of which is shown), at least one communication bus 902, a user interface 903, at least one transmitting device 904, and memory 905. Wherein a communication bus 902 is used to enable connective communication between these components. The user interface 903 may include, among other things, a display 906 and a keyboard 907. The transmission means 904 may optionally comprise a standard wired interface and a wireless interface.
Optionally, in this embodiment, the server may be at least one network device of a plurality of network devices located in a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, receiving a playing instruction sent by the target account, wherein the playing instruction is used for instructing to play the audio file with the first identifier;
s2, acquiring the range of the vocal range of the target account according to the historical singing data of the target account;
s3, responding to the playing instruction, searching a target audio file with a first identifier according to the range of the range, wherein the range of the target audio file is matched with the range of the range;
and S4, pushing the target audio file to the target account.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 9 is merely an illustration, and the electronic device may be, but is not limited to, the server shown in fig. 1. Fig. 9 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 9, or have a different configuration than shown in FIG. 9.
The memory 905 can be used for storing software programs and modules, such as program instructions/modules corresponding to the method and apparatus for pushing an audio file in the embodiment of the present invention, and the processor 901 executes various functional applications and data processing by running the software programs and modules stored in the memory 905, that is, implements the above-mentioned method for pushing an audio file. The memory 905 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 905 may further include memory located remotely from the processor 901, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 904 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 904 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 904 is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
Specifically, the memory 905 is used for storing preset action conditions, information of preset authorized users, and application programs.
The embodiment of the invention provides a scheme of a method for pushing audio files. When the accompaniment file is recommended to the user, the target audio file is matched according to the range of the sound range shown by the historical singing data of the user, so that the pushed audio file is more suitable for the user to sing, the similarity between the singing tone and the accompaniment tone is higher, the technical problem that the pushed audio file in the prior art is inaccurate is solved, and the technical effect of improving the accuracy of pushing the audio file is achieved.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, receiving a playing instruction sent by the target account, wherein the playing instruction is used for instructing to play the audio file with the first identifier;
s2, acquiring the range of the vocal range of the target account according to the historical singing data of the target account;
s3, responding to the playing instruction, searching a target audio file with a first identifier according to the range of the range, wherein the range of the target audio file is matched with the range of the range;
and S4, pushing the target audio file to the target account.
Optionally, the storage medium is further configured to store a computer program for executing the steps included in the method in the foregoing embodiment, which is not described in detail in this embodiment.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (7)

1. A method for pushing an audio file, comprising:
receiving a playing instruction sent by a target account, wherein the playing instruction is used for indicating to play an audio file with a first identifier;
acquiring the range of the register of the target account according to the historical singing data of the target account, specifically determining the score of the note according to the similarity between the tone of the note sung by the user of the target account and the tone of the note, determining an average score of the notes from the plurality of recorded audio, determining an average score of all notes from the average score of the notes, determining the average score of all notes as a note parameter average, taking the first note higher than the mean value of the note parameters as the lower limit of the range of the register in the sequence from the bass to the treble of the tones represented by the notes, taking a second note with a first note higher than the average value of the note parameters as the upper limit of the range of the pitch range and taking the pitches represented by the continuous notes between the lower limit and the upper limit as the range of the pitch range in the sequence from high pitch to low pitch;
responding to the playing instruction, and acquiring the tone highest value and the tone lowest value of the range of the register; searching for an audio file with the first identifier, wherein the pitch of the audio file is less than a preset value, and the duty ratio of a first note of which the pitch is beyond the pitch highest value and the pitch lowest value is less than the preset value; taking the searched audio file as a target audio file, wherein the proportion of the first musical notes is the ratio of the number of the first musical notes to the number of all the musical notes of the searched audio file;
and pushing the target audio file to the target account.
2. The method of claim 1, wherein after pushing the target audio file to the target account, the method further comprises:
acquiring target recording data of the target account, wherein the target recording data is singing data associated with the target audio file;
extracting the tone parameter of each note in the target recording data to obtain an extraction result;
adjusting the range of the range according to the extraction result to obtain the adjusted range of the range;
and pushing a first audio file for the target account according to the adjusted range of the range.
3. The method according to claim 1, wherein before receiving the play command from the target account, the method further comprises:
searching at least one audio file matched with the range of the target account;
and pushing the at least one audio file to the target account.
4. An apparatus for pushing an audio file, comprising:
the receiving unit is used for receiving a playing instruction sent by a target account, wherein the playing instruction is used for indicating to play an audio file with a first identifier;
the obtaining unit is configured to obtain a range of a vocal range of the target account according to the historical singing data of the target account, and specifically includes: determining scores of notes according to the similarity between the pitches of the notes sung by the user of the target account and the pitches of the notes, determining average scores of the notes according to a plurality of recording audios, determining the average scores of all the notes according to the average scores of the notes, determining the average scores of all the notes as a note parameter average value, taking a first note higher than the note parameter average value as a lower limit of the range of the pitch range according to the sequence from low pitch to high pitch of the pitches represented by the notes, taking a second note higher than the note parameter average value as an upper limit of the range of the pitch range according to the sequence from high pitch to low pitch of the pitches represented by the notes, and taking the pitches represented by continuous notes between the lower limit and the upper limit as the range of the pitch range;
the searching unit comprises a second obtaining module, and is used for obtaining the tone highest value and the tone lowest value of the range of the register; the second searching module is used for searching the audio file with the first identifier, wherein the ratio of the first notes with the tones outside the tone highest value and the tone lowest value is smaller than a preset value; a second determining module, configured to use the found audio file as a target audio file, where the proportion of the first musical note is a ratio between the number of the first musical note and the number of all the musical notes of the found audio file;
and the first pushing unit is used for pushing the target audio file to the target account.
5. The apparatus of claim 4, further comprising:
the recording data unit is used for acquiring target recording data of the target account after the target audio file is pushed to the target account, wherein the target recording data is singing data associated with the target audio file;
the extracting unit is used for extracting the tone parameter of each note in the target recording data to obtain an extraction result;
the adjusting unit is used for adjusting the range of the range according to the extraction result to obtain the adjusted range of the range;
and the second pushing unit is used for pushing a first audio file for the target account according to the adjusted range of the range.
6. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 3 when executed.
7. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 3 by means of the computer program.
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 CN109710797A (en) 2019-05-03
CN109710797B true 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)

Families Citing this family (1)

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

Citations (4)

* 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
CN106611603A (en) * 2015-10-26 2017-05-03 腾讯科技(深圳)有限公司 Audio processing method and audio processing device
CN106991163A (en) * 2017-03-31 2017-07-28 福州大学 A kind of song recommendations method based on singer's sound speciality

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9497583B2 (en) * 2007-12-12 2016-11-15 Iii Holdings 2, Llc System and method for generating a recommendation on a mobile device
CN103955490A (en) * 2014-04-16 2014-07-30 华为技术有限公司 Audio playing method and audio playing equipment
CN105550316B (en) * 2015-12-14 2019-07-02 广州酷狗计算机科技有限公司 The method for pushing and device of audio list
CN106919583B (en) * 2015-12-25 2020-11-10 广州酷狗计算机科技有限公司 Audio file pushing method and device
CN105825868B (en) * 2016-05-30 2019-11-12 福州大学 A kind of extracting method of the effective range of singer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106611603A (en) * 2015-10-26 2017-05-03 腾讯科技(深圳)有限公司 Audio processing method and audio processing device
CN106991163A (en) * 2017-03-31 2017-07-28 福州大学 A kind of song recommendations method based on singer's sound speciality

Also Published As

Publication number Publication date
CN109710797A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
US20100125539A1 (en) Hybrid audio-visual categorization system and method
EP1975813A1 (en) Method for content recommendation
KR100615522B1 (en) music contents classification method, and system and method for providing music contents using the classification method
US20080256042A1 (en) Automatically Acquiring Acoustic and Cultural Information About Music
CN108766451B (en) Audio file processing method and device and storage medium
CN110010159B (en) Sound similarity determination method and device
Rocamora et al. Query by humming: Automatically building the database from music recordings
Allik et al. Musiclynx: Exploring music through artist similarity graphs
CN113268630B (en) Audio retrieval method, device and medium
CN109710797B (en) Audio file pushing method and device, electronic device and storage medium
KR20200070732A (en) Apparatus for recommending music contents
Sánchez-Moreno et al. Recommendation of songs in music streaming services: dealing with sparsity and gray sheep problems
CN106775567B (en) Sound effect matching method and system
CN105575400A (en) Method, terminal, server, and system for obtaining song information
Armentano et al. Genre classification of symbolic pieces of music
JP2002055695A (en) Music search system
JP2005346347A (en) Information retrieval apparatus, information retrieval method, information retrieval program and recording medium
Liu Effective results ranking for mobile query by singing/humming using a hybrid recommendation mechanism
CN110019921B (en) Audio and attribute association method and device and audio searching method and device
CN107133344B (en) Data processing method and device
JP5085577B2 (en) Playlist creation device, music playback device, playlist creation method, and playlist creation program
CN107436953B (en) Music searching method and system
CN113129856A (en) Music score automatic correction method based on big data
Yang et al. Improving Musical Concept Detection by Ordinal Regression and Context Fusion.
JP2006243887A (en) Information retrieval device, method and computer program

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