Audio processing method and device
By extracting features of audio data fragments and performing clustering, the problem of inefficiency in analyzing the correspondence between speaking content and speakers in conference audio is solved, intelligent analysis and rapid positioning of audio data of the same speaker is achieved, and the efficiency of meeting records is improved.
Patent Information
- Application Number
- CN202310163420.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2024-08-23
AI Technical Summary
With the existing technology, it is difficult to intelligently analyze the correspondence between the speech content and the specific speaker in the conference audio recording. As a result, the user needs to listen to the entire audio for manual recognition, which is inefficient.
By acquiring multiple audio data segments, each segment contains only the voice data of one speaking object, extract features, determine the target parameter range based on the quantity, perform clustering, and determine the correspondence between different speaking objects and audio data segments.
It realizes intelligent analysis of the correspondence between speakers and spoken content in audio, assists users to quickly locate audio data fragments of the same speaker, and improves the efficiency of meeting records.
Smart Images

Figure CN118538205A
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of speech processing technology, and in particular to an audio processing method and device. Background Art
[0002] When users make corresponding meeting records based on conference audio, there is a situation where only the speech content of a specific speaker in the conference audio is summarized and recorded. At present, to deal with this situation, users need to listen to the conference audio in its entirety and manually identify the speech content belonging to the specific speaker in the conference audio. This is a waste of manpower and inefficient.
[0003] In this regard, there is an urgent need for a technical solution that can intelligently analyze the correspondence between the speech content and the specific speaker in the conference audio. Summary of the invention
[0004] In view of this, in order to intelligently analyze the correspondence between the speech content and the specific speaker in the conference audio, an embodiment of the present invention provides an audio processing method and device.
[0005] In a first aspect, an embodiment of the present invention provides an audio processing method, comprising:
[0006] Acquire multiple audio data segments, wherein each of the audio data segments contains only speech data of one speaker;
[0007] Performing feature extraction on each of the audio data segments to obtain audio segment features of each of the audio data segments;
[0008] determining a target parameter range based on a number of the plurality of audio data segments;
[0009] Clustering the plurality of audio data segments based on the target parameter range and the audio segment features to obtain a plurality of clustering clusters;
[0010] The corresponding relationship between different speaking objects and the audio data segments is determined based on the multiple clustering clusters.
[0011] In a possible implementation, determining the target parameter range based on the number of the plurality of audio data segments includes:
[0012] Obtaining a preset reference coefficient, and determining the number of the plurality of audio data segments;
[0013] Performing a setting operation on the reference coefficient and the quantity to obtain a reference upper limit value;
[0014] A target upper limit value is determined based on the reference upper limit value, and the target parameter range is determined based on the target upper limit value, wherein the target upper limit value is not greater than the reference upper limit value.
[0015] In a possible implementation, the obtaining of multiple audio data segments includes:
[0016] Acquire target audio data to be processed, wherein the target audio data is audio data generated during a conversation between at least two speakers;
[0017] The target audio data is segmented to obtain a plurality of audio data segments.
[0018] In a possible implementation manner, segmenting the target audio data to obtain a plurality of the audio data segments includes:
[0019] Identify the subject speaking probability corresponding to each audio frame in the target audio data;
[0020] Determine an audio frame whose corresponding object speaking probability is greater than a preset probability value as a target audio frame, wherein the target audio frame contains only speech data of one speaking object;
[0021] A plurality of continuous target audio frames in the target audio data are taken as a target frame sequence, and the target frame sequence is extracted to obtain corresponding audio data segments.
[0022] In a possible implementation manner, before segmenting the target audio data to obtain the plurality of audio data segments, the method further includes:
[0023] A preset data format is obtained, and the target audio data is format-converted according to the data format.
[0024] In a possible implementation, clustering the plurality of audio data segments based on the target parameter range and the audio segment features to obtain a plurality of clustering clusters includes:
[0025] Determine the similarity between each two audio segment features;
[0026] constructing an initial association matrix based on a plurality of said similarities;
[0027] Based on the target parameter range and the initial association matrix, determining the number of objects and the target association matrix, and performing dimension reduction on the target association matrix to obtain a corresponding spectral embedding matrix;
[0028] A clustering operation is performed on the spectral embedding matrix based on the number of objects to obtain a plurality of clustering clusters.
[0029] In a possible implementation manner, the target parameter range includes a plurality of candidate parameters, and determining the number of objects and the target association matrix based on the target parameter range and the initial association matrix includes:
[0030] For each candidate parameter, the following processing is performed:
[0031] Binarizing the initial association matrix based on the candidate parameters to obtain a corresponding candidate association matrix, and performing an eigenvalue decomposition operation based on the candidate association matrix to obtain a corresponding eigenvalue set;
[0032] Arrange all eigenvalues in the eigenvalue set in order from small to large to obtain a corresponding eigenvalue sequence, and sequentially calculate the difference between two adjacent eigenvalues in the eigenvalue sequence to obtain a corresponding difference sequence;
[0033] Calculate the ratio of the maximum difference in the difference sequence to the maximum eigenvalue in the eigenvalue set to obtain a maximum eigenvalue difference value;
[0034] Calculating the ratio of the candidate parameter to the maximum feature difference value to obtain a target ratio;
[0035] The candidate parameter with the smallest corresponding target ratio is determined as the target parameter, and the candidate association matrix corresponding to the target parameter is determined as the target association matrix, and the order of the maximum difference corresponding to the target parameter in the corresponding difference sequence is determined, and the sequence number corresponding to the order is determined as the number of objects.
[0036] In a possible implementation manner, the clustering operation is performed on the spectral embedding matrix based on the number of objects to obtain a plurality of clustering clusters, including:
[0037] Randomly selecting matrix elements of the number of objects in the spectral embedding matrix, and taking each of the matrix elements as a cluster center;
[0038] A clustering operation is performed on all matrix elements in the spectral embedding matrix based on the cluster centers of the number of objects to obtain clusters of the number of objects.
[0039] In a possible implementation, the extracting features from each of the audio data segments to obtain audio segment features of each of the audio data segments includes:
[0040] The following processing is performed for each of the audio data segments:
[0041] Extracting acoustic features of the audio data segment;
[0042] Performing a linear transformation on the acoustic features to obtain corresponding audio features, and calculating statistical features of the audio features;
[0043] The statistical features are mapped to preset feature dimensions to obtain the audio segment features.
[0044] In a second aspect, an embodiment of the present invention provides an audio processing device, including:
[0045] An acquisition module, used to acquire a plurality of audio data segments, wherein each of the audio data segments contains only speech data of one speaker;
[0046] An extraction module, used to extract features from each of the audio data segments to obtain audio segment features of each of the audio data segments;
[0047] A first determination module, configured to determine a target parameter range based on the number of the plurality of audio data segments;
[0048] A clustering module, configured to cluster the plurality of audio data segments based on the target parameter range and the audio segment features to obtain a plurality of clustering clusters;
[0049] The second determination module is used to determine the correspondence between different speaking objects and the audio data segments based on the multiple clustering clusters.
[0050] In a possible implementation manner, the first determining module is specifically configured to:
[0051] Obtaining a preset reference coefficient, and determining the number of the plurality of audio data segments;
[0052] Performing a setting operation on the reference coefficient and the quantity to obtain a reference upper limit value;
[0053] A target upper limit value is determined based on the reference upper limit value, and the target parameter range is determined based on the target upper limit value, wherein the target upper limit value is not greater than the reference upper limit value.
[0054] In a possible implementation manner, the acquisition module is specifically used to:
[0055] Acquire target audio data to be processed, wherein the target audio data is audio data generated during a conversation between at least two speakers;
[0056] The target audio data is segmented to obtain a plurality of audio data segments.
[0057] In a possible implementation manner, the acquisition module is further used to:
[0058] Identify the subject speaking probability corresponding to each audio frame in the target audio data;
[0059] Determine an audio frame whose corresponding object speaking probability is greater than a preset probability value as a target audio frame, wherein the target audio frame contains only speech data of one speaking object;
[0060] A plurality of continuous target audio frames in the target audio data are taken as a target frame sequence, and the target frame sequence is extracted to obtain corresponding audio data segments.
[0061] In a possible implementation manner, the device further includes a format conversion module, configured to:
[0062] A preset data format is obtained, and the target audio data is format-converted according to the data format.
[0063] In a possible implementation, the clustering module is specifically used to:
[0064] Determine the similarity between each two audio segment features;
[0065] constructing an initial association matrix based on a plurality of said similarities;
[0066] Based on the target parameter range and the initial association matrix, determining the number of objects and the target association matrix, and performing dimension reduction on the target association matrix to obtain a corresponding spectral embedding matrix;
[0067] A clustering operation is performed on the spectral embedding matrix based on the number of objects to obtain a plurality of clustering clusters.
[0068] In a possible implementation manner, the target parameter range includes a plurality of candidate parameters, and the clustering module is further configured to:
[0069] For each candidate parameter, the following processing is performed:
[0070] Binarizing the initial association matrix based on the candidate parameters to obtain a corresponding candidate association matrix, and performing an eigenvalue decomposition operation based on the candidate association matrix to obtain a corresponding eigenvalue set;
[0071] Arrange all eigenvalues in the eigenvalue set in order from small to large to obtain a corresponding eigenvalue sequence, and sequentially calculate the difference between two adjacent eigenvalues in the eigenvalue sequence to obtain a corresponding difference sequence;
[0072] Calculate the ratio of the maximum difference in the difference sequence to the maximum eigenvalue in the eigenvalue set to obtain a maximum eigenvalue difference value;
[0073] Calculating the ratio of the candidate parameter to the maximum feature difference value to obtain a target ratio;
[0074] The candidate parameter with the smallest corresponding target ratio is determined as the target parameter, and the candidate association matrix corresponding to the target parameter is determined as the target association matrix, and the order of the maximum difference corresponding to the target parameter in the corresponding difference sequence is determined, and the sequence number corresponding to the order is determined as the number of objects.
[0075] In a possible implementation, the clustering module is further used for:
[0076] Randomly selecting matrix elements of the number of objects in the spectral embedding matrix, and taking each of the matrix elements as a cluster center;
[0077] A clustering operation is performed on all matrix elements in the spectral embedding matrix based on the cluster centers of the number of objects to obtain clusters of the number of objects.
[0078] In a possible implementation, the extraction module is specifically used to:
[0079] The following processing is performed for each of the audio data segments:
[0080] Extracting acoustic features of the audio data segment;
[0081] Performing a linear transformation on the acoustic features to obtain corresponding audio features, and calculating statistical features of the audio features;
[0082] The statistical features are mapped to preset feature dimensions to obtain the audio segment features.
[0083] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a processor and a memory, wherein the processor is used to execute an audio processing program stored in the memory to implement the audio processing method described in any one of the first aspects.
[0084] In a fourth aspect, an embodiment of the present invention provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the audio processing method described in any one of the first aspects.
[0085] The technical solution provided by the embodiment of the present invention first obtains multiple audio data segments, wherein each audio data segment contains only the voice data of one speaker, then performs feature extraction on each audio data segment to obtain the audio segment features of each audio data segment, then determines the target parameter range based on the number of multiple audio data segments, and clusters the multiple audio data segments based on the target parameter range and the audio segment features to obtain multiple clustering clusters, and finally determines the correspondence between different speakers and audio data segments based on the multiple clustering clusters. Through this solution, the correspondence between the speaker (i.e., the speaker) and the speech content (i.e., the audio data segment) in the audio can be intelligently analyzed, thereby assisting the user to quickly locate all audio data segments belonging to the same speaker in the target audio data, thereby improving the efficiency of conference recording. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] Figure 1 A flowchart of an embodiment of an audio processing method provided by an embodiment of the present invention;
[0087] Figure 2 A flowchart of another audio processing method provided by an embodiment of the present invention;
[0088] Figure 3 A flowchart of another audio processing method provided by an embodiment of the present invention;
[0089] Figure 4 A block diagram of an embodiment of an audio processing device provided by an embodiment of the present invention;
[0090] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0091] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0092] The audio processing method provided by the present invention is explained below with reference to specific embodiments in conjunction with the accompanying drawings, and the embodiments do not constitute a limitation on the embodiments of the present invention.
[0093] See also Figure 1 , is a flow chart of an embodiment of an audio processing method provided by an embodiment of the present invention. Figure 1 As shown, the process may include the following steps:
[0094] S101, obtaining a plurality of audio data segments, wherein each audio data segment contains only speech data of one speaker.
[0095] The above-mentioned speaking object refers to the speaker.
[0096] An audio data segment is speech data containing only one speaker.
[0097] In one embodiment, the plurality of audio data segments may be voice data specified by a user.
[0098] For example, voice data uploaded by a user, or multiple audio segments selected by a user from a preset audio segment set, wherein each audio segment in the audio segment set contains voice data of only one speaker.
[0099] In another embodiment, the specific implementation of obtaining multiple audio data segments may include: obtaining target audio data to be processed, wherein the target audio data is audio data generated during a conversation between at least two speakers, and segmenting the target audio data to obtain multiple audio data segments. Thus, the target audio data is segmented into multiple audio data segments, and each audio data segment contains only voice data of one speaker.
[0100] The target audio data is audio data generated during a conversation between at least two speakers.
[0101] For example, during an online call between multiple speakers using an online call application, the online call application records the call process to obtain audio data.
[0102] For another example, during an offline chat between multiple speakers, audio data is obtained by recording the chat process using a recorder.
[0103] As for how to specifically segment the target audio data, it will be explained in detail through the following embodiments and will not be described in detail here.
[0104] S102, performing feature extraction on each audio data segment to obtain audio segment features of each audio data segment.
[0105] In one embodiment, feature extraction is performed on each audio data segment respectively, and the specific implementation of obtaining the audio segment feature of each audio data segment may include: for each audio data segment, extracting the acoustic feature of the audio data segment (such as frequency domain feature Fbank, Mel Frequency Cepstrum Coefficient (MFCC) feature, etc.), and using the acoustic feature as the corresponding audio segment feature. In this way, the audio segment feature of the audio data segment can be quickly extracted.
[0106] In practical applications, since the length of each audio data segment may be different, when extracting the acoustic features of each audio data segment, the length of the corresponding acoustic features is also different.
[0107] Based on this, in another embodiment, feature extraction is performed on each audio data segment respectively, and the specific implementation of obtaining the audio segment features of each audio data segment may also include: for each audio data segment, extracting the acoustic features of the audio data segment, performing linear transformation on the acoustic features to obtain corresponding audio features, and calculating the statistical features of the audio features, mapping the statistical features to preset feature dimensions, and obtaining audio segment features.
[0108] In this embodiment, after performing a linear transformation on the acoustic features and calculating the corresponding statistical features (such as variance and mean, etc.), all audio data segments are mapped to the same dimension, that is, a preset feature dimension (such as 192 dimensions), thereby improving the effect of subsequent clustering of audio data segments based on audio segment features.
[0109] S103: Determine a target parameter range based on the number of the plurality of audio data segments.
[0110] S104: Clustering the multiple audio data segments based on the target parameter range and the audio segment features to obtain multiple clustering clusters.
[0111] S105: Determine the correspondence between different speaking objects and audio data segments based on the multiple clustering clusters.
[0112] The following is a unified description of S103-S105:
[0113] In the embodiment of the present invention, an improved spectral clustering algorithm is used to cluster audio data segments based on a target parameter range and audio segment features, thereby determining the correspondence between different speaking objects and audio data segments based on a plurality of clustering clusters obtained by clustering. The target parameter range refers to the parameter range used by the improved spectral clustering algorithm to determine the hyperparameter during the calculation process.
[0114] In the application, the input of the spectral clustering algorithm is generally a similarity matrix. Based on this, in one embodiment, multiple audio data segments are clustered based on the target parameter range and audio segment features to obtain multiple clustering clusters. The implementation may include: determining the similarity between each two audio segment features, constructing an initial association matrix based on multiple similarities, determining the number of objects and the target association matrix based on the target parameter range and the initial association matrix, and reducing the dimension of the target association matrix to obtain a corresponding spectral embedding matrix, and clustering the spectral embedding matrix based on the number of objects to obtain multiple clustering clusters.
[0115] The initial association matrix here is the similarity matrix, which is used as the input of the spectral clustering algorithm to determine the number of objects and calculate the spectral embedding matrix.
[0116] The target parameter range contains multiple candidate parameters. During the application process, it is necessary to first determine a target parameter for the final application from the target parameter range, that is, the hyperparameter of the final application of the improved spectral clustering algorithm, and then determine the number of objects and the target association matrix through the target parameter.
[0117] Specifically, based on the target parameter range and the initial association matrix, the specific implementation of determining the number of objects and the target association matrix may include: for each candidate parameter, binarizing the initial association matrix based on the candidate parameters to obtain a corresponding candidate association matrix, and performing eigenvalue decomposition operation based on the candidate association matrix to obtain a corresponding eigenvalue set, arranging all eigenvalues in the eigenvalue set in order from small to large to obtain a corresponding eigenvalue sequence, and successively calculating the difference between two adjacent eigenvalues in the eigenvalue sequence to obtain a corresponding difference sequence, calculating the ratio of the maximum difference in the difference sequence to the maximum eigenvalue in the eigenvalue set to obtain a maximum eigenvalue difference value, calculating the ratio of the candidate parameter to the maximum eigenvalue difference value to obtain a target ratio, determining the candidate parameter with the smallest corresponding target ratio as the target parameter, and determining the candidate association matrix corresponding to the target parameter as the target association matrix, and determining the order of the maximum difference corresponding to the target parameter in the corresponding difference sequence, and determining the sequence number corresponding to the order as the number of objects.
[0118] The number of objects here refers to the number of speakers included in the target audio data, that is, the target audio data contains audio data segments corresponding to each of the speakers.
[0119] For example, if the number of objects is 3, the target audio data contains audio data segments corresponding to the three persons, and the speech characteristics of different speakers are different. Therefore, the speech segments belonging to the same person can be clustered into a cluster through clustering operation.
[0120] Based on this, the specific implementation of performing clustering operations on the spectral embedding matrix based on the number of objects to obtain multiple clustering clusters may include: randomly selecting matrix elements of the number of objects in the spectral embedding matrix, and taking each matrix element as a clustering center, and performing clustering operations on all matrix elements in the spectral embedding matrix based on the clustering centers of the number of objects to obtain clustering clusters of the number of objects.
[0121] In this way, data corresponding to the same speech feature can be clustered into the same cluster, that is, the audio data segments corresponding to the same cluster belong to the same speaker, and the audio data segments corresponding to different clusters belong to different speakers. Thus, the correspondence between different speakers and audio data segments is determined.
[0122] For example, when clustering is performed using the K-means clustering algorithm, the number of objects is 3, and the spectral embedding matrix contains 6 data, namely data 1, data 2, data 3, data 4, data 5, and data 6. The K value of the K-means clustering algorithm is set to 3, and the K-means clustering algorithm is used to cluster the 6 data contained in the target association matrix to obtain 3 clusters, among which cluster 1 contains data 1 and 2, cluster 2 contains data 3 and 4, and cluster 3 contains data 5 and 6.
[0123] It can be determined that the audio data segments corresponding to data 1 and 2 are audio data of the same speaker, the audio data segments corresponding to data 3 and 4 are audio data of the same speaker, and the audio data segments corresponding to data 5 and 6 are audio data of the same speaker.
[0124] Next, the implementation process of the improved spectral clustering algorithm is described through a complete example:
[0125] The target parameter range includes multiple candidate parameters p (each candidate parameter p is a positive integer). For example, if the target parameter range is a positive integer not exceeding 15, then candidate parameters 1-15 are included therein.
[0126] For each candidate parameter p in the parameter range, find the p similarities with the largest serial numbers in each row of the initial correlation matrix, set the values of these p similarities to 1, and set the values of other similarities to 0. In this way, the initial correlation matrix is binarized into a binary correlation matrix Ap with only p 1s in each row. Then, the average of the matrix Ap and the Ap transposed matrix is used as the new correlation matrix So that the new correlation matrix Possess certain noise resistance.
[0127] Then, using the new correlation matrix Find the Laplace matrix, perform eigenvalue decomposition on the obtained Laplace matrix to obtain the eigenvalue set and the eigenvector corresponding to each eigenvalue in the eigenvalue set, and arrange all eigenvalues in the eigenvalue set from small to large to obtain the eigenvalue sequence λ p =[λ p,1 ,λ p,2 ,λ p,3 , …λ p,i …,λ p,N ], where λ p, i represents the i-th largest eigenvalue corresponding to the p value.
[0128] Next, the difference between two adjacent eigenvalues in the eigenvalue sequence is calculated in turn to obtain the difference sequence corresponding to each candidate parameter p. p =[λ p,2 -λ p,1 ,λ p,3 -λp,2,…,λp,N-λp,N-1.
[0129] Then, e p The ratio of the maximum difference value in to the maximum eigenvalue in the eigenvalue set is defined as the normalized maximum eigenvalue difference (Normalized Maximum Eigengap, NME).
[0130] Since the curve of the p-value and NME ratio r(p) has the same trend as the speaker segmentation clustering error rate (Diarization Error Rate, DER), we select the candidate parameter p corresponding to the minimum r(p) as the target parameter, and according to the e corresponding to the target parameter p Estimate the number of objects and the correlation matrix corresponding to the target parameters The target correlation matrix is determined to be used for subsequent clustering operations, thereby minimizing the speaker segmentation clustering error rate.
[0131] The specific process of estimating the number of objects is as follows: the difference sequence e constructed based on the target association matrix corresponding to the target parameter p , as the target p , the target e p The maximum eigenvalue change (i.e. the maximum difference) is in e p The sequence number corresponding to the sorting in is used as the estimated number of clusters (i.e., the number of objects), i.e., argmax(e p ).
[0132] Since the spectral clustering algorithm can use several eigenvectors with the smallest eigenvalues to represent the characteristics of all clustered data, the eigenvalues of the above-mentioned number of objects can be selected in order from small to large in the eigenvalue sequence constructed based on the target association matrix, and the corresponding spectral embedding matrix is constructed based on the eigenvectors corresponding to the selected eigenvalues, where the size of the spectral embedding matrix is (k, num_seg), k is the number of objects, and num_seg is the number of audio data segments.
[0133] For example, if the number of audio data segments is 200 and the number of estimated objects is 2, then after performing eigenvalue decomposition on the Laplacian matrix corresponding to the target association matrix, the eigenvectors corresponding to the two smallest eigenvalues are selected to form a 200×2 spectral embedding matrix, with each row as a 2D sample, for a total of 200 samples.
[0134] Finally, the K-means clustering algorithm is used to cluster the above spectrum embedding matrix, with the number of objects as the K value of the K-means clustering algorithm. In the clustering process, the matrix elements of the number of objects are first randomly selected in the spectrum embedding matrix, and each matrix element is used as a clustering center. Based on the clustering center of the number of objects, all matrix elements in the spectrum embedding matrix are clustered to obtain the number of clustering clusters of objects. Among them, the audio data segments corresponding to the same clustering cluster belong to the same speaking object, and the audio data segments corresponding to different clustering clusters belong to different speaking objects. In this way, the clustering of audio data segments is achieved.
[0135] It should be noted that when the K-means clustering algorithm performs clustering operations, as clustering proceeds, the cluster centers are calculated and updated according to each step of the clustering process, but the number of cluster centers remains unchanged.
[0136] In addition, in another embodiment, after determining the correspondence between different speaking objects and audio data segments based on multiple clustering clusters, the following steps may be further included: for each speaking object, an object identifier is set for the speaking object, and the audio data segment corresponding to the speaking object is marked with the object identifier. In this way, it is convenient for users to quickly distinguish the audio data segments corresponding to different speaking objects.
[0137] The technical solution provided by the embodiment of the present invention first obtains multiple audio data segments, wherein each audio data segment contains only the voice data of one speaker, then performs feature extraction on each audio data segment to obtain the audio segment features of each audio data segment, then determines the target parameter range based on the number of multiple audio data segments, and clusters the multiple audio data segments based on the target parameter range and the audio segment features to obtain multiple clustering clusters, and finally determines the correspondence between different speakers and audio data segments based on the multiple clustering clusters. Through this solution, the correspondence between the speaker (i.e., the speaker) and the speech content (i.e., the audio data segment) in the audio can be intelligently analyzed, thereby assisting the user to quickly locate all audio data segments belonging to the same speaker in the target audio data, thereby improving the efficiency of conference recording.
[0138] See also Figure 2 , is a flow chart of another embodiment of an audio processing method provided by an embodiment of the present invention. Figure 2 The process shown in the above Figure 1 Based on the process shown in FIG. 1 , a description is given of how to determine a target parameter range based on the number of multiple audio data segments. Figure 2 As shown, the process may include the following steps:
[0139] S201, obtaining a preset reference coefficient and determining the number of multiple audio data segments.
[0140] S202, performing a setting operation on the reference coefficient and the quantity to obtain a reference upper limit value.
[0141] The following is a unified description of S201-S202:
[0142] Reference upper limit value refers to the upper limit value used to determine the target parameter range.
[0143] The improved spectral clustering algorithm includes a reference coefficient for calculating the above-mentioned reference upper limit value.
[0144] In the embodiment of the present invention, a reference coefficient applied by the improved spectral clustering algorithm is firstly obtained, and the number of the plurality of audio data segments is determined, and then the product of the reference coefficient and the number is calculated to obtain a reference upper limit value.
[0145] S203, determining a target upper limit value based on the reference upper limit value, and determining a target parameter range based on the target upper limit value, wherein the target upper limit value is not greater than the reference upper limit value.
[0146] In practical applications, the lower limit of the target parameter range is fixed and can be any positive number, such as 1. Therefore, the corresponding target parameter range can be determined by simply determining the upper limit of the target.
[0147] In one embodiment, the specific implementation of determining the target upper limit value based on the reference upper limit value may include: using the reference upper limit value directly as the target upper limit value. In this way, the hyperparameter range can be quickly determined.
[0148] For example, the product of the reference coefficient and the number of the plurality of audio data segments is 50, and the upper limit value of the hyperparameter is 50, and the range of the hyperparameter is 1-50.
[0149] In practical applications, when the number of fragments is large, according to the solution in the above embodiment, the reference upper limit value is directly used as the target upper limit value, which will result in a larger range of hyperparameters and a longer calculation time of the algorithm.
[0150] Based on this, in another embodiment, the specific implementation of determining the target upper limit value based on the reference upper limit value may include: obtaining a preset limit value, comparing the reference upper limit value with the limit value, if the reference upper limit value is greater than the limit value, then taking the limit value as the target upper limit value, if the reference upper limit value is less than or equal to the limit value, then taking the reference upper limit value as the target upper limit value. Among them, the user can set the limit value according to actual needs. In this way, the target upper limit value can be limited to the range of the limit value, thereby avoiding the algorithm calculation time consuming due to the target upper limit value being too large.
[0151] In addition, in yet another embodiment, the specific implementation of determining the target upper limit value based on the reference upper limit value may further include: determining a value that is smaller than the reference upper limit value as the target upper limit value.
[0152] For example, if the number of audio data segments is 200 and the reference coefficient is 0.25, the reference upper limit is: 200*0.25=50. At this time, a sequence number less than 50 can be randomly determined as the target upper limit. Taking the target upper limit as 15 as an example, the hyperparameter range is 1-15.
[0153] As a possible implementation, determining a value less than the reference upper limit value as the target upper limit value may include: presetting a correspondence between the reference upper limit value and the target upper limit value, and determining the target upper limit value corresponding to the reference upper limit value according to the correspondence. In this way, the target upper limit value may be determined based on the preset correspondence.
[0154] As another possible implementation, determining a value less than the reference upper limit value as the target upper limit value may include: obtaining a preset ratio value, calculating the product of the reference upper limit value and the preset ratio value, and obtaining the corresponding target upper limit value. In this way, the target upper limit value may be determined based on the preset ratio value.
[0155] pass Figure 2The process shown realizes the determination of the target parameter range according to the reference coefficient applied by the improved spectral clustering algorithm and the number of multiple audio data segments. In this way, in the clustering process, the hyperparameters can be automatically determined from the target parameter range without manual adjustment of the hyperparameters, thereby improving the efficiency of clustering. In addition, in this scheme, after the reference upper limit value is calculated by the reference coefficient, the target parameter range is determined based on the target upper limit value that is less than the reference upper limit value. In this way, the number of candidate parameters in the target parameter range can be reduced, thereby reducing the amount of calculation for determining the hyperparameters in the target parameter range in the future.
[0156] See also Figure 3 , is a flow chart of another embodiment of an audio processing method provided by an embodiment of the present invention. Figure 3 The process shown in the above Figure 1 Based on the process shown in FIG. 1 , the following describes how to segment the target audio data to obtain multiple audio data segments. Figure 3 As shown, the process may include the following steps:
[0157] S301, identifying the speaking probability of the object corresponding to each audio frame in the target audio data;
[0158] S302, determining an audio frame whose corresponding object speaking probability is greater than a preset probability value as a target audio frame, wherein the target audio frame contains only speech data of one speaking object;
[0159] S303: taking a plurality of continuous target audio frames in the target audio data as a target frame sequence, and extracting the target frame sequence to obtain corresponding audio data segments.
[0160] The following is a unified description of S301-S303:
[0161] In the embodiment of the present invention, a pre-trained end-to-end segmentation model can be used to segment the target audio data, thereby improving the segmentation efficiency of the target audio data.
[0162] Specifically, after the target audio data is input into the segmentation model, the segmentation model first identifies the object speaking probability corresponding to each audio frame in turn. In practice, the object speaking probability corresponding to an audio frame can be a speaking probability corresponding to a speaking object, in which case the object speaking probability is the speaking probability corresponding to the speaking object; or it can be multiple speaking probabilities corresponding to multiple speaking objects, in which case the object speaking probability is the maximum speaking probability among the multiple speaking probabilities. When the object speaking probability corresponding to an audio frame is greater than a preset probability value, it means that the audio frame is a target audio frame in which a certain speaking object is speaking.
[0163] In practice, when a pause occurs in the speaking process or the speaking object switches, the speaking probability of the current speaking object generally decreases below a preset probability value, while the speaking probabilities of other speaking objects have not increased above the preset probability values.
[0164] Therefore, the target frame sequence composed of multiple consecutive target audio frames in the target audio data (i.e., audio frames whose corresponding object speaking probability is greater than a preset probability value) is generally the audio data of the same speaking object that is speaking. Based on this, the segmentation model can extract each target frame sequence separately to obtain the corresponding audio data segment, and each extracted audio data segment is audio data containing only one speaking object and no silent segment.
[0165] Since the segmentation model generally has certain requirements on the format of the input data, in another embodiment, before inputting the target audio data into the segmentation model, the following steps may be further included: obtaining a preset data format, and converting the target audio data according to the data format. The preset data format is a format that conforms to the input of the segmentation model, for example, the data format is: sampling rate 16khz, single channel, PCM16.
[0166] In this way, the format of the target audio data can be converted into the audio format required by the segmentation model, thereby facilitating segmentation processing of the target audio data using the segmentation model.
[0167] pass Figure 3 In the process shown, the segmentation model can determine the target audio frame where the speaking object is speaking according to the speaking probability of each audio frame in the target audio data, and finally extract the target frame sequence composed of multiple consecutive target audio frames in the target audio data to obtain audio data containing only one speaking object and no silent segments. In this way, accurate segmentation of the target audio data is achieved.
[0168] In actual applications, when the speaker switches, there is often a silence interval of a certain length. Therefore, in another embodiment, the specific implementation of segmenting the target audio data may include: using a silence detection tool (such as an open source tool pydub and voice activity detection (VAD)), etc.) to perform silence detection on the target audio data to obtain at least one silence segment, and determine the silence segment with a silence duration greater than a preset duration threshold as the target silence segment (i.e., the silence interval when the speaker switches), and use the start frame and end frame of each target silence segment as the segmentation position, segment the account audio data to obtain multiple segmented segments, and determine the segmented segments other than the target silence segment as audio data segments.
[0169] Therefore, the target audio data can be segmented according to silence detection to obtain an audio data segment containing only one speaker.
[0170] In addition, in another embodiment, after the target audio data is segmented using the above two methods to obtain audio data segments, the segment length of each audio data segment can be determined, and the audio data segments with segment lengths greater than a preset length threshold are further segmented to obtain audio data segments with segment lengths less than the preset length threshold. In this way, the number of audio data segments can be increased, and the accuracy of subsequent clustering can be improved.
[0171] See also Figure 4 , is a block diagram of an embodiment of an audio processing device provided in an embodiment of the present invention.
[0172] like Figure 4 As shown, the device may include:
[0173] An acquisition module 401 is used to acquire a plurality of audio data segments, wherein each of the audio data segments contains only speech data of one speaker;
[0174] An extraction module 402 is used to extract features from each of the audio data segments to obtain audio segment features of each of the audio data segments;
[0175] A first determination module 403, configured to determine a target parameter range based on the number of the plurality of audio data segments;
[0176] A clustering module 404, configured to cluster the plurality of audio data segments based on the target parameter range and the audio segment features to obtain a plurality of clustering clusters;
[0177] The second determination module 405 is configured to determine the correspondence between different speaking objects and the audio data segments based on the multiple clustering clusters.
[0178] In a possible implementation manner, the first determining module is specifically configured to:
[0179] Obtaining a preset reference coefficient, and determining the number of the plurality of audio data segments;
[0180] Performing a setting operation on the reference coefficient and the quantity to obtain a reference upper limit value;
[0181] A target upper limit value is determined based on the reference upper limit value, and the target parameter range is determined based on the target upper limit value, wherein the target upper limit value is not greater than the reference upper limit value.
[0182] In a possible implementation manner, the acquisition module is specifically used to:
[0183] Acquire target audio data to be processed, wherein the target audio data is audio data generated during a conversation between at least two speakers;
[0184] The target audio data is segmented to obtain a plurality of audio data segments.
[0185] In a possible implementation manner, the acquisition module is further used to:
[0186] Identify the subject speaking probability corresponding to each audio frame in the target audio data;
[0187] Determine an audio frame whose corresponding object speaking probability is greater than a preset probability value as a target audio frame, wherein the target audio frame contains only speech data of one speaking object;
[0188] A plurality of continuous target audio frames in the target audio data are taken as a target frame sequence, and the target frame sequence is extracted to obtain corresponding audio data segments.
[0189] In a possible implementation manner, the device further includes a format conversion module, configured to:
[0190] A preset data format is obtained, and the target audio data is format-converted according to the data format.
[0191] In a possible implementation, the clustering module is specifically used to:
[0192] Determine the similarity between each two audio segment features;
[0193] constructing an initial association matrix based on a plurality of said similarities;
[0194] Based on the target parameter range and the initial association matrix, determining the number of objects and the target association matrix, and performing dimension reduction on the target association matrix to obtain a corresponding spectral embedding matrix;
[0195] A clustering operation is performed on the spectral embedding matrix based on the number of objects to obtain a plurality of clustering clusters.
[0196] In a possible implementation manner, the target parameter range includes a plurality of candidate parameters, and the clustering module is further configured to:
[0197] For each candidate parameter, the following processing is performed:
[0198] Binarizing the initial association matrix based on the candidate parameters to obtain a corresponding candidate association matrix, and performing an eigenvalue decomposition operation based on the candidate association matrix to obtain a corresponding eigenvalue set;
[0199] Arrange all eigenvalues in the eigenvalue set in order from small to large to obtain a corresponding eigenvalue sequence, and sequentially calculate the difference between two adjacent eigenvalues in the eigenvalue sequence to obtain a corresponding difference sequence;
[0200] Calculate the ratio of the maximum difference in the difference sequence to the maximum eigenvalue in the eigenvalue set to obtain a maximum eigenvalue difference value;
[0201] Calculating the ratio of the candidate parameter to the maximum feature difference value to obtain a target ratio;
[0202] The candidate parameter with the smallest corresponding target ratio is determined as the target parameter, and the candidate association matrix corresponding to the target parameter is determined as the target association matrix, and the order of the maximum difference corresponding to the target parameter in the corresponding difference sequence is determined, and the sequence number corresponding to the order is determined as the number of objects.
[0203] In a possible implementation, the clustering module is further used for:
[0204] Randomly selecting matrix elements of the number of objects in the spectral embedding matrix, and taking each of the matrix elements as a cluster center;
[0205] A clustering operation is performed on all matrix elements in the spectral embedding matrix based on the cluster centers of the number of objects to obtain clusters of the number of objects.
[0206] In a possible implementation, the extraction module is specifically used to:
[0207] The following processing is performed for each of the audio data segments:
[0208] Extracting acoustic features of the audio data segment;
[0209] Performing a linear transformation on the acoustic features to obtain corresponding audio features, and calculating statistical features of the audio features;
[0210] The statistical features are mapped to preset feature dimensions to obtain the audio segment features.
[0211] The technical solution provided by the embodiment of the present invention first obtains multiple audio data segments, wherein each audio data segment contains only the voice data of one speaker, then performs feature extraction on each audio data segment to obtain the audio segment features of each audio data segment, then determines the target parameter range based on the number of multiple audio data segments, and clusters the multiple audio data segments based on the target parameter range and the audio segment features to obtain multiple clustering clusters, and finally determines the correspondence between different speakers and audio data segments based on the multiple clustering clusters. Through this solution, the correspondence between the speaker (i.e., the speaker) and the speech content (i.e., the audio data segment) in the audio can be intelligently analyzed, thereby assisting the user to quickly locate all audio data segments belonging to the same speaker in the target audio data, thereby improving the efficiency of conference recording.
[0212] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, Figure 5 The electronic device 500 shown includes: at least one processor 501, a memory 502, at least one network interface 504 and other user interfaces 503. The various components in the electronic device 500 are coupled together via a bus system 505. It is understood that the bus system 505 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 505 is not shown in FIG. Figure 5 Various buses are labeled as bus system 505 .
[0213] The user interface 503 may include a display, a keyboard or a pointing device (eg, a mouse, a trackball), a touch pad or a touch screen.
[0214] It can be understood that the memory 502 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0215] In some implementations, the memory 502 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and an application program 5022 .
[0216] The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 5022 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 5022.
[0217] In the embodiment of the present invention, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application 5022, the processor 501 is used to execute the method steps provided by each method embodiment, for example, including:
[0218] Acquire multiple audio data segments, wherein each of the audio data segments contains only speech data of one speaker;
[0219] Performing feature extraction on each of the audio data segments to obtain audio segment features of each of the audio data segments;
[0220] determining a target parameter range based on a number of the plurality of audio data segments;
[0221] Clustering the plurality of audio data segments based on the target parameter range and the audio segment features to obtain a plurality of clustering clusters;
[0222] The corresponding relationship between different speaking objects and the audio data segments is determined based on the multiple clustering clusters.
[0223] The method disclosed in the above embodiment of the present invention can be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 501 or the instruction in the form of software. The above processor 501 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.
[0224] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0225] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0226] The electronic device provided in this embodiment may be Figure 5 The electronic device shown in FIG. 1 may perform the following steps: Figure 1-Figure 3 All steps of the audio processing method are implemented Figure 1-Figure 3 For technical effects of the audio processing method, please refer to Figure 1-Figure 3 For the sake of brevity, the relevant description is not repeated here.
[0227] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0228] When one or more programs in the storage medium can be executed by one or more processors, the audio processing method executed on the electronic device side can be implemented.
[0229] The processor is used to execute the audio processing program stored in the memory to implement the following steps of the audio processing method performed on the electronic device side:
[0230] Acquire multiple audio data segments, wherein each of the audio data segments contains only speech data of one speaker;
[0231] Performing feature extraction on each of the audio data segments to obtain audio segment features of each of the audio data segments;
[0232] determining a target parameter range based on a number of the plurality of audio data segments;
[0233] Clustering the plurality of audio data segments based on the target parameter range and the audio segment features to obtain a plurality of clustering clusters;
[0234] The corresponding relationship between different speaking objects and the audio data segments is determined based on the multiple clustering clusters.
[0235] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0236] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0237] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. An audio processing method, characterized in that: include: Acquire multiple audio data segments, wherein each of the audio data segments contains only speech data of one speaker; Performing feature extraction on each of the audio data segments to obtain audio segment features of each of the audio data segments; determining a target parameter range based on a number of the plurality of audio data segments; Clustering the plurality of audio data segments based on the target parameter range and the audio segment features to obtain a plurality of clustering clusters; The corresponding relationship between different speaking objects and the audio data segments is determined based on the multiple clustering clusters.
2. The method according to claim 1, characterized in that The determining of the target parameter range based on the number of the plurality of audio data segments comprises: Obtaining a preset reference coefficient, and determining the number of the plurality of audio data segments; Performing a setting operation on the reference coefficient and the quantity to obtain a reference upper limit value; A target upper limit value is determined based on the reference upper limit value, and the target parameter range is determined based on the target upper limit value, wherein the target upper limit value is not greater than the reference upper limit value.
3. The method according to claim 1, characterized in that The obtaining of multiple audio data segments includes: Acquire target audio data to be processed, wherein the target audio data is audio data generated during a conversation between at least two speakers; The target audio data is segmented to obtain a plurality of audio data segments.
4. The method according to claim 3, characterized in that The step of segmenting the target audio data to obtain a plurality of audio data segments includes: Identify the subject speaking probability corresponding to each audio frame in the target audio data; Determine an audio frame whose corresponding object speaking probability is greater than a preset probability value as a target audio frame, wherein the target audio frame contains only speech data of one speaking object; A plurality of continuous target audio frames in the target audio data are taken as a target frame sequence, and the target frame sequence is extracted to obtain corresponding audio data segments.
5. The method according to claim 3, characterized in that: Before segmenting the target audio data to obtain a plurality of audio data segments, the method further includes: A preset data format is obtained, and the target audio data is format-converted according to the data format.
6. The method according to claim 1, characterized in that The step of clustering the plurality of audio data segments based on the target parameter range and the audio segment features to obtain a plurality of clustering clusters includes: Determine the similarity between each two audio segment features; constructing an initial association matrix based on a plurality of said similarities; Based on the target parameter range and the initial association matrix, determining the number of objects and the target association matrix, and performing dimension reduction on the target association matrix to obtain a corresponding spectral embedding matrix; A clustering operation is performed on the spectral embedding matrix based on the number of objects to obtain a plurality of clustering clusters.
7. The method according to claim 6, characterized in that The target parameter range includes a plurality of candidate parameters, and determining the number of objects and the target association matrix based on the target parameter range and the initial association matrix includes: For each candidate parameter, the following processing is performed: Binarizing the initial association matrix based on the candidate parameters to obtain a corresponding candidate association matrix, and performing an eigenvalue decomposition operation based on the candidate association matrix to obtain a corresponding eigenvalue set; Arrange all eigenvalues in the eigenvalue set in order from small to large to obtain a corresponding eigenvalue sequence, and sequentially calculate the difference between two adjacent eigenvalues in the eigenvalue sequence to obtain a corresponding difference sequence; Calculate the ratio of the maximum difference in the difference sequence to the maximum eigenvalue in the eigenvalue set to obtain a maximum eigenvalue difference value; Calculating the ratio of the candidate parameter to the maximum feature difference value to obtain a target ratio; The candidate parameter with the smallest corresponding target ratio is determined as the target parameter, and the candidate association matrix corresponding to the target parameter is determined as the target association matrix, and the order of the maximum difference corresponding to the target parameter in the corresponding difference sequence is determined, and the sequence number corresponding to the order is determined as the number of objects.
8. The method according to claim 6, characterized in that The clustering operation is performed on the spectral embedding matrix based on the number of objects to obtain a plurality of clustering clusters, including: Randomly selecting matrix elements of the number of objects in the spectral embedding matrix, and taking each of the matrix elements as a cluster center; A clustering operation is performed on all matrix elements in the spectral embedding matrix based on the cluster centers of the number of objects to obtain clusters of the number of objects.
9. The method according to claim 1, characterized in that: The extracting features of each of the audio data segments to obtain audio segment features of each of the audio data segments includes: The following processing is performed for each of the audio data segments: Extracting acoustic features of the audio data segment; Performing a linear transformation on the acoustic features to obtain corresponding audio features, and calculating statistical features of the audio features; The statistical features are mapped to preset feature dimensions to obtain the audio segment features.
10. An audio processing device, characterized in that: include: An acquisition module, used to acquire a plurality of audio data segments, wherein each of the audio data segments contains only speech data of one speaker; An extraction module, used to extract features from each of the audio data segments to obtain audio segment features of each of the audio data segments; A first determination module, configured to determine a target parameter range based on the number of the plurality of audio data segments; A clustering module, configured to cluster the plurality of audio data segments based on the target parameter range and the audio segment features to obtain a plurality of clustering clusters; The second determination module is used to determine the correspondence between different speaking objects and the audio data segments based on the multiple clustering clusters.
