Method, terminal and storage medium for obtaining audio groups with the same melody

By calculating the number of similar audios and determining benchmark feature information, the problem of inaccurate aggregation of audio groups with the same melody is solved, and fast and accurate determination and sorting of audio groups with the same melody are achieved.

CN113157968BActive Publication Date: 2024-10-11TENCENT MUSIC ENTERTAINMENT TECH (SHENZHEN) CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202110373096.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-07
Publication Date
2024-10-11
Estimated Expiration
2041-04-07

AI Technical Summary

Technical Problem

When the existing technology determines audio groups with the same melody, the feature points of the audio with the largest playback volume easily become outliers, resulting in inaccurate aggregation of audio groups with the same melody and inaccurate sorting results.

Method used

By determining the similarity between the characteristic information of each audio and other audios, calculating the number of similar audios, and determining the benchmark feature information based on the number of similar audios, avoiding the benchmark feature information from being outliers, ensuring that the audio is aggregated in areas with dense feature points, thereby ensuring accurate Form an audio group with the same melody.

Benefits of technology

It achieves the rapid and accurate determination of audio groups with the same melody, avoids the appearance of outliers, ensures that as much audio as possible with small differences is aggregated together, and improves the accuracy of sorting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113157968B_ABST
    Figure CN113157968B_ABST
Patent Text Reader

Abstract

The present application discloses a method, terminal and storage medium for obtaining a same-melody audio group, and belongs to the field of Internet technology. The method includes: determining multiple audios corresponding to a target music name; extracting feature information of each audio; for each audio, determining the similarity between the feature information of the audio and the feature information of each other audio, and determining the number of similarities greater than a first preset threshold as the number of similar audios corresponding to the audio; determining benchmark feature information according to the number of similar audios corresponding to each audio; among the multiple audios, obtaining audios whose corresponding feature information has a similarity with the benchmark feature information greater than a second preset threshold, to form the same-melody audio group corresponding to the target music name. The embodiment of the present application can accurately aggregate as many audios as possible with small differences, and then accurately sort them according to the same-melody audio group.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a method, a terminal and a storage medium for obtaining a same-melody audio group. Background Art

[0002] In the field of music, the most common recommendation method is hot recommendation. The method of hot recommendation is to determine the total playback volume of the audio group with the same melody corresponding to each music name, sort the audio group with the same melody corresponding to each music name, and obtain the sorting result. Determine the audio groups with the same melody corresponding to a preset number of music names in the sorting result, for each audio group with the same melody in the preset number of audio groups with the same melody, determine the audio with the largest playback volume in the audio group with the same melody according to the playback volume corresponding to each audio in the audio group with the same melody, and then use the audio as the audio to be recommended corresponding to the audio group with the same melody. The preset number of audios to be recommended are recommended to the user. Among them, the melody of each audio in the audio group with the same melody is the same.

[0003] In the related technology, in order to determine the audio group with the same melody corresponding to the target music name, it is necessary to determine multiple audios corresponding to the target music name, and extract the feature information of each audio, take the feature information of the audio with the largest number of plays among the multiple audios as the benchmark feature information, calculate the similarity between the feature information of each audio and the benchmark feature information, and then make the audios with corresponding similarities greater than a preset value form the audio group with the same melody.

[0004] In the above process, after mapping multiple audios to the feature space, if the feature point corresponding to the audio with the largest number of plays is an outlier 1' (such as Figure 1 As shown), it is impossible to aggregate as many audios as possible with small differences, which leads to a small total playback volume of the audio group with the same melody and inaccurate sorting results, where outliers are feature points far away from the dense area of ​​feature points. Summary of the invention

[0005] The embodiment of the present application provides a method, a terminal and a storage medium for obtaining a same melody audio group, which can quickly and accurately determine the same melody audio group. The technical solution is as follows:

[0006] On the one hand, a method for obtaining a same-melody audio group is provided, the method comprising:

[0007] Determine multiple audios corresponding to the target music name;

[0008] Extract feature information of each audio;

[0009] For each audio, determine the similarity between the feature information of the audio and the feature information of each other audio, and determine the number of similarities greater than a first preset threshold as the number of similar audios corresponding to the audio;

[0010] Determine benchmark feature information according to the number of similar audios corresponding to each audio;

[0011] Among the multiple audios, audios whose corresponding feature information has a similarity with the benchmark feature information greater than a second preset threshold are obtained to form an audio group with the same melody corresponding to the target music name.

[0012] Optionally, determining the benchmark feature information according to the number of similar audios corresponding to each audio includes:

[0013] According to the number of similar audios corresponding to each audio, the audios are sorted from large to small to obtain an audio sequence;

[0014] Determine the number N of relevant feature information of the benchmark feature information according to the maximum number M of similar audio in the audio sequence;

[0015] The benchmark feature information is determined according to the feature information of the first N audios in the audio sequence.

[0016] Optionally, determining the number N of relevant feature information of the benchmark feature information according to the maximum number M of similar audios includes:

[0017] The maximum number M of similar audios is determined as the number N of relevant feature information of the benchmark feature information.

[0018] Optionally, determining the number N of relevant feature information of the benchmark feature information according to the maximum number M of similar audio in the audio sequence includes:

[0019] If M is an odd number, the number of similar audios corresponding to the (M+1) / 2th audio in the audio sequence is determined as the number N of relevant feature information of the benchmark feature information;

[0020] If M is an even number, the average value of the number of similar audios corresponding to the (M+1) / 2th audio and the number of similar audios corresponding to the (M-1) / 2th audio in the audio sequence is determined as the number N of relevant feature information of the benchmark feature information.

[0021] Optionally, determining the benchmark feature information according to feature information of the first N audios in the audio sequence includes:

[0022] The average value of the feature information of the first N audios in the audio sequence is calculated as the benchmark feature information.

[0023] Optionally, determining the benchmark feature information according to feature information of the first N audios in the audio sequence includes:

[0024] Determine at least one feature information group according to feature information of the first N audios in the audio sequence, wherein the similarity between the feature information of every two audios in each feature information group is greater than a third preset threshold, and the similarity between the feature information of the audios in any two feature information groups is less than a fourth preset threshold;

[0025] According to the characteristic information in each characteristic information group, the benchmark characteristic information corresponding to each characteristic information group is determined.

[0026] Optionally, the determination of the benchmark characteristic information corresponding to each characteristic information group includes:

[0027] The average value of all feature information in each feature information group is calculated as the benchmark feature information corresponding to each feature information group.

[0028] Optionally, determining the similarity between the feature information of the audio and feature information of each other audio includes:

[0029] According to the formula d=1-Ei@Ecenter, determine the similarity between the feature information of the audio and the feature information of other audio;

[0030] Wherein, d is the similarity between the feature information of the audio and the feature information of other audios, Ei is the feature information of the audio, and Ecenter is the feature information of other audios.

[0031] On the one hand, a device for obtaining a same-melody audio group is provided, the device comprising:

[0032] A first determination module is configured to determine multiple audios corresponding to the target music name;

[0033] An extraction module, configured to extract feature information of each audio;

[0034] A similar audio number determination module is configured to determine, for each audio, the similarity between the feature information of the audio and the feature information of each other audio, and determine the number of similarities greater than a first preset threshold as the number of similar audios corresponding to the audio;

[0035] A second determination module is configured to determine benchmark feature information according to the number of similar audios corresponding to each audio;

[0036] The same melody audio group determination module is configured to obtain audio whose corresponding feature information has a similarity with the benchmark feature information greater than a second preset threshold from the multiple audios to form a same melody audio group corresponding to the target music name.

[0037] Optionally, the second determining module is configured to:

[0038] According to the number of similar audios corresponding to each audio, the audios are sorted from large to small to obtain an audio sequence;

[0039] Determine the number N of relevant feature information of the benchmark feature information according to the maximum number M of similar audio in the audio sequence;

[0040] The benchmark feature information is determined according to the feature information of the first N audios in the audio sequence.

[0041] Optionally, the second determining module is configured to:

[0042] The maximum number M of similar audios is determined as the number N of relevant feature information of the benchmark feature information.

[0043] Optionally, the second determining module is configured to:

[0044] If M is an odd number, the number of similar audios corresponding to the (M+1) / 2th audio in the audio sequence is determined as the number N of relevant feature information of the benchmark feature information;

[0045] If M is an even number, the average value of the number of similar audios corresponding to the (M+1) / 2th audio and the number of similar audios corresponding to the (M-1) / 2th audio in the audio sequence is determined as the number N of relevant feature information of the benchmark feature information.

[0046] Optionally, the second determining module is configured to:

[0047] The average value of the feature information of the first N audios in the audio sequence is calculated as the benchmark feature information.

[0048] Optionally, the second determining module is configured to:

[0049] Determine at least one feature information group according to feature information of the first N audios in the audio sequence, wherein the similarity between the feature information of every two audios in each feature information group is greater than a third preset threshold, and the similarity between the feature information of the audios in any two feature information groups is less than a fourth preset threshold;

[0050] According to the characteristic information in each characteristic information group, the benchmark characteristic information corresponding to each characteristic information group is determined.

[0051] Optionally, the second determining module is configured to:

[0052] The average value of all feature information in each feature information group is calculated as the benchmark feature information corresponding to each feature information group.

[0053] Optionally, the similar audio number determination module is configured to:

[0054] According to the formula d=1-Ei@Ecenter, determine the similarity between the feature information of the audio and the feature information of other audio;

[0055] Wherein, d is the similarity between the feature information of the audio and the feature information of other audios, Ei is the feature information of the audio, and Ecenter is the feature information of other audios.

[0056] On the one hand, a terminal is provided, which includes a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the above-mentioned method for obtaining a same-melody audio group.

[0057] On the one hand, a computer-readable storage medium is provided, in which at least one program code is stored, and the at least one program code is loaded and executed by a processor to implement the above-mentioned method for obtaining a same-melody audio group.

[0058] On the one hand, a computer program product or a computer program is provided, which includes a computer program code, which is stored in a computer-readable storage medium, and a processor of a computer device reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the computer device executes the above-mentioned method for obtaining a homophonic audio group.

[0059] In the embodiment of the present application, the benchmark feature information is determined based on the number of similar audios corresponding to each audio, and the number of similar audios corresponding to each audio indicates the density of each audio in a certain area, that is, the more similar audios a certain audio corresponds to, the higher the density of the audio, and the fewer similar audios a certain audio corresponds to, the lower the density of the audio. It can be seen that the benchmark feature information determined based on the method of the present application is related to the density of the audio, avoiding the possibility that the feature points corresponding to the calculated benchmark feature information are outliers. The present application can accurately aggregate as many audios as possible with small differences, and then can accurately sort them according to the audio groups with the same melody. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0061] Figure 1 It is a schematic diagram of a method for obtaining an audio group with the same melody provided in an embodiment of the present application;

[0062] Figure 2 It is a schematic diagram of an implementation environment of a method for obtaining audio groups with the same melody provided in an embodiment of the present application;

[0063] Figure 3 This is a flowchart of a method for obtaining a same-melody audio group provided by an embodiment of the present application;

[0064] Figure 4 It is a schematic diagram of a method for obtaining an audio group with the same melody provided in an embodiment of the present application;

[0065] Figure 5 It is a schematic diagram of a method for obtaining an audio group with the same melody provided in an embodiment of the present application;

[0066] Figure 6 It is a schematic diagram of a method for obtaining an audio group with the same melody provided in an embodiment of the present application;

[0067] Figure 7 It is a schematic diagram of a method for obtaining an audio group with the same melody provided in an embodiment of the present application;

[0068] Figure 8 It is a structural schematic diagram of a device for obtaining an audio group with the same melody provided in an embodiment of the present application;

[0069] Fig. 9 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application;

[0070] Fig.10 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0071] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0072] Figure 2 is a schematic diagram of an implementation environment of a method for obtaining a same-melody audio group provided in an embodiment of the present application. Figure 2 , the implementation environment includes: a server 201 and a terminal 202.

[0073] The server 201 may be a single server or a server cluster consisting of multiple servers. The server 201 may be at least one of a cloud computing platform and a virtualization center, which is not limited in the present embodiment. The server 201 may send the audio to be recommended to the terminal 202. Of course, the server 201 may also include other functional servers to provide more comprehensive and diversified services.

[0074] The terminal 202 may be at least one of a smart phone, a game console, a desktop computer, a tablet computer, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, and a laptop computer. The terminal 202 is connected to the server 201 via a wired network or a wireless network, and an application supporting music playback is installed and running in the terminal 202. The terminal 202 may receive the audio to be recommended sent by the server 201, and recommend the audio to be recommended to the user.

[0075] Figure 3 This is a flowchart of a method for obtaining a same-melody audio group provided in an embodiment of the present application. This embodiment is described with a server as the execution subject. Figure 3 , the embodiment comprises:

[0076] Step 301: Determine multiple audios corresponding to the target music name.

[0077] Among them, the audio involved in the embodiments of the present application includes pure music audio and song audio.

[0078] In implementation, all audios corresponding to the target music name are determined in the server.

[0079] Step 302: Extract feature information of each audio.

[0080] The characteristic information may be spectrum characteristic information or other characteristic information.

[0081] The specific process of obtaining audio feature information is to input each audio into a pre-trained feature extraction model to obtain the feature information of each audio.

[0082] The training method of the feature extraction model is as follows: randomly select a sample from a sample set, wherein the sample set includes multiple samples, each sample includes a first sample audio, a second sample audio, and a manual annotation result. The manual annotation result is whether the first sample audio and the second sample audio are audios of the same melody. Randomly select a sample from the sample set, and obtain the first sample audio, the second sample audio, and the annotation result in the sample, such as Figure 4As shown, the first sample audio and the second sample audio are respectively input into the feature extraction model to obtain the first feature information corresponding to the first sample audio and the second feature information corresponding to the second sample audio. The similarity of the feature information of the first sample audio and the feature information of the second sample audio is calculated, and the prediction result is determined based on the similarity. When the similarity is greater than a preset threshold, the prediction result is that the first sample audio and the second sample audio are audios with the same melody, and when the similarity is less than the preset threshold, the prediction result is that the first sample audio and the second sample audio are not audios with the same melody. According to the prediction results, the manual annotation results and the loss function, the feature extraction model is trained and adjusted to complete a training and adjustment process. Then, other samples are randomly selected from the sample set, and the feature extraction model after the last training adjustment is trained and adjusted based on the other samples until the preset training adjustments are completed to obtain a pre-trained feature extraction model.

[0083] In the above process, when the manual labeling result is that the first sample audio and the second sample audio are the same melody audio, the manual labeling result can be set to 1, and when the manual labeling result is that the first sample audio and the second sample audio are not the same melody audio, the manual labeling result can be set to 0. Similarly, when the prediction result is that the first sample audio and the second sample audio are the same melody audio, the prediction result is set to 1, and when the prediction result is that the first sample audio and the second sample audio are not the same melody audio, the prediction result is set to 0.

[0084] Of course, the result that the first sample audio and the second sample audio do not correspond to the same melody audio may be set to 1, and the result that the first sample audio and the second sample audio correspond to the same melody audio may be set to 0.

[0085] The feature information extracted in the embodiment of the present application may be a feature vector or a feature matrix, which is not limited in the embodiment of the present application.

[0086] Step 303: for each audio, determine the similarity between the feature information of the audio and the feature information of each other audio, and determine the number of similarities greater than a first preset threshold as the number of similar audios corresponding to the audio.

[0087] In the embodiment of the present application, the sum of the similarity and the distance is 1, that is, the similarity and the distance are negatively correlated. That is, the greater the similarity, the smaller the distance, and the smaller the similarity, the greater the distance.

[0088] In implementation, each audio is mapped to a feature space according to the feature information corresponding to each audio. The feature space will include multiple feature points, and each feature point corresponds to the feature information of each audio. After determining the feature point corresponding to each audio in the feature space, for any feature point A in the feature space, determine the distance between other feature points and feature point A, and then determine the feature points whose distance to feature point A is less than the first distance threshold, and then use these feature points as similar feature points of feature point A, and use the number of these feature points as the number of similar audios corresponding to feature point A.

[0089] It should be noted that the sum of the first distance threshold and the first preset threshold is 1.

[0090] Optionally, the similarity between the feature information of the audio and the feature information of other audio is determined according to the formula d=1-E@Ecenter, where d is the similarity between the feature information of the audio and the feature information of other audio, E is the feature information of the audio, and Ecenter is the feature information of other audio.

[0091] The @ in the above formula refers to the inner product. The specific operation relationship can be a@b=a1*b1+a2*b2+...+an*bn, where a=(a1, a2...an), b=(b1, b2...bn).

[0092] For example, in the actual process, it is necessary to calculate the similarity between feature information A and feature information B. According to the formula d = 1-E A @E B , calculate the similarity between feature information A and feature information B. Among them, d is the similarity between feature information A and feature information B, E A is the characteristic information of the audio, E B It is the characteristic information of other audio.

[0093] In the embodiment of the present application, other distance formulas may also be used to calculate the similarity between feature information, for example, Euclidean distance formula, Mahalanobis distance formula, Manhattan distance formula, Chebyshev distance formula and other distance formulas.

[0094] Step 304: Determine benchmark feature information according to the number of similar audios corresponding to each audio.

[0095] In an embodiment of the present application, the larger the number of similar audios corresponding to each audio, the greater the probability that the feature points corresponding to the audio are in a feature point dense area. Therefore, the feature points of the benchmark feature information determined based on the number of similar audios corresponding to each audio must be in a feature point dense area.

[0096] Optionally, the audios are sorted from largest to smallest according to the number of similar audios corresponding to each audio to obtain an audio sequence. The number of relevant feature information N of the benchmark feature information is determined according to the maximum number of similar audios M. The benchmark feature information is determined according to the feature information of the first N audios in the audio sequence.

[0097] In the embodiment of the present application, there are three methods for determining the number N of relevant feature information, as described below:

[0098] In a first manner, the maximum number M of similar audios is determined as the number N of relevant feature information of the benchmark feature information.

[0099] In the second method, if M is an odd number, the number of similar audios corresponding to the (M+1) / 2th audio in the audio sequence is determined as the number N of relevant feature information of the benchmark feature information. If M is an even number, the average of the number of similar audios corresponding to the (M+1) / 2th audio and the number of similar audios corresponding to the (M-1) / 2th audio in the audio sequence is determined as the number N of relevant feature information of the benchmark feature information.

[0100] In the embodiment of the present application, after the relevant feature information N is determined, the average value of the feature information of the first N audios in the audio sequence can be directly calculated and used as the benchmark feature information.

[0101] It should be noted that the number of similar audios corresponding to the first N audios is relatively large, so each of the first N audios corresponds to a feature point dense area, and these feature point dense areas are likely to be a feature point dense area, and then the feature points corresponding to the first N audios are likely to be in a feature point dense area. Therefore, according to the feature information of the first N audios, it is determined that the feature points corresponding to the benchmark feature information must be in the feature point dense area.

[0102] The above calculation method is suitable for most feature points in the feature point dense area and a small number of points scattered in other positions of the feature space, that is, there is only one feature point dense area in the feature space. Figure 5 As shown. When the distribution characteristics of the feature points and Figure 5 When the distribution characteristics of the feature points in are similar, it can be considered that the area where the feature points corresponding to the first N audios are located is the same feature point dense area, and the feature point corresponding to the benchmark feature information is the center point of the feature point dense area.

[0103] However, in practice, a music title may correspond to at least two melodies of audio. In this case, there may be at least two feature point dense areas in the feature space. For example, taking a music title corresponding to two melodies of audio as an example, there are two feature point dense areas in the feature space. The distribution of feature points in the feature space is as follows: Figure 6 As shown, a part of the feature points are distributed in the feature point dense area A, and a part of the feature points are distributed in the feature point dense area B.

[0104] In the case where a music title may correspond to at least two melodies of audio, after determining the first N audios in the audio sequence, the first N audios in the audio sequence can also be divided, and at least one benchmark song can be determined based on the division result. The specific steps are: based on the feature information of the first N audios in the audio sequence, at least one feature information group is determined, the similarity between the feature information of every two audios in each feature information group is greater than the third preset threshold, and the similarity between the feature information of audios in any two feature information groups is less than the fourth preset threshold. Determine the benchmark feature information corresponding to each feature information group.

[0105] The third preset threshold and the fourth preset threshold in the embodiment of the present application may be equal or different. When the third preset threshold and the fourth preset threshold are different, the fourth preset threshold may be greater than the third preset threshold.

[0106] In the implementation, the feature points corresponding to N audios in the feature space are determined, and the distance between each feature point is calculated, and then the feature points whose distance is less than the third preset threshold are connected to obtain an undirected graph. Among them, the vertices in the undirected graph are feature points, and the edges in the undirected graph are the connection relationship between two feature points. In the undirected graph, at least one subgraph is determined, and then the feature information corresponding to the feature points contained in a subgraph is used as a feature information group.

[0107] In one embodiment, after determining at least one sub-image, the number of feature points contained in each sub-image is determined. If the number of feature points contained in a sub-image is greater than a preset number, feature information corresponding to each feature point contained in the sub-image is determined, and the feature information is used as a feature information group. If the number of feature points contained in a sub-image is less than a preset number, the sub-image is ignored, that is, the feature information corresponding to each feature point contained in the sub-image is not determined, and the feature information is not used as a feature information group.

[0108] Optionally, the average value of all the characteristic information in each characteristic information group is calculated to determine the benchmark characteristic information corresponding to each characteristic information group.

[0109] In the embodiment of the present application, after obtaining at least one characteristic information group, for each characteristic information group, the average value of all characteristic information in the characteristic information group is calculated, and the average value is used as the benchmark characteristic information corresponding to the characteristic information group. The average value involved in this process is actually an average characteristic information, not a numerical value.

[0110] The feature points corresponding to the benchmark feature information determined using the technical solution in the present application must be within the feature point dense area, avoiding the possibility that the feature points corresponding to the benchmark feature information in the prior art are outliers, so that the audio of songs with the same melody can be accurately clustered together.

[0111] Step 305: From the plurality of audios, obtain the audios whose corresponding feature information has a similarity with the benchmark feature information greater than a second preset threshold, and form an audio group with the same melody corresponding to the target music name.

[0112] In the embodiment of the present application, the first preset threshold and the second preset threshold are determined by those skilled in the art based on experience. There is no clear relationship between the first preset threshold and the second preset threshold, that is, the first preset threshold can be greater than the second preset threshold, can be less than the second preset threshold, and can be equal to the second preset threshold. The melody of each audio in the same melody audio group in the present application is similar.

[0113] In implementation, among multiple audios, the similarity between the feature information corresponding to each audio and the benchmark feature information is calculated, the audios with similarity greater than a second preset threshold are determined, and these audios are grouped into a same-melody audio group corresponding to the target music name.

[0114] In step 304, if multiple benchmark feature information is determined, then for each benchmark feature information, the similarity between the feature information of each audio in the multiple audios and the benchmark feature information is calculated, and then the audio whose similarity to the benchmark feature information is greater than a second preset threshold is determined, and these audios are used as the same melody audio group corresponding to the benchmark feature information. Each audio in the same melody audio group corresponding to each benchmark feature information is analyzed, and the music name corresponding to each same melody audio group is re-determined.

[0115] The multiple audios in the above process are all audios corresponding to the target music name, that is, for each benchmark feature information, the similarity between the benchmark feature information and the feature information of all audios corresponding to the target music name is calculated, and then the audio whose similarity with the benchmark feature information is greater than the second preset threshold is determined.

[0116] In the embodiment of the present application, the same melody audio group includes at most one original audio and cover audio, wherein the cover audio is the audio obtained by other personnel covering the original audio, and the original audio is the song that the singer first published by the author and sung by himself or his partner. For example, two benchmark feature information are determined in the audio corresponding to "Sherlock Holmes", and then two same melody audio groups are determined. When analyzing the audio in one of the same melody audio groups, it is found that the original audio corresponding to each audio is Zhou Bichang's "Sherlock Holmes", and the music name corresponding to the same melody audio group is set to "Sherlock Holmes-Zhou Bichang". When analyzing another same melody audio group, it is found that the original audio corresponding to each audio is Xiao Jingteng's "Sherlock Holmes", and the music name corresponding to the same melody audio group is set to "Sherlock Holmes-Xiao Jingteng". In the above process, it should be understood that the original audio corresponding to "Sherlock Holmes-Zhou Bichang" and the original audio corresponding to "Sherlock Holmes-Xiao Jingteng" are audios with unequal content and melody.

[0117] It should be noted that, in the actual process, the original singing audio can be tagged with the original singing label, and then the label of each audio in the same melody audio group can be identified to determine the original singing audio in the same melody audio group. Technical personnel can also identify the original singing audio and the cover singing audio in the same melody audio group.

[0118] In the embodiment of the present application, the benchmark feature information is determined based on the number of similar audios corresponding to each audio, and the number of similar audios corresponding to each audio indicates the density of each audio in a certain area, that is, the more similar audios a certain audio corresponds to, the higher the density of the audio, and the fewer similar audios a certain audio corresponds to, the lower the density of the audio. It can be seen that the benchmark feature information determined based on the method of the present application is related to the density of the audio, avoiding the possibility that the feature points corresponding to the calculated benchmark feature information are outliers. The present application can accurately aggregate as many audios as possible with small differences.

[0119] For example, the distance between feature point A and feature point B in the feature space is 10, and the second preset threshold is 6, wherein audio A corresponding to feature point A and audio B corresponding to feature point B are the same melody audio group. According to the method in the related art, the determined audio group with the same melody only includes audio A or audio B, and it is impossible to accurately aggregate the audios with the same melody together. The feature point corresponding to the benchmark feature information determined for the present application is close to or even the center point of feature point A and feature point B. Therefore, the audio group with the same melody determined by the present application includes audio A and audio B, and all audios with the same melody can be accurately aggregated together.

[0120] Further, such as Figure 7As shown, the feature point 1 corresponding to the benchmark feature information determined in this application must be within the feature point dense area, and Figure 1 As shown, the feature point corresponding to the audio with the largest playback volume in the related art may be an outlier 1', so that all audios with the same melody cannot be aggregated together, resulting in the inability to achieve accurate recommendation.

[0121] In an embodiment of the present application, after determining the audio group with the same melody corresponding to each music name, the audio with the highest playback volume in each audio group with the same melody can also be sorted according to the total playback volume corresponding to each audio group with the same melody, and the audio to be recommended can be determined. The specific steps are: add the playback volume of each audio in the audio group with the same melody corresponding to each music name, determine the total playback volume corresponding to each music name, and determine the first audio corresponding to each music name in the audio group with the same melody corresponding to each music name, wherein the first audio is the audio with the largest playback volume in the audio group with the same melody. According to the total playback volume corresponding to each music name, the first audio corresponding to each music name is sorted to obtain a sorting result. Determine the audio with the largest total playback volume in a preset number of the sorting results as the audio to be recommended.

[0122] Alternatively, after determining the total number of plays corresponding to each music title, the first audio corresponding to each music title is not determined, but the second audio corresponding to each music title is determined, wherein the second audio is the original audio corresponding to the music title. According to the total number of plays corresponding to each music title, the second audio corresponding to each music title is sorted to obtain a sorting result, and then the audio to be recommended is determined.

[0123] It should be noted that in the above process, the first audio is the audio with the largest playback volume in the audio group with the same melody, and the second audio is the original audio corresponding to the music name. For example, the original song corresponding to the music name "Sherlock Holmes-Bibi Zhou" is "Sherlock Holmes" sung by Bibi Zhou. In an embodiment of the present application, the audio that may be recommended to the user is the audio with the largest playback volume, or it may be the original audio. Generally speaking, the melody in the original audio is more perfect and brings the best auditory experience to the user. However, in the actual process, there is also no shortage of cover audio that can bring an auditory feast to the user.

[0124] After the server determines the audio to be recommended, the server determines the audio identifier of the audio to be recommended and sends a display notification to the terminal, wherein the display notification includes the audio identifier of the audio to be recommended. After the terminal receives the display notification sent by the server, it obtains the audio identifier in the display notification and displays these audio identifiers at a preset position of the terminal interface. When the terminal receives a selection instruction for a certain audio identifier, it sends the identifier to the server so that the server sends the audio corresponding to the audio identifier to the terminal, and then the terminal plays the audio.

[0125] Figure 8 This is a schematic diagram of a device for obtaining a same-melody audio group provided in an embodiment of the present application. The device can only be set in a server. Figure 8 , the device comprises:

[0126] The first determination module 810 is configured to determine multiple audios corresponding to the target music name;

[0127] An extraction module 820 is configured to extract feature information of each audio;

[0128] The similar audio number determination module 830 is configured to determine, for each audio, the similarity between the feature information of the audio and the feature information of each other audio, and determine the number of similarities greater than a first preset threshold as the number of similar audios corresponding to the audio;

[0129] The second determination module 840 is configured to determine the benchmark feature information according to the number of similar audios corresponding to each audio;

[0130] The same melody audio group determination module 850 is configured to obtain audios whose corresponding feature information has a similarity with the benchmark feature information greater than a second preset threshold from the multiple audios to form a same melody audio group corresponding to the target music name.

[0131] Optionally, the second determining module 840 is configured to:

[0132] According to the number of similar audios corresponding to each audio, the audios are sorted from large to small to obtain an audio sequence;

[0133] Determine the number N of relevant feature information of the benchmark feature information according to the maximum number M of similar audio in the audio sequence;

[0134] The benchmark feature information is determined according to the feature information of the first N audios in the audio sequence.

[0135] Optionally, the second determining module 840 is configured to:

[0136] The maximum number M of similar audios is determined as the number N of relevant feature information of the benchmark feature information.

[0137] Optionally, the second determining module 840 is configured to:

[0138] If M is an odd number, the number of similar audios corresponding to the (M+1) / 2th audio in the audio sequence is determined as the number N of relevant feature information of the benchmark feature information;

[0139] If M is an even number, the average value of the number of similar audios corresponding to the (M+1) / 2th audio and the number of similar audios corresponding to the (M-1) / 2th audio in the audio sequence is determined as the number N of relevant feature information of the benchmark feature information.

[0140] Optionally, the second determining module 840 is configured to:

[0141] The average value of the feature information of the first N audios in the audio sequence is calculated as the benchmark feature information.

[0142] Optionally, the second determining module 840 is configured to:

[0143] Determine at least one feature information group according to feature information of the first N audios in the audio sequence, wherein the similarity between the feature information of every two audios in each feature information group is greater than a third preset threshold, and the similarity between the feature information of the audios in any two feature information groups is less than a fourth preset threshold;

[0144] Determine the benchmark feature information corresponding to each feature information group.

[0145] Optionally, the second determining module 840 is configured to:

[0146] The average value of all feature information in each feature information group is calculated to determine the benchmark feature information corresponding to each feature information group.

[0147] Optionally, the similar audio number determining module 830 is configured to:

[0148] According to the formula d=1-Ei@Ecenter, determine the similarity between the feature information of the audio and the feature information of other audio;

[0149] Wherein, d is the similarity between the feature information of the audio and the feature information of other audios, Ei is the feature information of the audio, and Ecenter is the feature information of other audios.

[0150] In the embodiment of the present application, the benchmark feature information is determined based on the number of similar audios corresponding to each audio, and the number of similar audios corresponding to each audio indicates the density of each audio in a certain area, that is, the more similar audios a certain audio corresponds to, the higher the density of the audio, and the fewer similar audios a certain audio corresponds to, the lower the density of the audio. It can be seen that the benchmark feature information determined based on the method of the present application is related to the density of the audio, avoiding the possibility that the feature points corresponding to the calculated benchmark feature information are outliers. The present application can accurately aggregate as many audios as possible with small differences.

[0151] It should be noted that: in the actual application of the method for obtaining the same melody audio group provided in the above embodiment, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device for obtaining the same melody audio method provided in the above embodiment and the embodiment of the method for obtaining the same melody audio group belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0152] Fig. 9 The structure block diagram of a terminal 900 provided by an exemplary embodiment of the present application is shown. The terminal 900 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4), a laptop computer or a desktop computer. The terminal 900 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.

[0153] Typically, the terminal 900 includes a processor 901 and a memory 902 .

[0154] The processor 901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 901 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 901 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 901 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0155] The memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 902 is used to store at least one program code, which is used to be executed by the processor 901 to implement the method for obtaining the same melody audio group provided in the method embodiment of the present application.

[0156] In some embodiments, the terminal 900 may further optionally include: a peripheral device interface 903 and at least one peripheral device. The processor 901, the memory 902 and the peripheral device interface 903 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 903 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 904, a display screen 905, a camera assembly 906, an audio circuit 907, a positioning assembly 908 and a power supply 909.

[0157] The peripheral device interface 903 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 901 and the memory 902. In some embodiments, the processor 901, the memory 902, and the peripheral device interface 903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 901, the memory 902, and the peripheral device interface 903 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0158] The radio frequency circuit 904 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 904 communicates with communication networks and other communication devices through electromagnetic signals. The radio frequency circuit 904 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 904 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 904 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 904 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0159] The display screen 905 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 905 is a touch display screen, the display screen 905 also has the ability to collect touch signals on the surface or above the surface of the display screen 905. The touch signal can be input to the processor 901 as a control signal for processing. At this time, the display screen 905 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 905 can be one, set on the front panel of the terminal 900; in other embodiments, the display screen 905 can be at least two, respectively set on different surfaces of the terminal 900 or in a folding design; in other embodiments, the display screen 905 can be a flexible display screen, set on the curved surface or folding surface of the terminal 900. Even, the display screen 905 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 905 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).

[0160] The camera assembly 906 is used to capture images or videos. Optionally, the camera assembly 906 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 906 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0161] The audio circuit 907 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 901 for processing, or input them into the radio frequency circuit 904 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 900. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 901 or the radio frequency circuit 904 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 907 may also include a headphone jack.

[0162] The positioning component 908 is used to locate the current geographical location of the terminal 900 to implement navigation or LBS (Location Based Service). The positioning component 908 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system, Russia's Grenas system or the European Union's Galileo system.

[0163] The power supply 909 is used to power various components in the terminal 900. The power supply 909 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 909 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0164] In some embodiments, the terminal 900 further includes one or more sensors 910 , including but not limited to: an acceleration sensor 911 , a gyroscope sensor 912 , a pressure sensor 913 , a fingerprint sensor 914 , an optical sensor 915 , and a proximity sensor 916 .

[0165] The acceleration sensor 911 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 900. For example, the acceleration sensor 911 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 901 can control the display screen 905 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 911. The acceleration sensor 911 can also be used to collect motion data of games or users.

[0166] The gyro sensor 912 can detect the body direction and rotation angle of the terminal 900, and the gyro sensor 912 can cooperate with the acceleration sensor 911 to collect the user's 3D actions on the terminal 900. The processor 901 can implement the following functions based on the data collected by the gyro sensor 912: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0167] The pressure sensor 913 can be set on the side frame of the terminal 900 and / or the lower layer of the display screen 905. When the pressure sensor 913 is set on the side frame of the terminal 900, it can detect the user's holding signal of the terminal 900, and the processor 901 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 913. When the pressure sensor 913 is set on the lower layer of the display screen 905, the processor 901 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 905. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0168] The fingerprint sensor 914 is used to collect the user's fingerprint, and the processor 901 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 914, or the fingerprint sensor 914 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 901 authorizes the user to perform relevant sensitive operations, which include unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 914 can be set on the front, back, or side of the terminal 900. When a physical button or a manufacturer logo is set on the terminal 900, the fingerprint sensor 914 can be integrated with the physical button or the manufacturer logo.

[0169] The optical sensor 915 is used to collect the ambient light intensity. In one embodiment, the processor 901 can control the display brightness of the display screen 905 according to the ambient light intensity collected by the optical sensor 915. Specifically, when the ambient light intensity is high, the display brightness of the display screen 905 is increased; when the ambient light intensity is low, the display brightness of the display screen 905 is reduced. In another embodiment, the processor 901 can also dynamically adjust the shooting parameters of the camera component 906 according to the ambient light intensity collected by the optical sensor 915.

[0170] The proximity sensor 916, also called a distance sensor, is usually arranged on the front panel of the terminal 900. The proximity sensor 916 is used to collect the distance between the user and the front of the terminal 900. In one embodiment, when the proximity sensor 916 detects that the distance between the user and the front of the terminal 900 is gradually decreasing, the processor 901 controls the display screen 905 to switch from the screen-on state to the screen-off state; when the proximity sensor 916 detects that the distance between the user and the front of the terminal 900 is gradually increasing, the processor 901 controls the display screen 905 to switch from the screen-off state to the screen-on state.

[0171] Those skilled in the art will understand that Fig. 9 The structure shown in the figure does not constitute a limitation on the terminal 900, and the terminal 900 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0172] The computer device provided in the embodiment of the present application may be provided as a server. Fig.10 It is a structural diagram of a server provided in an embodiment of the present application. The server 1000 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 1001 and one or more memories 1002, wherein the memory 1002 stores at least one program code, and the at least one program code is loaded and executed by the processor 1001 to implement the method for obtaining the same melody audio group provided in the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server may also include other components for implementing device functions, which will not be repeated here.

[0173] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a program code, and the program code can be executed by a processor in a terminal or a server to complete the method for obtaining a same-melody audio group in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact-disc read-only memory, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0174] A person skilled in the art will appreciate that all or part of the steps for implementing the above embodiments may be accomplished by hardware or by hardware associated with a program code, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0175] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for obtaining audio groups with the same melody, It is characterized in that The method comprises: Determine multiple audios corresponding to the target music name; Extract feature information of each audio; For each audio, determine the similarity between the feature information of the audio and the feature information of each other audio, and determine the number of similarities greater than a first preset threshold as the number of similar audios corresponding to the audio; According to the number of similar audios corresponding to each audio, the audios are sorted from large to small to obtain an audio sequence; Determine the maximum number of similar audios M as the number N of relevant feature information of the benchmark feature information; or, if M is an odd number, determine the number of similar audios corresponding to the (M+1) / 2th audio in the audio sequence as the number N of relevant feature information of the benchmark feature information; if M is an even number, determine the average of the number of similar audios corresponding to the (M+1) / 2th audio and the number of similar audios corresponding to the (M-1) / 2th audio in the audio sequence as the number N of relevant feature information of the benchmark feature information; Calculate the average value of feature information of the first N audios in the audio sequence as benchmark feature information; or, determine at least one feature information group based on the feature information of the first N audios in the audio sequence, wherein the similarity between the feature information of every two audios in each feature information group is greater than a third preset threshold, and the similarity between the feature information of the audios in any two feature information groups is less than a fourth preset threshold; calculate the average value of all feature information in each feature information group based on the feature information in each feature information group as benchmark feature information corresponding to each feature information group; Among the multiple audios, audios whose corresponding feature information has a similarity with the benchmark feature information greater than a second preset threshold are obtained to form an audio group with the same melody corresponding to the target music name.

2. The method according to claim 1, It is characterized in that The determining the similarity between the feature information of the audio and the feature information of each other audio comprises: Determine the similarity between the feature information of the audio and the feature information of other audio according to the formula d=1-E@Ecenter; Wherein, d is the similarity between the feature information of the audio and the feature information of other audio, E is the feature information of the audio, and Ecenter is the feature information of other audio.

3. A terminal, It is characterized in that The terminal includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the operations performed by the method for obtaining a same-melody audio group as described in any one of claims 1 to 2.

4. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the operations performed by the method for obtaining a same-melody audio group as described in any one of claims 1 to 2.

Citation Information

Patent Citations

  • Method for managing immense amounts of music libraries based on mobile device

    CN101950302A

  • Music search method, music search device and terminal equipment

    CN103530426A

  • Method and device for processing audio information

    CN108132995A

  • Song audio signal processing method and audio similarity matching method and device

    CN108804474A

  • Method and device for extracting main melody track in audio data, terminal, and storage medium

    CN108831423A