Voice noise reduction model training method and device, voice noise reduction method and device, equipment and medium

By introducing human ear compression parameters and nonlinear transformation into the speech noise reduction model, the problem of unnatural noise reduction results in the existing technology is solved, and the overall perceived quality and effect of speech noise reduction are improved.

CN118538232APending Publication Date: 2024-08-23BEIJING UNISOUND INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410724943.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing speech noise reduction models are not ideal in complex noise environments, causing the noise reduction results to be over-smooth or insufficient in certain frequency bands, affecting the listening quality.

Method used

The human ear compression parameters are introduced, the loss value is calculated through nonlinear transformation, and the loss function is adjusted to more precisely control the noise reduction processing of different frequency bands and speech frames, simulating the nonlinear hearing characteristics of the human ear.

Benefits of technology

Improves the overall perceived quality of the voice noise reduction effect, ensuring that the noise reduction results are more natural, balancing the noise reduction effect and the sense of hearing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118538232A
    Figure CN118538232A
Patent Text Reader

Abstract

The invention discloses a voice noise reduction model training method and device, a voice noise reduction method and device, equipment and a medium. By introducing a human ear compression parameter, the perception difference of the human ear to the sound under different frequency bands is considered. According to the characteristics, the voice noise reduction model can better conform to auditory habits of human ears in the noise reduction process, and it is guaranteed that voice data obtained after noise reduction is more natural in listening feeling. According to the voice noise reduction method and the voice noise reduction system, fine feature difference calculation and loss value calculation are carried out on each frequency band and each voice frame in the predicted voice data, so that the voice noise reduction model can control and adjust different frequency bands and voice frames more accurately in the noise reduction process, and the noise reduction effect is improved. The perception of the human ears to the energy of the heard voice is in a non-linear relationship, but presents a non-linear compression effect, and the voice noise reduction model can simulate the non-linear compression effect through a compression effect coefficient, so that noise reduction can be performed more effectively.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of digital signal processing and deep learning technology, and in particular to a speech noise reduction model training and speech noise reduction method, device, equipment and medium. Background Art

[0002] In recent years, with the rapid development of deep learning technology, speech noise reduction methods based on neural networks have become the mainstream solution in this field. The core of speech noise reduction technology is to recover a signal as close to the original clean speech as possible from the noisy speech signal to improve the accuracy of voice communication and speech recognition. Although traditional speech noise reduction methods such as Wiener filtering and spectral subtraction can reduce noise to a certain extent, the effect is not ideal in complex noise environments.

[0003] The speech denoising method based on deep learning automatically learns the mapping relationship between noisy speech and clean speech by training a neural network model, thereby achieving denoising of noisy speech. Figure 1 As shown in Figure 1, the process of training a neural network model usually includes the following steps: first, the clean speech data in the clean speech sample library is mixed with the interference speech in the noise and impulse response database through a data simulation method to generate noisy speech; then, the noisy speech is sent to the neural network model for feature extraction and the gain Mask of the spectrum is estimated; then, the estimated gain Mask is multiplied by the spectrum of the noisy speech to estimate the spectrum of the predicted clean speech; finally, the loss between the estimated clean speech spectrum and the real clean speech spectrum is calculated, and the loss is fed back to the neural network model for adjusting the model parameters. This process is iterated continuously until the loss is no longer significantly reduced, thereby achieving model optimization.

[0004] For the above-mentioned speech denoising method, the method generally adopts a loss function that considers the contribution of each frequency band to be equal, such as signal-to-noise ratio (SNR), scale-invariant signal-to-noise ratio waveform (SI-SNR), waveform- or spectrum-based mean squared error (MSE), waveform- or spectrum-based L1 loss (MAE), etc. However, in practical applications, since speech signals usually have a higher proportion of low-frequency energy, the denoising process is more likely to be concentrated in the low-frequency area, which is inconsistent with the auditory perception of the human ear. Therefore, the existing loss calculation method may cause the denoising result to be over-smoothed in some frequency bands and insufficiently denoised in other frequency bands, thereby affecting the overall perceptual quality of the denoising effect. Summary of the invention

[0005] The present application provides a speech noise reduction model training and speech noise reduction method, device, equipment and medium, which are used to solve the problem that the existing speech noise reduction model will cause nonlinear distortion in the predicted clean speech, affecting the listening quality of the predicted clean speech.

[0006] In a first aspect, the present application provides a method for training a speech noise reduction model, the method comprising:

[0007] Determine the sample speech data based on any clean speech sample in the clean speech sample set and at least one noise sample included in the noise sample set;

[0008] Obtaining predicted speech data based on the sample speech data through an original speech noise reduction model;

[0009] For each frequency band and each speech frame included in the predicted speech data, determine a first difference between a second speech feature of the speech frame in the frequency band and a first speech feature of the corresponding speech frame in the clean speech sample in the frequency band; perform a c-th power nonlinear transformation on a first product of the first difference and a human ear compression parameter corresponding to the frequency band to obtain a first basic loss value; wherein c is a compression effect coefficient, and c is greater than 0; determine a second difference between a second L1 loss of the second speech feature and a first L1 loss of the first speech feature; perform a c-th power nonlinear transformation on a second product of the second difference and the human ear compression parameter to obtain a second basic loss value;

[0010] Determine a first loss function based on the sum of the first basic loss values, and determine a second loss function based on the sum of the second basic loss values;

[0011] Based on the first loss function and the second loss function, a target loss function is determined, so as to adjust the parameters in the original speech denoising model based on the target loss function until a trained speech denoising model is obtained when the target loss function satisfies a preset convergence condition.

[0012] In a second aspect, the present application also provides a speech noise reduction method based on the above-mentioned model, the method comprising:

[0013] Obtaining voice data to be processed;

[0014] The predicted clean speech is obtained based on the speech data to be processed through a pre-trained speech denoising model; wherein the speech denoising model is obtained by training the original speech denoising model according to the target loss function.

[0015] In a third aspect, the present application also provides a training device for a speech noise reduction model, the device comprising:

[0016] An acquisition unit, configured to determine sample speech data based on any clean speech sample in the clean speech sample set and at least one noise sample included in the noise sample set;

[0017] A first processing unit, configured to obtain predicted speech data based on the sample speech data by using an original speech noise reduction model;

[0018] The second processing unit is used to determine, for each frequency band and each speech frame included in the predicted speech data, a first difference between a second speech feature of the speech frame in the frequency band and a first speech feature of the corresponding speech frame in the clean speech sample in the frequency band; perform a c-th power nonlinear transformation on a first product of the first difference and a human ear compression parameter corresponding to the frequency band to obtain a first basic loss value; wherein c is a compression effect coefficient and c is greater than 0; determine a second difference between a second L1 loss of the second speech feature and a first L1 loss of the first speech feature; perform a c-th power nonlinear transformation on a second product of the second difference and the human ear compression parameter to obtain a second basic loss value; determine a first loss function based on the sum of each of the first basic loss values, and determine a second loss function based on the sum of each of the second basic loss values; determine a target loss function based on the first loss function and the second loss function, so as to adjust parameters in the original speech denoising model based on the target loss function until a trained speech denoising model is obtained when the target loss function meets a preset convergence condition.

[0019] In a fourth aspect, the present application also provides a speech noise reduction device based on the above-mentioned model, the device comprising:

[0020] An acquisition module, used to acquire voice data to be processed;

[0021] A processing module is used to obtain predicted clean speech based on the speech data to be processed through a pre-trained speech denoising model; wherein the speech denoising model is obtained by training the original speech denoising model according to the target loss function.

[0022] In a fifth aspect, the present application provides a computer device, which includes a processor, and the processor is used to implement the steps of the training method of the speech denoising model as described above when executing a computer program stored in a memory, or to implement the steps of the speech denoising method as described above.

[0023] In a sixth aspect, the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the training method of the speech denoising model as described above, or implements the steps of the speech denoising method as described above.

[0024] The beneficial effects of this application are as follows:

[0025] 1. By introducing the human ear compression parameter, the differences in the human ear's perception of sound in different frequency bands are taken into account. This feature enables the speech noise reduction model to be more in line with the human ear's auditory habits during the noise reduction process, ensuring that the noise-reduced speech data sounds more natural.

[0026] 2. For each frequency band and each speech frame in the predicted speech data, detailed feature difference calculation and loss value calculation are performed to ensure that the speech denoising model can have more precise control and adjustment of different frequency bands and speech frames during the denoising process, thereby improving the denoising effect.

[0027] 3. The human ear's perception of the energy of the speech it hears is not a linear relationship, but rather a nonlinear compression effect. Through the compression effect coefficient, the speech noise reduction model can simulate this nonlinear compression effect, thereby achieving more effective noise reduction.

[0028] 4. Based on the first loss function and the second loss function, determine the target loss function, and adjust the parameters in the original speech denoising model based on the target loss function, so as to comprehensively consider the losses in different aspects, so that the speech denoising model can achieve a better balance in noise reduction effect and listening experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] 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 paying creative labor.

[0030] Figure 1 A training and optimization method for an existing neural network model;

[0031] Figure 2 A schematic diagram of a training process of a speech noise reduction model provided in an embodiment of the present application;

[0032] Figure 3 A schematic diagram of an equal loudness curve provided in an embodiment of the present application;

[0033] Figure 4 A schematic diagram of a speech noise reduction process provided in an embodiment of the present application;

[0034] Figure 5 A schematic diagram of the structure of a training device for a speech noise reduction model provided in an embodiment of the present application;

[0035] Figure 6 A schematic diagram of the structure of a speech noise reduction device provided in an embodiment of the present application;

[0036] Figure 7 It is a structural schematic diagram of a computer device provided in an optional embodiment of the present application. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0038] In order to better simulate the auditory perception characteristics of the human ear and improve the perceptual quality of the noise reduction results while ensuring the noise reduction effect, the present application provides a speech noise reduction model training and speech noise reduction method, device, equipment and medium.

[0039] Embodiment 1:

[0040] This application provides a method for training a speech noise reduction model. Figure 2 A schematic diagram of a training process of a speech noise reduction model provided in an embodiment of the present application, the process includes:

[0041] S101: Determine sample speech data based on any clean speech sample in a clean speech sample set and at least one noise sample included in a noise sample set.

[0042] In the present application, the training method of the speech noise reduction model is applied to a computer device, which can be an intelligent terminal, such as a computer, a robot, etc., or a server, such as an application server, a business server, etc.

[0043] In order to improve the listening quality of the predicted clean speech, it is necessary to collect a clean speech sample set and a noise sample set in advance, and iteratively train the original speech denoising model to obtain a trained original speech denoising model. The noise sample set includes a large number of noise samples, and the clean speech sample set includes a large number of clean speech samples, which are a batch of clean human voice data collected in advance, that is, a batch of noise-free and human voice data collected in advance.

[0044] In a possible implementation, noises that may appear in voice data may be collected in advance for each working scenario of the smart device, and these noises may be determined as noise samples in the noise sample set according to their types. According to statistics, in the working scenarios of smart devices, the more common types of noises include: white noise, Gaussian noise, salt and pepper noise, etc.

[0045] Exemplarily, a clean speech sample and at least one noise sample are randomly obtained from the clean speech sample set and the noise sample set, respectively. The clean speech sample is mixed with the at least one noise sample, that is, the clean speech sample is subjected to noise processing to obtain sample speech data, and the clean speech sample is a clean speech sample corresponding to the sample speech data. Subsequently, based on the sample speech data and the clean speech sample corresponding to the sample speech data, the original speech denoising model is trained to obtain a trained speech denoising model.

[0046] It should be noted that the types of noise used in the process of adding noise to clean speech samples should be as many as possible to make the sample speech data more diverse, thereby improving the robustness and accuracy of the speech denoising model trained subsequently.

[0047] S102: Acquire predicted speech data based on the sample speech data through the original speech denoising model.

[0048] After the sample speech data is obtained based on the above embodiment, the sample speech data can be input into the original speech denoising model. The input sample speech data is processed by the original speech denoising model to obtain predicted speech data.

[0049] S103: For each frequency band and each speech frame included in the predicted speech data, determine the first difference between the second speech feature of the speech frame in the frequency band and the first speech feature of the corresponding speech frame in the clean speech sample in the frequency band; perform a nonlinear transformation of the first difference and the first product of the human ear compression parameter corresponding to the frequency band to the cth power to obtain a first basic loss value; wherein c is a compression effect coefficient and c is greater than 0; determine the second difference between the second L1 loss of the second speech feature and the first L1 loss of the first speech feature; perform a nonlinear transformation of the second product of the second difference and the human ear compression parameter to the cth power to obtain a second basic loss value.

[0050] In practical applications, since speech signals usually have a higher proportion of low-frequency energy, when a speech noise reduction model trained by a universal loss function that contributes equally to each frequency band performs noise reduction processing, the noise reduction processing is more likely to be concentrated in the low-frequency area, resulting in excessive smoothing of the noise reduction results in certain frequency bands and insufficient noise reduction in other frequency bands, thereby affecting the overall perceived quality of the noise reduction effect. Based on this, in the present application, different degrees of noise reduction processing can be performed on the noisy speech data for different frequency bands, thereby improving the overall perceived quality of the noise reduction effect.

[0051] The equal loudness curve is a series of curves with consistent loudness levels obtained through subjective measurement. In simple terms, the sound pressure levels of different frequency bands on the same curve are the same to human ears. According to the sampling rate of 16000Hz (cutoff frequency band 8000Hz), the weighting coefficient W (μ) calculated by ISO 226:2003 standard is as follows: Figure 3 As shown, the horizontal axis is the frequency band and the vertical axis is the weighting coefficient value. Figure 3 The equal loudness curves shown reflect that the human ear is most sensitive to mid-frequency, but not so sensitive to low frequency. Moreover, people from different countries have the same trend in sensitivity to sound, being most sensitive to mid-frequency, followed by high frequency, and least sensitive to low frequency. Based on this, when determining the loss function for training the speech noise reduction model, the weighting coefficient can be combined to perform weighted processing on each frequency band of the noisy speech. The weighting coefficient can be obtained through the ISO 226:2003 standard. Exemplarily, for each speech frame in the predicted speech data at different frequency bands, the following operations are performed:

[0052] First, determine the difference (first difference) between the second speech feature of the speech frame in the frequency band and the first speech feature of the corresponding speech frame in the clean speech sample in the frequency band, and determine the difference (second difference) between the L1 loss (second L1 loss) of the second speech feature and the L1 loss (first L1 loss) of the first speech feature. The speech feature (including the first speech feature and the second speech feature) can be any of the following: short-time discrete cosine transform feature, Mel cepstral coefficient, etc. The specific acquisition method belongs to the prior art and will not be specifically described or limited here.

[0053] Taking the speech feature as the short-time discrete cosine transform feature as an example, the sample speech data and the clean speech sample are framed and windowed, and then the short-time discrete cosine transform feature is calculated. Taking the speech with a sampling rate of 16000Hz as an example, a 512-point window length, a 256-point frame shift, and a 512-point square root Hanning window can be selected as the window function. It should be noted that in practice, other parameter configurations can also be selected to adapt to system delays.

[0054] The short-time discrete cosine transform characteristic form is as follows:

[0055]

[0056] in,

[0057] The third speech feature F of the sample speech data can be obtained by formula (1): x (t,μ) and the first speech feature F of the clean speech sample s (t,μ), where t,μ represent time and frequency respectively, N is the window size, which represents the number of samples considered in the short-time transform, z(μ) is a normalization factor used to ensure that the transform is orthogonal, and f(t) represents the input speech data.

[0058] Assuming that the mask predicted by the original speech denoising model is M(t,μ), the second speech feature of the predicted speech data is in, Characterize the second speech feature, F x (t,μ) represents the third speech feature.

[0059] In a possible implementation, the first product may be subjected to a nonlinear transformation of the power c to obtain a first human ear compression parameter, and then the L1 loss of the first human ear compression parameter, i.e., the L1 loss of the first human ear compression parameter, is determined as the first basic loss value. Similarly, the second product may be subjected to a nonlinear transformation of the power c to obtain a second human ear compression parameter, and then the L1 loss of the second human ear compression parameter, i.e., the L1 loss of the second human ear compression parameter, is determined as the second basic loss value.

[0060] In the present application, the speech data is pre-divided into multiple frequency bands, for example, according to the auditory characteristics of the human ear or the needs of signal processing. According to the ISO 226:2003 standard or other relevant standards, the equal loudness curve weighting coefficient W(μ) is obtained, and the human ear compression parameters corresponding to different frequency bands are determined from the W(μ), and the human ear compression parameters represent the relative sensitivity of the human ear to sounds of different frequencies. After the first difference and the second difference are obtained based on the above embodiment, the first difference can be multiplied by the human ear compression parameter corresponding to the frequency band, and the result is subjected to a nonlinear transformation of the power of c to obtain a first basic loss value. In addition, the second difference is multiplied by the human ear compression parameter corresponding to the frequency band, and a nonlinear transformation of the power of c is also performed to obtain a second basic loss value.

[0061] Wherein, c is a compression effect coefficient, and c is greater than 0. The compression effect coefficient means that the energy perception of the human ear to the heard speech is not a linear relationship, but presents a nonlinear compression effect.

[0062] S104: Determine a first loss function based on the sum of the first basic loss values, and determine a second loss function based on the sum of the second basic loss values.

[0063] After obtaining the first basic loss values ​​of each speech frame of the sample speech data in different frequency bands based on the above embodiment, the first loss function can be determined based on the sum of the first basic loss values. Similarly, after obtaining the second basic loss values ​​of each speech frame of the sample speech data in different frequency bands based on the above embodiment, the second loss function can be determined based on the sum of the second basic loss values.

[0064] In a possible implementation, a third product of the number of frames of the predicted speech data and the total number of frequency bands may be determined. A first loss function is determined based on a quotient of the sum of the first basic loss values ​​and the third product, and a second loss function is determined based on a quotient of the sum of the second basic loss values ​​and the third product.

[0065] For example,

[0066] Where T is the number of frames, F is the total number of frequency bands, represents the second speech feature, F s (t,f) represents the first speech feature, W(f) represents the human ear compression parameter corresponding to frequency band f, c represents the compression effect coefficient, and |·|1 refers to the L1 loss.

[0067] S105: Based on the first loss function and the second loss function, determine a target loss function, and adjust the parameters in the original speech denoising model based on the target loss function until a trained speech denoising model is obtained when the target loss function meets a preset convergence condition.

[0068] After determining the first loss function and the second loss function based on the above embodiment, the target loss function can be determined in combination with the first loss function and the second loss function, so as to adjust the parameters in the original speech denoising model based on the target loss function until the target loss function meets the preset convergence condition to obtain a trained speech denoising model.

[0069] In a possible implementation, determining the speech optimization loss function of this iteration includes:

[0070] Obtaining weight values ​​corresponding to the loss functions of this iteration; wherein the weight values ​​corresponding to the loss functions of the first iteration are first preset initial values;

[0071] The speech optimization loss function is determined based on each of the loss functions and the weight values ​​respectively corresponding to the loss functions.

[0072] Exemplarily, if the speech optimization loss function of this iteration includes a general loss function and a speech compensation loss function, the speech optimization loss function can be expressed as L comb =αL 通用 +βL1. Among them, L comb It is expressed as the speech optimization loss function, α is the weight value corresponding to the general loss function, L 通用 represents the general loss function, β is the weight value corresponding to the speech compensation loss function, and L1 represents the speech compensation loss function.

[0073] As another example, if the speech optimization loss function of this iteration includes a general loss function, a speech compensation loss function, and an inter-frame speech loss function, the speech optimization loss function can be expressed as L comb =αL 通用 +βL1+δL2. Among them, L comb It is expressed as the speech optimization loss function, α is the weight value corresponding to the general loss function, L 通用 represents the general loss function, β is the weight value corresponding to the speech compensation loss function, L1 represents the speech compensation loss function, δ is the weight value corresponding to the inter-frame speech loss function, and L2 represents the inter-frame speech loss function.

[0074] It should be noted that the weight values ​​corresponding to the loss functions in the first iteration are first preset initial values.

[0075] In one example, determining a target loss function based on the first loss function and the second loss function includes:

[0076] The target loss function is determined according to a first weight value corresponding to the first loss function and the first loss function, and a second weight value corresponding to the second loss function and the second loss function.

[0077] In the present application, this can be achieved by assigning a weight value to the first loss function and the second loss function respectively, so as to balance their importance according to the specific requirements of the task during the training process. Exemplarily, first, a weight value is assigned to the first loss function, called the first weight value (for example, α), and a weight value is assigned to the second loss function, called the second weight value (for example, β). These weight values ​​can be fixed or dynamically adjusted according to task requirements. Then, the first loss function and the second loss function are combined by weighted summation to form a target loss function. For example,

[0078] Target loss function = α × first loss function + β × second loss function.

[0079] Here, α and β are non-negative weight values ​​that control the relative importance of the two loss functions in the target loss function. If α is large, the model will focus more on optimizing the first loss function during training; if β is large, it will focus more on optimizing the second loss function.

[0080] For example, the sum of the second weight value and the first weight value is 1, and the second weight value is greater than the first weight value.

[0081] In a possible implementation, for each iterative training of the original speech denoising model, the first weight value and the second weight value of this iteration are adjusted until a trained speech denoising model is obtained when the target loss function satisfies a preset convergence condition.

[0082] In the present application, in each iterative training of the original speech denoising model, the weight values ​​corresponding to the first loss function and the second loss function are also adjustable parameters. Exemplarily, in each iterative training of the original speech denoising model, the weight values ​​corresponding to the first loss function and the second loss function of this iteration are adjusted until the optimized speech denoising model is obtained when the target loss function meets the convergence condition.

[0083] In a possible implementation, the weight values ​​corresponding to the first loss function and the second loss function may be adjusted simultaneously.

[0084] In another possible implementation, a certain weight value may be adjusted first, and then another weight value may be adjusted.

[0085] For example, the objective loss function is expressed as:

[0086]

[0087] Wherein, α is the first weight value, β is the second weight value, T is the number of frames, and F is the total number of frequency bands. represents the second speech feature, F s (t,f) represents the first speech feature, W(f) represents the human ear compression parameter corresponding to frequency band f, c represents the compression effect coefficient, and |·|1 refers to the L1 loss.

[0088] Through the above embodiment, several sample speech data can be obtained, and the above operation is performed for each sample speech data. When the preset convergence condition is met, the original speech denoising model training is completed.

[0089] In a possible implementation, the mask used to predict the predicted speech data in the original speech denoising model may be adjusted based on the target loss function until a trained speech denoising model is obtained when the target loss function satisfies a preset convergence condition.

[0090] Among them, the preset general convergence condition can be that the sum of the target loss function determined based on each sample speech data is always in a downward trend and tends to be flat, or the number of iterations of training the original speech denoising model reaches the set maximum number of iterations, etc. In the specific implementation, it can be flexibly set and is not specifically limited here.

[0091] As a possible implementation method, when training the original speech denoising model, the sample speech data can be divided into training samples and test samples. The original speech denoising model is first trained based on the training samples, and then the reliability of the trained original speech denoising model is verified based on the test samples.

[0092] The beneficial effects of this application are as follows:

[0093] 1. By introducing the human ear compression parameter, the differences in the human ear's perception of sound in different frequency bands are taken into account. This feature enables the speech noise reduction model to be more in line with the human ear's auditory habits during the noise reduction process, ensuring that the noise-reduced speech data sounds more natural.

[0094] 2. For each frequency band and each speech frame in the predicted speech data, detailed feature difference calculation and loss value calculation are performed to ensure that the speech denoising model can have more precise control and adjustment of different frequency bands and speech frames during the denoising process, thereby improving the denoising effect.

[0095] 3. The human ear's perception of the energy of the speech it hears is not a linear relationship, but rather a nonlinear compression effect. Through the compression effect coefficient, the speech noise reduction model can simulate this nonlinear compression effect, thereby achieving more effective noise reduction.

[0096] 4. Based on the first loss function and the second loss function, determine the target loss function, and adjust the parameters in the original speech denoising model based on the target loss function, so as to comprehensively consider the losses in different aspects, so that the speech denoising model can achieve a better balance in noise reduction effect and listening experience.

[0097] Embodiment 2:

[0098] The present application provides a speech noise reduction method based on the speech noise reduction model described in the above embodiment. Figure 4 A schematic diagram of a speech noise reduction process provided in an embodiment of the present application, the process includes:

[0099] S401: Acquire voice data to be processed.

[0100] S402: obtaining predicted clean speech based on the speech data to be processed through a pre-trained speech denoising model; wherein the speech denoising model is obtained by training the original speech denoising model according to the target loss function.

[0101] The speech noise reduction method provided in the present application is applied to a computer device, which may be a smart device or a server. The computer device for performing speech noise reduction in the present application may be the same as or different from the computer device for performing speech noise reduction model training.

[0102] In a possible implementation, the speech noise reduction model training is generally performed in an offline manner.

[0103] Smart devices can continuously collect voice data. Based on the voice data collected by the smart devices, computer devices that perform voice noise reduction can process the collected voice data to remove the noise contained in the voice data.

[0104] If the computer device for voice noise reduction is a smart device, after collecting certain voice data, the smart device can directly remove the noise contained in the voice data based on the voice noise reduction method provided by this application. If the computer device for voice noise reduction is a server, after collecting certain voice data, the smart device sends the voice data to the server, and the server removes the noise contained in the voice data based on the voice noise reduction method provided by this application.

[0105] In the present application, a speech denoising model is pre-trained, and the noise contained in the speech data is removed by the speech denoising model. Exemplarily, a computer device for performing speech denoising obtains collected speech data, determines the speech data as speech data to be processed, and inputs the speech data to be processed into a pre-trained speech denoising model. The speech denoising model receives the input speech data to be processed, processes the speech data to be processed, and obtains predicted clean speech.

[0106] It should be noted that the specific training process of the speech noise reduction model has been described in the above embodiment, and the repeated parts will not be repeated here.

[0107] Embodiment 3:

[0108] Based on the same inventive concept, the present application also provides a training device for a speech noise reduction model. Figure 5 A structural schematic diagram of a speech noise reduction model training device provided in an embodiment of the present application, the device comprising:

[0109] An acquiring unit 51 is used to determine sample speech data based on any clean speech sample in the clean speech sample set and at least one noise sample included in the noise sample set;

[0110] A first processing unit 52 is used to obtain predicted speech data based on the sample speech data through an original speech noise reduction model;

[0111] The second processing unit 53 is used to determine, for each frequency band and each speech frame included in the predicted speech data, a first difference between the second speech feature of the speech frame in the frequency band and the first speech feature of the corresponding speech frame in the clean speech sample in the frequency band; perform a c-th power nonlinear transformation on the first product of the first difference and the human ear compression parameter corresponding to the frequency band to obtain a first basic loss value; wherein c is a compression effect coefficient, and c is greater than 0; determine a second difference between the second L1 loss of the second speech feature and the first L1 loss of the first speech feature; perform a c-th power nonlinear transformation on the second product of the second difference and the human ear compression parameter to obtain a second basic loss value; determine a first loss function based on the sum of each of the first basic loss values, and determine a second loss function based on the sum of each of the second basic loss values; determine a target loss function based on the first loss function and the second loss function, so as to adjust the parameters in the original speech denoising model based on the target loss function until the trained speech denoising model is obtained when the target loss function meets a preset convergence condition.

[0112] The training device of the speech noise reduction model in this embodiment is presented in the form of a functional module, where the module refers to an application specific integrated circuit (ASIC), a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0113] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0114] Embodiment 7:

[0115] The present application also provides a speech noise reduction device based on the speech noise reduction model described in the above embodiment, Figure 6 A schematic diagram of the structure of a speech noise reduction device provided in an embodiment of the present application, the device comprising:

[0116] An acquisition module 61 is used to acquire voice data to be processed;

[0117] The processing module 62 is used to obtain predicted clean speech based on the speech data to be processed through a pre-trained speech denoising model; wherein the speech denoising model is obtained by training the original speech denoising model according to the target loss function.

[0118] The speech noise reduction device in this embodiment is presented in the form of a functional module, where the module refers to an application specific integrated circuit (ASIC), a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0119] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0120] Embodiment 4:

[0121] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present application, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.

[0122] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0123] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0124] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0125] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0126] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0127] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0128] Embodiment 5:

[0129] On the basis of the above embodiments, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program executable by a processor is stored. When the program runs on the processor, the processor implements the following steps when executing:

[0130] Determine the sample speech data based on any clean speech sample in the clean speech sample set and at least one noise sample included in the noise sample set;

[0131] Obtaining predicted speech data based on the sample speech data through an original speech noise reduction model;

[0132] For each frequency band and each speech frame included in the predicted speech data, determine a first difference between a second speech feature of the speech frame in the frequency band and a first speech feature of the corresponding speech frame in the clean speech sample in the frequency band; perform a c-th power nonlinear transformation on a first product of the first difference and a human ear compression parameter corresponding to the frequency band to obtain a first basic loss value; wherein c is a compression effect coefficient, and c is greater than 0; determine a second difference between a second L1 loss of the second speech feature and a first L1 loss of the first speech feature; perform a c-th power nonlinear transformation on a second product of the second difference and the human ear compression parameter to obtain a second basic loss value;

[0133] Determine a first loss function based on the sum of the first basic loss values, and determine a second loss function based on the sum of the second basic loss values;

[0134] Based on the first loss function and the second loss function, a target loss function is determined, so as to adjust the parameters in the original speech denoising model based on the target loss function until a trained speech denoising model is obtained when the target loss function satisfies a preset convergence condition.

[0135] Since the principle of solving the problem by the above-mentioned computer-readable storage medium is similar to the training method of the speech noise reduction model, the implementation of the above-mentioned computer-readable storage medium can refer to the embodiment of the method, and the repeated parts will not be repeated.

[0136] Embodiment 6:

[0137] On the basis of the above embodiments, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program executable by a processor is stored. When the program runs on the processor, the processor implements the following steps when executing:

[0138] Obtaining voice data to be processed;

[0139] The predicted clean speech is obtained based on the speech data to be processed through a pre-trained speech denoising model; wherein the speech denoising model is obtained by training the original speech denoising model according to the target loss function.

[0140] Since the principle of solving the problem by the above-mentioned computer-readable storage medium is similar to that of the speech noise reduction method, the implementation of the above-mentioned computer-readable storage medium can refer to the embodiment of the method, and the repeated parts will not be repeated.

[0141] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for training a speech noise reduction model, characterized in that: The method comprises: Determine the sample speech data based on any clean speech sample in the clean speech sample set and at least one noise sample included in the noise sample set; Obtaining predicted speech data based on the sample speech data through an original speech noise reduction model; For each frequency band and each speech frame included in the predicted speech data, determine a first difference between a second speech feature of the speech frame in the frequency band and a first speech feature of the corresponding speech frame in the clean speech sample in the frequency band; perform a c-th power nonlinear transformation on a first product of the first difference and a human ear compression parameter corresponding to the frequency band to obtain a first basic loss value; wherein c is a compression effect coefficient, and c is greater than 0; determine a second difference between a second L1 loss of the second speech feature and a first L1 loss of the first speech feature; perform a c-th power nonlinear transformation on a second product of the second difference and the human ear compression parameter to obtain a second basic loss value; Determine a first loss function based on the sum of the first basic loss values, and determine a second loss function based on the sum of the second basic loss values; Based on the first loss function and the second loss function, a target loss function is determined, so as to adjust the parameters in the original speech denoising model based on the target loss function until a trained speech denoising model is obtained when the target loss function satisfies a preset convergence condition.

2. The method according to claim 1, characterized in that The step of performing a c-th power nonlinear transformation on a first product of the first difference and a human ear compression parameter corresponding to the frequency band to obtain a first basic loss value includes: Performing a nonlinear transformation of the first product to the cth power to obtain a first human ear compression parameter; determining the L1 loss of the first human ear compression parameter as the first basic loss value; The step of performing the c-th power nonlinear transformation on the second product of the second difference and the human ear compression parameter to obtain a second basic loss value includes: Performing a nonlinear transformation of the second product to the cth power to obtain a second human ear compression parameter; The L1 loss of the second human ear compression parameter is determined as the second basic loss value.

3. The method according to claim 1 or 2, characterized in that The determining of a first loss function based on the sum of the first basic loss values, and the determining of a second loss function based on the sum of the second basic loss values, comprises: Determining a third product of the number of frames of the predicted speech data and the total number of frequency bands; The first loss function is determined according to the quotient of the sum of the first basic loss values ​​and the third product, and the second loss function is determined according to the quotient of the sum of the second basic loss values ​​and the third product.

4. The method according to claim 1, characterized in that The determining a target loss function based on the first loss function and the second loss function includes: The target loss function is determined according to a first weight value corresponding to the first loss function and the first loss function, and a second weight value corresponding to the second loss function and the second loss function.

5. The method according to claim 4, characterized in that For each iterative training of the original speech denoising model, the first weight value and the second weight value of this iteration are adjusted until a trained speech denoising model is obtained when the target loss function meets a preset convergence condition.

6. The method according to claim 4, characterized in that The sum of the second weight value and the first weight value is 1, and the second weight value is greater than the first weight value.

7. The method according to claim 1, characterized in that The adjusting of the parameters in the original speech denoising model based on the target loss function until the trained speech denoising model is obtained when the target loss function satisfies a preset convergence condition comprises: Based on the target loss function, the mask used to predict the predicted speech data in the original speech denoising model is adjusted until a trained speech denoising model is obtained when the target loss function meets a preset convergence condition.

8. A speech noise reduction method based on any one of the models described in claims 1-7, characterized in that: The method comprises: Obtaining voice data to be processed; The predicted clean speech is obtained based on the speech data to be processed through a pre-trained speech denoising model; wherein the speech denoising model is obtained by training the original speech denoising model according to the target loss function.

9. A training device for a speech noise reduction model, characterized in that: The device comprises: An acquisition unit, configured to determine sample speech data based on any clean speech sample in the clean speech sample set and at least one noise sample included in the noise sample set; A first processing unit, configured to obtain predicted speech data based on the sample speech data by using an original speech noise reduction model; The second processing unit is used to determine, for each frequency band and each speech frame included in the predicted speech data, a first difference between a second speech feature of the speech frame in the frequency band and a first speech feature of the corresponding speech frame in the clean speech sample in the frequency band; perform a c-th power nonlinear transformation on a first product of the first difference and a human ear compression parameter corresponding to the frequency band to obtain a first basic loss value; wherein c is a compression effect coefficient and c is greater than 0; determine a second difference between a second L1 loss of the second speech feature and a first L1 loss of the first speech feature; perform a c-th power nonlinear transformation on a second product of the second difference and the human ear compression parameter to obtain a second basic loss value; determine a first loss function based on the sum of each of the first basic loss values, and determine a second loss function based on the sum of each of the second basic loss values; determine a target loss function based on the first loss function and the second loss function, so as to adjust parameters in the original speech denoising model based on the target loss function until a trained speech denoising model is obtained when the target loss function meets a preset convergence condition.

10. A speech noise reduction device based on any one of the models described in claims 1-7, characterized in that: The device comprises: An acquisition module, used to acquire voice data to be processed; A processing module is used to obtain predicted clean speech based on the speech data to be processed through a pre-trained speech denoising model; wherein the speech denoising model is obtained by training the original speech denoising model according to the target loss function.

11. A computer device, characterized in that: The computer device includes a processor, which is used to implement the steps of the training method of the speech denoising model as described in any one of claims 1 to 7 above when executing the computer program stored in the memory, or to implement the steps of the speech denoising method as described in claim 8 above.

12. A computer-readable storage medium, characterized in that: It stores a computer program that can be executed by a computer device. When the program is run on the computer device, the computer device executes the steps of the training method of the speech noise reduction model as described in any one of claims 1 to 7 above, or implements the steps of the speech noise reduction method as described in claim 8 above.