Audio separation method, device, equipment, storage medium and program product
Through the combination of audio separation model and grouping model, the problem of sound source separation in multi-person audio recognition is solved, the accuracy of audio recognition is improved, and effective separation and identification of multi-person audio data are achieved.
Patent Information
- Application Number
- CN202210121128.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-09
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-02-09
AI Technical Summary
Existing audio recognition technology cannot distinguish the voices of different people when processing the voices of multiple different people, resulting in low audio recognition accuracy.
By obtaining audio data and using the trained audio separation model and grouping model, the sub-audio data and its associated sound source objects are determined, and then the audio data of each sound source object is synthesized to achieve audio separation.
The accuracy of audio recognition is improved, and the audio data of different sound source objects in the audio can be separated, thereby outputting the text or command corresponding to each sound source object.
Smart Images

Figure CN114512141B
Abstract
Description
Technical Field
[0001] The present application relates to the field of audio processing, and in particular to a method, device, equipment, storage medium and program product for audio separation. Background Art
[0002] Audio recognition technology is a technology that allows machines to convert people's voice signals into corresponding text or commands. In recent years, with the development of artificial intelligence, audio recognition technology has been increasingly used in home appliances, automobiles, medical treatment, consumer electronics and other fields.
[0003] At present, the process of audio recognition generally involves inputting the audio data collected by the device into an audio recognition model, identifying the human voice contained in the audio data, and outputting text or commands.
[0004] However, when the audio data contains the voices of multiple different people, the audio recognition model cannot distinguish the voices of different people, and thus cannot output the text or command corresponding to each voice, resulting in low audio recognition accuracy. Summary of the invention
[0005] The present application provides an audio separation method, apparatus, device, storage medium and program product, which can improve the accuracy of audio recognition.
[0006] In a first aspect, a method for audio separation is provided, the method comprising: acquiring collected audio data; determining a plurality of sub-audio data based on the audio data and a trained audio separation model; determining grouping information corresponding to each sub-audio data based on the plurality of sub-audio data and a trained audio grouping model, wherein the grouping information is used to indicate an association relationship between the corresponding sub-audio data and at least one sound source object; determining the sound source object audio data corresponding to each sound source object based on each sub-audio data and the grouping information corresponding to each sub-audio data.
[0007] In one possible implementation, the grouping information corresponding to the sub-audio data includes the sound source object associated with the sub-audio data; each sound source object is associated with multiple sub-audio data; and determining the sound source object audio data corresponding to each sound source object based on each sub-audio data and the grouping information corresponding to each sub-audio data includes: synthesizing the multiple sub-audio data associated with each sound source object to obtain the sound source object audio data corresponding to each sound source object.
[0008] In a possible implementation, the grouping information corresponding to the sub-audio data includes the degree of association between the sub-audio data and at least one sound source object; determining the sound source object audio data corresponding to each sound source object based on each sub-audio data and the grouping information corresponding to each sub-audio data includes: determining the sound source object with the highest degree of association corresponding to each sub-audio data, respectively serving as the sound source object associated with each sub-audio data; each sound source object is associated with multiple sub-audio data; and synthesizing the multiple sub-audio data associated with each sound source object to obtain the sound source object audio data corresponding to each sound source object.
[0009] In a possible implementation, the grouping information corresponding to the sub-audio data includes the association degree between the sub-audio data and at least one sound source object; determining the sound source object audio data corresponding to each sound source object based on each sub-audio data and the grouping information corresponding to each sub-audio data includes: for each sound source object, determining a plurality of associated sub-audio data that have an association degree with the sound source object, and determining the sound source object audio data corresponding to the sound source object based on the plurality of associated sub-audio data and the association degree of each associated sub-audio data with the sound source object.
[0010] In a possible implementation, the determining the sound source object audio data corresponding to the sound source object based on the multiple associated sub-audio data and the degree of association between each associated sub-audio data and the sound source object includes: taking the degree of association between each associated sub-audio data and the sound source object as a weight value, performing weighted synthesis on the multiple associated sub-audio data to obtain the sound source object audio data corresponding to the sound source object.
[0011] In a possible implementation, before determining multiple sub-audio data based on audio data and a trained audio separation model, it also includes: obtaining sample sound source object audio data of multiple sample sound source objects, synthesizing the sample sound source object audio data of the multiple sample sound source objects to obtain sample audio data; determining multiple predicted sub-audio data based on the sample audio data and the audio separation model to be trained; determining the predicted grouping information corresponding to each predicted sub-audio data based on the multiple predicted sub-audio data and the audio grouping model to be trained, wherein the predicted grouping information is used to indicate the association relationship between the corresponding predicted sub-audio data and at least one predicted sound source object; determining the predicted sound source object audio data corresponding to each predicted sound source object based on each predicted sub-audio data and the predicted grouping information corresponding to each predicted sub-audio data; and adjusting model parameters of the audio separation model to be trained and the audio grouping model to be trained based on multiple predicted sound source object audio data and multiple sample sound source object audio data.
[0012] In a second aspect, a method for audio separation is provided, the method comprising: extracting feature information of audio data; inputting the feature information into a plurality of trained sound source object audio extraction models respectively to obtain a plurality of sound source object audio data included in the audio data.
[0013] In a third aspect, a device for audio separation is provided, the device comprising: a separation module for acquiring collected audio data; determining a plurality of sub-audio data based on the audio data and a trained audio separation model; a grouping module for determining grouping information corresponding to each sub-audio data based on the plurality of sub-audio data and the trained audio grouping model, wherein the grouping information is used to indicate an association relationship between the corresponding sub-audio data and at least one sound source object; and a determination module for determining the sound source object audio data corresponding to each sound source object based on each sub-audio data and the grouping information corresponding to each sub-audio data.
[0014] In a possible implementation, the grouping information corresponding to the sub-audio data includes the sound source object associated with the sub-audio data; each sound source object is associated with multiple sub-audio data; and the determination module is used to synthesize the multiple sub-audio data associated with each sound source object to obtain the sound source object audio data corresponding to each sound source object.
[0015] In a possible implementation, the grouping information corresponding to the sub-audio data includes the correlation between the sub-audio data and at least one sound source object; the determination module is used to determine the sound source object with the highest correlation corresponding to each sub-audio data, respectively as the sound source object associated with each sub-audio data; each sound source object is associated with multiple sub-audio data; the multiple sub-audio data associated with each sound source object are synthesized to obtain the sound source object audio data corresponding to each sound source object.
[0016] In a possible implementation, the grouping information corresponding to the sub-audio data includes the association degree between the sub-audio data and at least one sound source object; the determination module is used to determine, for each sound source object, multiple associated sub-audio data that have an association degree with the sound source object, and determine the sound source object audio data corresponding to the sound source object based on the multiple associated sub-audio data and the association degree of each associated sub-audio data with the sound source object.
[0017] In a possible implementation, the determination module is used to perform weighted synthesis on multiple associated sub-audio data using the degree of association between each associated sub-audio data and the sound source object as a weight value to obtain the sound source object audio data corresponding to the sound source object.
[0018] In a possible implementation, the device is also used to obtain sample sound source object audio data of multiple sample sound source objects, synthesize the sample sound source object audio data of the multiple sample sound source objects to obtain sample audio data; determine multiple predicted sub-audio data based on the sample audio data and the audio separation model to be trained; determine the predicted grouping information corresponding to each predicted sub-audio data based on the multiple predicted sub-audio data and the audio grouping model to be trained, wherein the predicted grouping information is used to indicate the association relationship between the corresponding predicted sub-audio data and at least one predicted sound source object; determine the predicted sound source object audio data corresponding to each predicted sound source object based on each predicted sub-audio data and the predicted grouping information corresponding to each predicted sub-audio data; and adjust model parameters of the audio separation model to be trained and the audio grouping model to be trained based on the multiple predicted sound source object audio data and the multiple sample sound source object audio data.
[0019] In a fourth aspect, a device for audio separation is provided, which includes: a feature extraction module for extracting feature information of audio data; an audio extraction module for inputting the feature information into multiple trained sound source object audio extraction models respectively to obtain multiple sound source object audio data included in the audio data.
[0020] In a fifth aspect, a computer device is provided, comprising a processor and a memory, wherein the memory is used to store computer instructions, and the processor is used to execute the computer instructions stored in the memory, so that the computer device executes the method of the first aspect and possible implementations thereof.
[0021] In a sixth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program code. When the computer program code is executed by a computer device, the computer device executes the method of the first aspect and possible implementations thereof.
[0022] In a seventh aspect, a computer program product is provided, the computer program product comprising a computer program code, and when the computer program code is executed by a computer device, the computer device executes the method of the first aspect and possible implementations thereof.
[0023] In the embodiment of the present application, based on the audio data and the trained audio separation model, multiple sub-audio data are determined, and then based on the multiple sub-audio data and the trained audio grouping model, the grouping information corresponding to each sub-audio data is determined, and then based on each sub-audio data and the grouping information corresponding to each sub-audio data, the sound source object audio data corresponding to each sound source object is determined. In this way, the audio data of different sound source objects contained in the audio can be separated to obtain the text or command corresponding to each sound source object. Thereby, the accuracy of audio recognition is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] 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.
[0025] Figure 1 is a structural schematic diagram of a computer device provided in an embodiment of the present application;
[0026] Figure 2 This is a flow chart of an audio separation method provided by an embodiment of the present application;
[0027] Figure 3 It is a processing schematic diagram of audio separation provided in an embodiment of the present application;
[0028] Figure 4 This is a flow chart of an audio separation method provided by an embodiment of the present application;
[0029] Figure 5 It is a processing schematic diagram of audio separation provided in an embodiment of the present application;
[0030] Figure 6 It is a processing flow chart of training a machine learning model provided in an embodiment of the present application;
[0031] Figure 7 This is a flow chart of an audio separation method provided by an embodiment of the present application;
[0032] Figure 8 It is a processing schematic diagram of audio separation provided in an embodiment of the present application;
[0033] Fig. 9 It is a processing flow chart of training a machine learning model provided in an embodiment of the present application;
[0034] Fig.10 is a structural diagram of an audio separation device provided in an embodiment of the present application;
[0035] Fig.11 is a structural diagram of an audio separation device provided in an embodiment of the present application;
[0036] Fig.12 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] 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.
[0038] Based on the above application scenarios, an embodiment of the present application provides a method for audio separation, which can be implemented by a computer device. The computer device can be a server or a terminal, etc. The terminal can be a desktop computer, a notebook computer, a tablet computer, a mobile phone, a vehicle terminal, a wearable electronic device, etc. The server can be a single server or a server group consisting of multiple servers.
[0039] Figure 1 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. From the perspective of hardware composition, the structure of the computer device 100 can be as follows Figure 1 As shown, it includes a processor 101, a memory 102 and a communication component 103.
[0040] The processor 101 can be a central processing unit (CPU) or a system on chip (SoC), etc. The processor 101 can be used to determine multiple sub-voice data based on audio data and a trained audio separation model, can be used to determine the grouping information corresponding to each sub-audio data based on multiple sub-audio data and a trained audio grouping model, and can also determine the sound source object audio data corresponding to each sound source object based on each sub-audio data and the grouping information corresponding to each sub-audio data, and so on.
[0041] The memory 102 may include various volatile memories or non-volatile memories, such as a solid state disk (SSD), a dynamic random access memory (DRAM), etc. The memory 102 may be used to store pre-stored data, intermediate data, and result data in the audio separation process, for example, audio data, sub-audio data, a trained audio separation model, a trained audio grouping model, grouping information corresponding to each sub-audio data, sound source object audio data corresponding to each sound source object, and the like.
[0042] In addition to the processor 101 and the memory 102 , the computer device 100 may further include a communication component 103 .
[0043] The communication component 103 may be a wired network connector, a wireless fidelity (WiFi) module, a Bluetooth module, a cellular network communication module, etc. The communication component 103 may be used to transmit data with other devices, and the other devices may be servers or terminals, etc. For example, the computer device 100 may receive audio data, and the computer device 100 may also send the sound source object audio data corresponding to each sound source object to the server for storage.
[0044] This embodiment is described by taking the execution subject as an example of a server. The server can establish communication with an audio acquisition device, and the audio acquisition device can send the audio data to the server after collecting the sound in the same period. Alternatively, the server can receive the audio data sent by the terminal or other servers. The server can perform audio preprocessing on the audio data to obtain the preprocessed audio data. The preprocessing may include audio noise reduction, audio enhancement, etc. Depending on the type of audio separation model used, the preprocessing may also include framing, windowing, short time Fourier transform (STFT), etc. The module for performing audio preprocessing may be a module independent of the audio separation model, or a module in the audio separation model.
[0045] Figure 2 is a flow chart of an audio separation method provided in an embodiment of the present application, Figure 3 is the corresponding processing diagram. Figure 2 , the method may include the following steps:
[0046] 201, obtaining collected audio data.
[0047] The audio data may be collected using an audio recording device or may be obtained by artificial synthesis. The server may receive audio data sent by an audio recording device or other servers.
[0048] 202, determining a plurality of sub-audio data based on the audio data and a trained audio separation model.
[0049] The audio data can be input into a trained audio separation model, and the model can output multiple sub-audio data. The audio data can be in the form of an audio frame or an audio segment, which is not limited in this embodiment. The audio separation model can be a machine learning model, for example, a time-domain audio separation network (TasNet) based on a dual-path recurrent neural network (DPRNN), a waveform domain U-net (Wave-U-Net), a speaker extraction network, a time-domain convolutional network, and the like.
[0050] 203 : Determine grouping information corresponding to each sub-audio data based on the multiple sub-audio data and the trained audio grouping model.
[0051] The grouping information corresponding to the sub-audio data includes the sound source object associated with the sub-audio data.
[0052] In implementation, the sub-audio data can be input into a trained audio grouping model to obtain the sound source object associated with the sub-audio data. The audio grouping model can be a machine learning model or a plurality of machine learning models of the same type but with different model parameters. In the case where there is only one audio grouping model, all the sub-audio data can be input into the audio grouping model, and the model can output the sound source object associated with each sub-audio data. In the case where the number of audio grouping models is the same as the number of sub-audio data, the sub-audio data can be input into the audio grouping model respectively, and the model can output the sound source objects associated with the sub-audio data respectively. There are many possibilities for the audio grouping model, for example, it can be a Gaussian mixture model, a support vector machine model, a multi-layer perceptron model, a deep neural network model, a convolutional neural network model, a long short-term memory network model, a deep non-negative matrix decomposition model, and the like.
[0053] A sub-audio data can be associated with one sound source object or multiple sound source objects. The sound source object can be the entity object that emits the sub-audio data or the conceptual object to which the sub-audio belongs. The sound source object can be set by a technician. For example, if the sub-audio data is the high-pitched data of a violin, the sound source object can be a physical object such as "violin" or a conceptual object such as "soundtrack", and so on.
[0054] Optionally, the audio separation model and the audio grouping model can be two modules in a machine learning model. There are many possibilities for the machine learning model, for example, it can be a Gaussian mixture model, a support vector machine model, a multi-layer perceptron model, a deep neural network model, a convolutional neural network model, a long short-term memory network model, a deep non-negative matrix factorization model, and the like.
[0055] 204 , synthesize the multiple sub-audio data associated with each sound source object to obtain the sound source object audio data corresponding to each sound source object.
[0056] A sound source object may be associated with multiple sub-audio data, and the sub-audio data associated with the sound source object may be synthesized to obtain the sound source object audio data corresponding to the sound source object. The synthesis process may be summing in the time domain, or summing in the signal domain obtained under any linear transformation of the signal, etc.
[0057] The above processing is the corresponding processing when the grouping information includes the sound source object associated with the sub-audio data. For the case where the grouping information includes the association between the sub-audio data and the sound source object, the corresponding processing process can be as follows: Figure 4 As shown, the corresponding processing diagram can be as follows Figure 5 shown.
[0058] 401, obtain the collected audio data.
[0059] The audio data may be collected using an audio recording device or may be obtained by artificial synthesis. The server may receive audio data sent by an audio recording device or other servers.
[0060] 402 , determining a plurality of sub-audio data based on the audio data and a trained audio separation model.
[0061] The processing of step 402 is similar to the processing of step 202, and reference may be made to the relevant processing of step 202, which will not be described in detail here.
[0062] 403 : Based on the plurality of sub-audio data and the trained audio grouping model, determine the grouping information corresponding to each sub-audio data.
[0063] The grouping information corresponding to the sub-audio data includes the correlation between the sub-audio data and the sound source object.
[0064] In implementation, the sub-audio data can be input into a trained audio grouping model to obtain the association between the sub-audio data and the sound source object. The audio grouping model can be a machine learning model or multiple machine learning models of the same type but with different model parameters. In the case where there is only one audio grouping model, all the sub-audio data can be input into the audio grouping model, and the model can output the association between each sub-audio data and the sound source object. In the case where the number of audio grouping models is the same as the number of sub-audio data, the sub-audio data can be input into the audio grouping model respectively, and the model can output the association between the sub-audio data and the sound source object respectively. The output of the model can be multiple, for example, only the association between the sound source objects whose association with the sub-audio data is not 0 can be output; or, the association between the sub-audio data and each sound source object can be output; or, only the association between the sound source object with the highest association with the sub-audio data can be output.
[0065] There are many possibilities for the audio grouping model, for example, it can be a dual-path recursive neural network, a recurrent neural network, a long short-term memory network, and so on.
[0066] 404 : Determine the sound source object audio data corresponding to each sound source object based on each sub audio data and the grouping information corresponding to each sub audio data.
[0067] There are many ways to determine the processing of the sound source object audio data corresponding to each sound source object.
[0068] Processing method 1
[0069] Among the correlations between the sub-audio data and the sound source objects, the sound source object with the highest correlation corresponding to each sub-audio data can be determined and used as the sound source object associated with each sub-audio data. Then, multiple sub-audio data associated with each sound source object are synthesized to obtain the sound source object audio data corresponding to each sound source object.
[0070] Solution 2
[0071] A plurality of associated sub-audio data having an association degree with the sound source object may be determined, and then the association degree of each associated sub-audio data with the sound source object is used as a weight value to perform weighted synthesis on the plurality of associated sub-audio data to obtain the sound source object audio data corresponding to the sound source object. Each sound source object may be processed in the second processing mode to obtain the sound source object audio data corresponding to each sound source object.
[0072] The weighted synthesis may be a weighted summation in the time domain, or a weighted summation in the signal domain obtained by any linear transformation of the signal.
[0073] For example, sound source object A has a total of two associated sub-audio data, where the correlation degree of associated sub-audio data A is 0.3, and the correlation degree of associated sub-audio data B is 0.7. Then 0.3 can be used as the weight of the associated sub-audio data A, and 0.7 can be used as the weight of the associated sub-audio data B. The associated sub-audio data A and the associated sub-audio data B are weightedly summed in the time domain to obtain the sound source object audio data corresponding to sound source object A.
[0074] Solution 3
[0075] A plurality of associated sub-audio data having an association degree with the sound source object can be determined, and then the association degree of each associated sub-audio data with the sound source object is compared with the association degree threshold, and the associated sub-audio data having an association degree greater than the association degree threshold is determined. Furthermore, the associated sub-audio data having an association degree greater than the association degree threshold can be synthesized to obtain the sound source object audio data corresponding to the sound source object. By performing the processing method three on each sound source object, the sound source object audio data corresponding to each sound source object can be obtained.
[0076] Processing method 4
[0077] A plurality of associated sub-audio data having an association degree with the sound source object can be determined, and the association degree of each associated sub-audio data with the sound source object is compared with the association degree threshold, and the associated sub-audio data having an association degree greater than the association degree threshold is determined. Then, the association degree of the associated sub-audio data with an association degree greater than the association degree threshold and the sound source object can be used as a weight value for weighted synthesis to obtain the sound source object audio data corresponding to the sound source object. Each sound source object is processed in processing mode 4 to obtain the sound source object audio data corresponding to each sound source object.
[0078] The above processing involves some machine learning models. The present application embodiment provides a training method for the machine learning model, such as Figure 6 As shown, the method may include the following steps:
[0079] 601, obtaining sample sound source object audio data of multiple sample sound source objects, synthesizing the sample sound source object audio data of the multiple sample sound source objects to obtain sample audio data.
[0080] There are many possibilities for synthesis processing, for example, summing up the audio data of multiple sample sound source objects in the time domain, or summing up the signal domain obtained under any linear transformation of the signal, and so on.
[0081] Optionally, one or more of the multiple sample sound source object audio data may be subjected to audio pitch shifting, audio speed change and other processing, and then subjected to synthesis processing to obtain the sample audio data. There may be a variety of ways to process the audio pitch shifting, for example, the frequency spectrum of the sample sound source object audio data may be shifted in the frequency domain to obtain the sample sound source object audio data after the audio pitch shifting. There may be a variety of ways to process the audio speed change, for example, the sample sound source object audio data may be divided into a number of continuous non-overlapping audio frames, and then some of the audio frames may be repeated or discarded to obtain the sample sound source object audio data after the audio speed change processing.
[0082] 602 : Determine a plurality of predicted sub-audio data based on the sample audio data and the audio separation model to be trained.
[0083] The sample audio data can be input into the audio separation model to be trained, and the model can output multiple predicted sub-audio data. The sample audio data can be in the form of an audio frame or an audio segment, which is not limited in this embodiment. The audio separation model to be trained can be a machine learning model, for example, a time domain audio separation network based on a dual-path recursive neural network, a waveform domain U-type network, a speaker extraction network, a time domain convolutional network, and the like.
[0084] 603 : Determine prediction grouping information corresponding to each prediction sub-audio data based on the multiple prediction sub-audio data and the audio grouping model to be trained.
[0085] The prediction grouping information is used to indicate the association relationship between the corresponding predicted sub-audio data and at least one predicted sound source object. The prediction grouping information may include the predicted sound source object associated with the predicted sub-audio data, or may include the predicted association degree between the predicted sub-audio data and the predicted sound source object.
[0086] In implementation, the predicted sub-audio data can be input into the audio grouping model to be trained to obtain the predicted grouping information corresponding to the predicted sub-audio data. The audio grouping model to be trained can be a machine learning model or multiple machine learning models of the same type. In the case where there is only one audio grouping model to be trained, all the predicted sub-audio data can be input into the audio grouping model to be trained, and the model can output the predicted grouping information corresponding to each predicted sub-audio data. In the case where the number of audio grouping models to be trained is the same as the number of predicted sub-audio data, the predicted sub-audio data can be respectively input into the audio grouping models to be trained, and the model can respectively output the predicted grouping information corresponding to the predicted sub-audio data.
[0087] The audio grouping model to be trained can be a machine learning model, for example, a Gaussian mixture model, a support vector machine model, a multi-layer perceptron model, a deep neural network model, a convolutional neural network model, a long short-term memory network model, a deep non-negative matrix decomposition model, and the like.
[0088] 604 , based on each predicted sub-audio data and the predicted grouping information corresponding to each predicted sub-audio data, determine the predicted sound source object audio data corresponding to each predicted sound source object.
[0089] According to different prediction grouping information, the processing method of determining the predicted sound source object audio data corresponding to each predicted sound source object may also be different.
[0090] (1) When the prediction grouping information includes a predicted sound source object associated with the predicted sub-audio data, corresponding processing of the predicted sound source object audio data is determined.
[0091] The multiple predicted sub-audio data associated with each predicted sound source object are synthesized to obtain the predicted sound source object audio data corresponding to each predicted sound source object. There are many possibilities for the synthesis process, for example, splicing the sub-audio data associated with the sound source object in the time domain, or superimposing the sub-audio data associated with the sound source object in the frequency domain, etc.
[0092] (2) When the prediction grouping information includes the predicted correlation between the predicted sub-audio data and the predicted sound source object, there may be multiple ways to determine the corresponding processing of the predicted sound source object audio data.
[0093] ① Among the predicted correlations between the predicted sub-audio data and the predicted sound source object, the predicted sound source object with the highest predicted correlation corresponding to each predicted sub-audio data can be determined, and used as the predicted sound source object associated with each predicted sub-audio data. Then, the multiple predicted sub-audio data associated with each predicted sound source object are synthesized to obtain the predicted sound source object audio data corresponding to each predicted sound source object.
[0094] ② It is possible to determine multiple associated predicted sub-audio data that have a predicted correlation with the predicted sound source object, and then use the predicted correlation between each associated predicted sub-audio data and the predicted sound source object as a weight value to perform weighted synthesis on the multiple associated predicted sub-audio data to obtain the predicted sound source object audio data corresponding to the predicted sound source object.
[0095] ③ It is possible to determine a plurality of associated predicted sub-audio data with a predicted correlation with the predicted sound source object, and then compare the predicted correlation of each predicted associated sub-audio data with the predicted sound source object and the predicted correlation threshold, and determine the associated predicted sub-audio data with a predicted correlation greater than the predicted correlation threshold. Furthermore, the associated predicted sub-audio data with a predicted correlation greater than the predicted correlation threshold can be synthesized to obtain the predicted sound source object audio data corresponding to the predicted sound source object.
[0096] ④ It is possible to determine multiple associated predicted sub-audio data with a predicted correlation with the predicted sound source object, compare the predicted correlation of each associated predicted sub-audio data with the predicted sound source object and the predicted correlation threshold, and determine the associated predicted sub-audio data with a predicted correlation greater than the predicted correlation threshold. Then, the predicted correlation of the associated predicted sub-audio data with a predicted correlation greater than the predicted correlation threshold and the predicted sound source object can be used as a weight value for weighted synthesis to obtain the predicted sound source object audio data corresponding to the predicted sound source object.
[0097] 605 , based on the multiple predicted sound source object audio data and the multiple sample sound source object audio data, adjust the model parameters of the audio separation model to be trained and the audio grouping model to be trained.
[0098] Each predicted sound source object audio data and the corresponding sample sound source object audio data can be input into a loss function to obtain a loss value of the predicted sound source object audio data. The loss function can be various types of loss functions, such as a quadratic loss function, an absolute loss function, a signal to noise ratio loss function, a signal to distortion ratio loss function, and the like.
[0099] Then, the loss values of all the predicted sound source object audio data can be averaged and the average value can be used as the target loss value. Furthermore, the parameters of the audio separation model to be trained and the audio grouping model to be trained can be adjusted based on the target loss value.
[0100] Optionally, the highest value among the loss values may be selected as the target loss value, and then parameters of the audio separation model to be trained and the audio grouping model to be trained may be adjusted based on the target loss value.
[0101] After the parameter adjustment, the sample sound source object audio data can be replaced, and the above training process can be repeated using the audio separation model to be trained and the audio grouping model to be trained after the parameter adjustment until the training end condition is met. The training end condition can be that the absolute value of the target loss value is less than the preset target loss value threshold, or the number of training times reaches the training number threshold, etc.
[0102] In addition to the above processing flow, the audio separation process can also be as follows Figure 7 The corresponding processing diagram can be found in Figure 8 .
[0103] 701, extract feature information of audio data.
[0104] In implementation, the audio data may be input into a trained feature extraction model, and the model may output feature information of the audio data. The feature extraction model may be a machine learning model, such as a convolutional neural network, a long short-term memory network, a deep neural network, and the like.
[0105] 702, input the feature information into a plurality of trained sound source object audio extraction models respectively to obtain a plurality of sound source object audio data included in the audio data.
[0106] exist Figure 2 and Figure 4 In the processing process, the output layer of the audio separation model can be a feedforward layer, and its function can be expressed as:
[0107] M k =f(W k H+B K ), k = 1, ..., K
[0108] Where W k , B k is the parameter of the output layer corresponding to the kth output, H is the input of the output layer of the audio separation model (generally shared by all output layers), f(W k H+B K ) is a nonlinear function.
[0109] Figure 2 and Figure 4 In the process of processing, multiple sub-audio data associated with the same sound source object are synthesized. The process can be expressed as:
[0110]
[0111] where ∑ p∈c M p It means synthesizing (or summing) all sub-audio data associated with the same sound source object.
[0112] Considering that the sum of multiple nonlinear functions can be estimated by another nonlinear function, the sound source object audio extraction model can be used to extract the To make an approximation, the process can be as follows:
[0113] ∑ p∈c f(W p H+B p )≈g(H)
[0114] Where g(H) is a nonlinear function defined by the sound source object audio extraction model. The machine learning model can be of many types, for example, a multi-layer perceptron.
[0115] Through the above mathematical approximation, the sound source object audio extraction model can realize part or all of the functions of the aforementioned audio separation model and audio grouping model, so as to output multiple sound source object audio data included in the audio data. Multiple trained sound source object audio extraction models can be machine learning models of the same type or machine learning models of different types. There are many possible types of sound source object audio extraction models, for example, it can be a machine learning model such as a multi-layer perceptron. The feature extraction model and the sound source object audio extraction model can be independent machine learning models or different modules in the same machine learning model.
[0116] The above process involves some machine learning models. The training process of these machine learning models can be as follows: Fig. 9 As shown, the following steps are included:
[0117] 901, obtaining sample sound source object audio data of multiple sample sound source objects, synthesizing the sample sound source object audio data of the multiple sample sound source objects to obtain sample audio data.
[0118] There are many possibilities for synthesis processing, for example, summing up the audio data of multiple sample sound source objects in the time domain, or summing up the signal domain obtained under any linear transformation of the signal, and so on.
[0119] 902. Obtain predicted feature information of the sample audio data based on the sample audio data and the feature extraction model to be trained.
[0120] The sample audio data may be input into the feature extraction model to be trained, and the model may output a plurality of prediction feature information. The sample audio data may be in the form of an audio frame or an audio segment, which is not limited in this embodiment. The feature extraction model to be trained may be a machine learning model, for example, a convolutional neural network, a long short-term memory network, a deep neural network, and the like.
[0121] 903, respectively input the predicted feature information into a plurality of sound source object audio extraction models to be trained to obtain a plurality of predicted sound source object audio data.
[0122] The multiple sound source object audio extraction models to be trained may be machine learning models of the same type or different types, and the initial parameters of the multiple sound source object audio extraction models to be trained are different. There are many possible model types of the sound source object audio extraction models to be trained, for example, they may be machine learning models such as multi-layer perceptrons.
[0123] 904 , based on the multiple predicted sound source object audio data and the multiple sample sound source object audio data, adjust the model parameters of the feature extraction model to be trained and the sound source object audio extraction model to be trained.
[0124] Each predicted sound source object audio data and the corresponding sample sound source object audio data can be input into a loss function to obtain a loss value of the predicted sound source object audio data. The loss function can be various types of loss functions, such as a square loss function, an absolute value loss function, a signal-to-noise ratio loss function, a signal-to-interference ratio loss function, and the like.
[0125] Then, the loss values of all the predicted sound source object audio data can be averaged and the average value can be used as the target loss value. Furthermore, the parameters of the feature extraction model to be trained and the sound source object audio extraction model to be trained can be adjusted based on the target loss value.
[0126] Optionally, the highest value among the loss values may be selected as the target loss value, and then parameters of the feature extraction model to be trained and the sound source object audio extraction model to be trained may be adjusted based on the target loss value.
[0127] After the parameter adjustment, the sample sound source object audio data can be replaced, and the above training process can be repeated using the feature extraction model to be trained and the sound source object audio extraction model to be trained after the parameter adjustment until the training end condition is met. The training end condition can be that the absolute value of the target loss value is less than the preset target loss value threshold, or the number of training times reaches the training number threshold, etc.
[0128] In order to test the beneficial effects of the audio separation method provided in this embodiment, the technicians set up different processing methods and conducted performance tests respectively. Processing process one uses a trained audio separation model plus a trained audio grouping model for processing, and each sound source object is associated with 2 sub-audio data; processing process two uses a trained audio separation model plus a trained audio grouping model for processing, and each sound source object is associated with 8 sub-audio data; processing process three uses a trained feature extraction model and a trained sound source object audio extraction model for processing. In addition, processing process four is also set up. Processing process four uses a trained audio separation model for processing, and the sub-audio data output by the audio separation model is used as the sound source object audio data.
[0129] The technicians used the benchmark datasets of WSJ0-2mix and WHAMR!, which contain 30 hours, 10 hours, and 5 hours of training, validation, and test data. The WSJ0-2mix data does not contain background noise or reverberation, and the WHAMR! data contains real recorded background noise and artificially generated reverberation. Each mixed speech in the two benchmark datasets contains two speakers (that is, the sound source objects are 2), and the audio data are selected from the two benchmark datasets. The relative energy of the speakers is randomly selected from the range of [-5, 5] dB. The technicians used the energy-independent signal-to-interference ratio improvement as an objective evaluation indicator for the performance test. The performance test results are shown in the following table:
[0130]
[0131] Table 1
[0132] As shown in the above table, it can be seen that the more sub-audio data associated with the sound source object, the more the energy-independent signal-to-interference ratio is improved.
[0133] It should be noted that the audio separation method provided in this embodiment can be applied not only to the field of audio recognition, but also to the fields of audio noise reduction, audio enhancement, etc.
[0134] Fig.10 An audio separation device provided in an embodiment of the present application includes: a separation module 1001, used to obtain collected audio data; based on the audio data and a trained audio separation model, multiple sub-audio data are determined; a grouping module 1002, used to determine the grouping information corresponding to each sub-audio data based on the multiple sub-audio data and the trained audio grouping model, wherein the grouping information is used to indicate the association relationship between the corresponding sub-audio data and at least one sound source object; a determination module 1003, used to determine the sound source object audio data corresponding to each sound source object based on each sub-audio data and the grouping information corresponding to each sub-audio data.
[0135] In a possible implementation, the grouping information corresponding to the sub-audio data includes the sound source object associated with the sub-audio data; each sound source object is associated with multiple sub-audio data; and the determination module 1003 is used to synthesize the multiple sub-audio data associated with each sound source object to obtain the sound source object audio data corresponding to each sound source object.
[0136] In a possible implementation, the grouping information corresponding to the sub-audio data includes the correlation between the sub-audio data and at least one sound source object; the determination module 1003 is used to determine the sound source object with the highest correlation corresponding to each sub-audio data, respectively as the sound source object associated with each sub-audio data; each sound source object is associated with multiple sub-audio data; the multiple sub-audio data associated with each sound source object are synthesized to obtain the sound source object audio data corresponding to each sound source object.
[0137] In a possible implementation, the grouping information corresponding to the sub-audio data includes the association degree between the sub-audio data and at least one sound source object; the determination module 1003 is used to determine, for each sound source object, multiple associated sub-audio data that have an association degree with the sound source object, and determine the sound source object audio data corresponding to the sound source object based on the multiple associated sub-audio data and the association degree of each associated sub-audio data with the sound source object.
[0138] In a possible implementation, the determination module 1003 is configured to perform weighted synthesis on multiple associated sub-audio data using the degree of association between each associated sub-audio data and the sound source object as a weight value to obtain the sound source object audio data corresponding to the sound source object.
[0139] In a possible implementation, the device is also used to obtain sample sound source object audio data of multiple sample sound source objects, synthesize the sample sound source object audio data of the multiple sample sound source objects to obtain sample audio data; determine multiple predicted sub-audio data based on the sample audio data and the audio separation model to be trained; determine the predicted grouping information corresponding to each predicted sub-audio data based on the multiple predicted sub-audio data and the audio grouping model to be trained, wherein the predicted grouping information is used to indicate the association relationship between the corresponding predicted sub-audio data and at least one predicted sound source object; determine the predicted sound source object audio data corresponding to each predicted sound source object based on each predicted sub-audio data and the predicted grouping information corresponding to each predicted sub-audio data; and adjust model parameters of the audio separation model to be trained and the audio grouping model to be trained based on the multiple predicted sound source object audio data and the multiple sample sound source object audio data.
[0140] Fig.11An audio separation device provided in an embodiment of the present application includes: a feature extraction module 1101, used to extract feature information of audio data; an audio extraction module 1102, used to input the feature information into multiple trained sound source object audio extraction models respectively to obtain multiple sound source object audio data included in the audio data.
[0141] Fig.12 1 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 1200 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 1201 and one or more memories 1202, wherein the memory 1202 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 1201 to implement the methods provided in the above-mentioned various method embodiments. Of course, the computer device may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the computer device may also include other components for implementing device functions, which will not be described in detail here.
[0142] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals (including but not limited to signals transmitted between user terminals and other devices, etc.) involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. For example, the audio data involved in this application are all obtained with full authorization.
[0143] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including instructions, and the instructions can be executed by a processor in a terminal to complete the method of audio separation in the above embodiment. The computer-readable storage medium can be non-transitory. For example, the computer-readable storage medium can be a ROM (read-only memory), a RAM (random access memory), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0144] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, 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.
[0145] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A method for audio separation, It is characterized in that The method comprises: Get the collected audio data; Based on the audio data and the trained audio separation model, determining a plurality of sub-audio data; Based on the multiple sub-audio data and the trained audio grouping model, determining grouping information corresponding to each sub-audio data, wherein the grouping information is used to indicate an association relationship between the corresponding sub-audio data and at least one sound source object, and the grouping information includes the grouping information corresponding to the sub-audio data, including the association degree between the sub-audio data and the at least one sound source object, and the sound source object is an entity object that emits the corresponding sub-audio data, or a conceptual object to which the corresponding sub-audio data belongs; For each sound source object, a plurality of associated sub-audio data having an association degree with the sound source object is determined, and the association degree of each associated sub-audio data with the sound source object is used as a weight value to perform weighted synthesis on the plurality of associated sub-audio data to obtain the sound source object audio data corresponding to the sound source object; The training process of the audio separation model and the audio grouping model includes: Obtaining audio data of sample sound source objects of multiple sample sound source objects; For at least one sample sound source object audio data among the multiple sample sound source object audio data, at least one of the following preprocessing is performed: the frequency spectrum of the sample sound source object audio data is shifted in the frequency domain to obtain the sample sound source object audio data after audio modulation, the sample sound source object audio data is divided into a plurality of continuous non-overlapping audio frames, and then some of the audio frames are repeated or discarded to obtain the sample sound source object audio data after audio speed modulation; synthesizing the preprocessed audio data of the sample sound source objects of the plurality of sample sound source objects to obtain sample audio data; Inputting the sample audio data into an audio separation model to be trained, so that the audio separation model to be trained outputs a plurality of predicted sub-audio data; Inputting the predicted sub-audio data into the audio grouping model to be trained to obtain predicted grouping information corresponding to the predicted sub-audio data, wherein the predicted grouping information includes a predicted correlation between the predicted sub-audio data and the predicted sound source object; Determine the predicted sound source object audio data corresponding to each predicted sound source object based on each predicted sub-audio data and the predicted grouping information corresponding to each predicted sub-audio data; Based on a plurality of predicted sound source object audio data and a plurality of sample sound source object audio data, a loss value of the predicted sound source object audio data is determined, and based on the loss value, model parameters of the audio separation model to be trained and the audio grouping model to be trained are adjusted; the loss value of the predicted sound source object audio data is obtained by averaging the loss values of all the predicted sound source object audio data; Repeat the above steps of adjusting model parameters several times until the training end condition is met.
2. An audio separation device, It is characterized in that The device comprises: A separation module, configured to obtain the collected audio data; and determine a plurality of sub-audio data based on the audio data and a trained audio separation model; A grouping module, used for determining grouping information corresponding to each sub-audio data based on the plurality of sub-audio data and the trained audio grouping model, wherein the grouping information is used to indicate an association relationship between the corresponding sub-audio data and at least one sound source object, the grouping information corresponding to the sub-audio data includes an association degree between the sub-audio data and the at least one sound source object, and the sound source object is an entity object that emits the corresponding sub-audio data, or a conceptual object to which the corresponding sub-audio data belongs; A determination module is used to determine, for each sound source object, a plurality of associated sub-audio data having an association degree with the sound source object, and to perform weighted synthesis on the plurality of associated sub-audio data using the association degree of each associated sub-audio data with the sound source object as a weight value, so as to obtain the sound source object audio data corresponding to the sound source object; The device is also used for: Obtaining audio data of sample sound source objects of multiple sample sound source objects; For at least one sample sound source object audio data among the multiple sample sound source object audio data, at least one of the following preprocessing is performed: the frequency spectrum of the sample sound source object audio data is shifted in the frequency domain to obtain the sample sound source object audio data after audio modulation, the sample sound source object audio data is divided into a plurality of continuous non-overlapping audio frames, and then some of the audio frames are repeated or discarded to obtain the sample sound source object audio data after audio speed modulation; synthesizing the preprocessed audio data of the sample sound source objects of the plurality of sample sound source objects to obtain sample audio data; Inputting the sample audio data into an audio separation model to be trained, so that the audio separation model to be trained outputs a plurality of predicted sub-audio data; Inputting the predicted sub-audio data into the audio grouping model to be trained to obtain predicted grouping information corresponding to the predicted sub-audio data, wherein the predicted grouping information includes a predicted correlation between the predicted sub-audio data and the predicted sound source object; Determine the predicted sound source object audio data corresponding to each predicted sound source object based on each predicted sub-audio data and the predicted grouping information corresponding to each predicted sub-audio data; Based on a plurality of predicted sound source object audio data and a plurality of sample sound source object audio data, a loss value of the predicted sound source object audio data is determined, and based on the loss value, model parameters of the audio separation model to be trained and the audio grouping model to be trained are adjusted; the loss value of the predicted sound source object audio data is obtained by averaging the loss values of all the predicted sound source object audio data; Repeat the above steps of adjusting model parameters several times until the training end condition is met.
3. A computer device, It is characterized in that The computer device includes a processor and a memory, wherein at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to implement the operation performed by the audio separation method according to claim 1.
4. A computer-readable storage medium, It is characterized in that The storage medium stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the operation performed by the audio separation method according to claim 1.
5. A computer program product, It is characterized in that The computer program product includes at least one instruction, and the at least one instruction is loaded and executed by a processor to implement the operations performed by the audio separation method according to claim 1.
