Speech enhancement method and device, electronic equipment and medium

The cyclic generative adversarial network uses spectral domain features and phase features for speech enhancement, which solves the problems of manual labeling dependence and data set pairing in the existing technology, and achieves efficient speech denoising effect.

CN118629414APending Publication Date: 2024-09-10PEKING UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410570722.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the existing technology, deep speech enhancement network training relies on a large amount of manually labeled data, resulting in heavy workload and unstable model accuracy. The lack of paired data sets makes it impossible to train effectively.

Method used

Using a cyclic generative adversarial network, through unregistered noisy speech and pure speech training, spectral domain features, phase features and fundamental frequency parameters are used for speech synthesis to achieve speech enhancement and reduce the amount of manual labeling.

Benefits of technology

It significantly reduces the amount of manual labeling, improves the speech denoising effect, and achieves effective speech enhancement in the absence of paired data sets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629414A
    Figure CN118629414A
Patent Text Reader

Abstract

The invention provides a speech enhancement method and device, electronic equipment and a medium, and relates to the technical field of speech processing. The method comprises the following steps: performing voice decomposition processing on to-be-processed voice containing noise to obtain a spectral domain feature, a phase feature, a fundamental frequency and a non-periodic parameter; the spectral domain features and the phase features are input into a pre-trained cyclic generative adversarial network, and the pre-trained cyclic generative adversarial network is obtained by training unregistered noisy voice and pure voice and used for predicting and outputting enhanced spectral domain features; and performing speech synthesis by using the enhanced spectral domain features, the fundamental frequency and the aperiodic parameters, and taking the synthesized speech as enhanced speech corresponding to the speech to be processed. According to the scheme of the invention, the manual marking amount can be significantly reduced, the to-be-processed semantics can be better denoised to realize speech enhancement, a better denoising effect is achieved, and speech enhancement modes are enriched.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of speech processing technology, and in particular to a speech enhancement method, device, electronic equipment and medium. Background Art

[0002] As an information carrier, speech plays an irreplaceable role in information transmission. By acquiring, processing, and analyzing speech signals, the required information elements can be obtained. Therefore, speech signal acquisition and processing are widely used in security, monitoring, and military fields. Due to the complexity of the environment around the sound source, speech acquired in a non-active or random state usually contains a lot of noise. The presence of noise can cause auditory fatigue, and may also cause speech distortion and reduced speech intelligibility, which seriously affects the quality of speech. It is particularly important to find an effective method to denoise noisy speech.

[0003] At present, there are existing technologies that use generative models of neural networks for speech denoising. However, when training the model, not only does it need to mark a large amount of speech, but the accuracy of the marking will also affect the accuracy of the model. It can be seen that the traditional denoising method using neural networks relies too much on manual marking, resulting in a large amount of manual workload and cannot guarantee the denoising effect of the model, and therefore urgently needs to be improved. Summary of the invention

[0004] The present invention provides a speech enhancement method, device, electronic device and medium, which are used to solve the problem in the prior art that a deep speech enhancement network cannot be trained due to the lack of a paired data set. With the help of a cyclic generative adversarial network, the learning of noisy speech into pure speech can be achieved without relying on paired labeled data sets as input.

[0005] According to a first aspect of the present invention, the present invention provides a speech enhancement method, the method comprising:

[0006] Performing speech decomposition processing on the speech to be processed containing noise to obtain spectral domain features, phase features, fundamental frequency and non-periodic parameters;

[0007] Inputting the spectral domain features and the phase features into a pre-trained recurrent generative adversarial network, wherein the pre-trained recurrent generative adversarial network is trained using unregistered noisy speech and clean speech, and is used to predict and output enhanced spectral domain features;

[0008] Speech synthesis is performed using the enhanced spectral domain features, the fundamental frequency, and the non-periodic parameters, and the synthesized speech is used as the enhanced speech corresponding to the speech to be processed.

[0009] In some possible implementations, speech decomposition processing is performed on the speech to be processed containing noise to obtain spectral domain features, phase features, fundamental frequency and non-periodic parameters, including:

[0010] The WORLD audio processing tool is used to extract spectral domain features, phase features, fundamental frequency and non-periodic parameters from the speech to be processed.

[0011] In some possible implementations, the pre-trained recurrent generative adversarial network is trained by the following steps:

[0012] Constructing a recurrent generative adversarial network and defining a loss function for the recurrent generative adversarial network;

[0013] Constructing speech pairs using a preset clean speech library and a preset noise library to obtain training samples and test samples, wherein each speech pair includes a noisy speech and a clean speech, and the clean speech corresponding to the noisy speech and the clean speech in the same speech pair belong to different clean speeches;

[0014] Training the recurrent generative adversarial network using the loss function and the training samples to obtain a trained recurrent generative adversarial network;

[0015] The trained recurrent generative adversarial network is tested using the test sample to obtain a pre-trained recurrent generative adversarial network.

[0016] In some possible implementations, constructing a recurrent generative adversarial network and defining a loss function for the recurrent generative adversarial network include:

[0017] A recurrent generative adversarial network model is constructed, which includes two generators and a discriminator corresponding to each generator, wherein one generator is used to transform the spectral domain features of noisy speech into the spectral domain features of clean speech, and the other generator is used to transform the phase features of noisy speech into the phase features of clean speech. The discriminator is used to determine whether the features generated by the corresponding generator are real data in the target domain;

[0018] Based on the least squares loss, define the adversarial loss function for each generator and the corresponding discriminator;

[0019] A cycle consistency loss function is defined for the two generators, and an identity mapping loss function is defined for the two generators based on the cycle consistency loss function.

[0020] In some possible implementations, the adversarial loss function is expressed as:

[0021]

[0022] In the formula, G represents the generator of spectral domain features, F represents the generator of phase features, and D x Denotes the discriminator corresponding to the generator F, D y represents the discriminator corresponding to the generator G, LGAN (G,D y ) represents the generator G and the discriminator D y The adversarial loss function, L GAN (F,D x ) represents the generator F and the discriminator D x The adversarial loss function, D y (y) indicates the possibility of judging that the data comes from data domain Y. represents the mathematical expectation of the data in the data domain Y, represents the mathematical expectation of the data in the data domain X, D y (y) indicates the possibility of judging that the data comes from data domain Y, D x (x) represents the possibility of judging that the data comes from the data domain X, G(x) represents the function generated by G, and F(y) represents the function generated by F;

[0023] The cycle consistency loss function is expressed as:

[0024]

[0025] In the formula, G represents the generator of spectral domain features, F represents the generator of phase features, and L cyc (G, F) represents the cycle consistency loss function of generator G and generator F, ||·||1 represents the L1 criterion, represents the mathematical expectation of the data in the data domain Y, represents the mathematical expectation of the data in the data domain X, x represents the original data in X, y represents the original data in Y, G(x) represents the function generated by G, and F(y) represents the function generated by F;

[0026] The identity mapping loss function is expressed as:

[0027]

[0028] Where, L id (G, F) represents the identity mapping loss function between generator G and generator F, ||·||1 represents the L1 criterion, represents the mathematical expectation of the data in the data domain Y, represents the mathematical expectation of the data in the data domain X, x represents the original data in X, y represents the original data in Y, G(y) represents the function generated by G, and F(x) represents the function generated by F.

[0029] In some possible implementations, the two generators have the same structure, and each generator is composed of an encoder, a converter, and a decoder to form a U-shaped structure with an intermediate channel;

[0030] The encoder is used to downsample the spectral features and expand its feature space, wherein the encoder includes a convolution layer and two downsampling layers;

[0031] The decoder is opposite to the encoder and is used to upsample the data after dimension reduction to restore low-level features from the feature vector, wherein the decoder includes two upsampling layers and one convolution layer;

[0032] The converter is arranged between the encoder and the decoder. The converter adopts a residual network. The residual network converts the spectral feature vector of the speech in the noisy domain into the spectral feature vector in the noise-free domain by combining the dissimilar features of the signals. The U-shaped channel in the middle fuses the features of the encoder with the features of the decoder.

[0033] In some possible implementations, the two discriminators have the same structure, each of which includes two convolutional layers, three downsampling layers and a classification layer, a normalization layer is added after each convolutional layer, and a gated linear unit (GLU) is used as an activation function, and the classification layer uses full convolution and least squares coding for classification.

[0034] According to a second aspect of the present invention, the present invention also provides a speech enhancement device, the device comprising:

[0035] A decomposition module, wherein the decomposition module is used to perform speech decomposition processing on the speech to be processed containing noise to obtain spectral domain features, phase features, fundamental frequency and non-periodic parameters;

[0036] A prediction module, wherein the prediction module is used to input the spectral domain features and the phase features into a pre-trained recurrent generative adversarial network, wherein the pre-trained recurrent generative adversarial network is trained using unregistered noisy speech and clean speech, and the pre-trained recurrent generative adversarial network is used to predict and output enhanced spectral domain features;

[0037] A synthesis module is used to perform speech synthesis using the enhanced spectral domain features, the fundamental frequency, and the non-periodic parameters, and use the synthesized speech as the enhanced speech corresponding to the speech to be processed.

[0038] According to the third aspect of the present invention, the present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a speech enhancement method as described above is implemented.

[0039] According to a fourth aspect of the present invention, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the speech enhancement method as described in any one of the above is implemented.

[0040] The present invention provides a speech enhancement method, which first extracts spectral domain features, phase features, fundamental frequency and non-periodic parameters for speech synthesis from noisy semantics to be processed, then inputs the spectral domain features and phase features into a recurrent generative adversarial network trained with unaligned noisy speech and clean speech, and finally synthesizes new semantics with enhanced spectral domain features predicted and output by the recurrent generative adversarial network and fundamental frequency and non-periodic parameters, thereby obtaining enhanced speech corresponding to the speech to be processed, realizing the joint spectral domain features and phase features to predict the enhanced spectral domain features, and the recurrent generative adversarial network used does not need to be manually labeled, which significantly reduces the amount of manual labeling, so that the semantics to be processed can be better denoised to achieve speech enhancement, has a good denoising effect, and enriches the speech enhancement method.

[0041] In addition, a speech enhancement device, an electronic device and a non-transitory computer-readable storage medium provided by the present invention can also achieve the above-mentioned technical effects, which will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 It is a flow chart of the speech enhancement method provided by the present invention;

[0044] Figure 2 is a schematic diagram of using a pre-trained cyclic generative adversarial network to enhance speech provided by the present invention;

[0045] Figure 3 It is a schematic diagram of using a training cycle to generate an adversarial network to enhance speech provided by the present invention;

[0046] Figure 4 It is a schematic diagram of the network structure of the U-shaped generator provided by the present invention;

[0047] Figure 5 Schematic diagram of the network structure of the discriminator provided by the present invention;

[0048] Figure 6 It is a schematic diagram of waveform diagram and spectrogram of noisy speech, enhanced speech and pure speech provided by the present invention;

[0049] Figure 7 It is a structural schematic diagram of the speech enhancement device provided by the present invention;

[0050] Figure 8It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] Combine the following Figures 1 to 8 The present invention describes a speech enhancement method, a speech enhancement device, an electronic device and a non-transitory computer-readable storage medium.

[0053] Figure 1 is a flow chart of a speech enhancement method provided by an embodiment of the present invention, Figure 2 Please refer to the schematic diagram of using the pre-trained cyclic generative adversarial network to enhance speech provided by the present invention. Figure 1 and Figure 2 As shown, this embodiment provides a method for speech enhancement, which can be implemented by steps S101 to S103. Each step will be described in detail below:

[0054] Step S101, performing speech decomposition processing on the speech to be processed containing noise to obtain spectral domain features, phase features, fundamental frequency and non-periodic parameters.

[0055] In this embodiment, the speech to be processed refers to a speech signal containing any type of noise. The speech to be processed may be a speech segment randomly recorded in any noise environment. Of course, the speech to be processed may also be a speech signal synthesized by pure speech and noise. Speech decomposition may be achieved by any existing speech decomposition tool or speech decomposition algorithm, feature decomposition model, etc.

[0056] Step S102: input the spectral domain features and the phase features into a pre-trained recurrent generative adversarial network, wherein the pre-trained recurrent generative adversarial network is trained using unaligned noisy speech and clean speech, and is used to predict and output enhanced spectral domain features.

[0057] In this embodiment, the pre-trained recurrent generative adversarial network refers to a network model obtained by training the recurrent generative adversarial network using specific speech data, wherein the specific speech data refers to data that has not been manually labeled. The noisy speech and clean speech used in the training network exist in pairs, and the misalignment is aimed at any pair of noisy speech and clean speech. Specifically, the misalignment characterizes that the non-noise part of the noisy speech belongs to a different speech from the paired clean speech, that is, the clean speech part in the noisy speech is different from the real clean speech content. Exemplarily, the noisy speech can be the speech generated by reading sentence A in a noisy environment, the noisy speech can also be obtained by adding specific noise to the clean speech, and the clean speech corresponding to the noisy speech can be the speech generated by reading sentence B.

[0058] Step S103, performing speech synthesis using the enhanced spectral domain features, the fundamental frequency, and the non-periodic parameters, and using the synthesized speech as the enhanced speech corresponding to the speech to be processed.

[0059] In this embodiment, speech synthesis can be achieved by any existing speech synthesis tool, such as using WORLD audio processing to integrate enhanced spectral domain features, fundamental frequency and non-periodic parameters into a new speech, and the new speech is the synthesized speech.

[0060] The speech enhancement method of this embodiment first extracts spectral domain features, phase features, fundamental frequency and non-periodic parameters for speech synthesis from the noisy semantics to be processed, then inputs the spectral domain features and phase features into a recurrent generative adversarial network trained with unaligned noisy speech and clean speech, and finally uses the enhanced spectral domain features predicted and output by the recurrent generative adversarial network to synthesize new semantics with the fundamental frequency and non-periodic parameters, thereby obtaining enhanced speech corresponding to the speech to be processed, realizing the joint spectral domain features and phase features to predict the enhanced spectral domain features, and the recurrent generative adversarial network used does not need to be manually labeled, which significantly reduces the amount of manual labeling, so that the semantics to be processed can be better denoised to achieve speech enhancement, has a good denoising effect, and enriches the speech enhancement method.

[0061] In some possible implementations, the aforementioned step S101, performing speech decomposition processing on the speech to be processed containing noise to obtain spectral domain features, phase features, fundamental frequency and non-periodic parameters, specifically includes:

[0062] The WORLD audio processing tool is used to extract spectral domain features, phase features, fundamental frequency and non-periodic parameters from the speech to be processed.

[0063] The speech enhancement method of this embodiment uses the WORLD audio processing tool to achieve the decomposition of the speech to be processed, thereby decomposing the features required by the recurrent generative adversarial network and the parameters required for speech synthesis, preparing for the subsequent synthesis of new speech, and having high processing efficiency.

[0064] For some possible implementations, see Figure 3 As shown, the pre-trained cyclic generative adversarial network is trained by the following steps:

[0065] Constructing a recurrent generative adversarial network and defining a loss function for the recurrent generative adversarial network;

[0066] Constructing speech pairs using a preset clean speech library and a preset noise library to obtain training samples and test samples, wherein each speech pair includes a noisy speech and a clean speech, and the clean speech corresponding to the noisy speech and the clean speech in the same speech pair belong to different clean speeches;

[0067] Training the recurrent generative adversarial network using the loss function and the training samples to obtain a trained recurrent generative adversarial network;

[0068] The trained recurrent generative adversarial network is tested using the test sample to obtain a pre-trained recurrent generative adversarial network.

[0069] The speech enhancement method of this embodiment constructs a recurrent generative adversarial network in advance, and uses the existing pure semantic library and noise library to construct a data set and a training set for model training. At the same time, a specific loss function is used to obtain a pre-trained recurrent generative adversarial network through verification of the training set and the test set, which can ensure that the obtained model has good prediction accuracy.

[0070] In some possible implementations, the aforementioned steps construct a recurrent generative adversarial network and define a loss function for the recurrent generative adversarial network, specifically including:

[0071] A recurrent generative adversarial network model is constructed, which includes two generators and a discriminator corresponding to each generator, wherein one generator is used to transform the spectral domain features of noisy speech into the spectral domain features of clean speech, and the other generator is used to transform the phase features of noisy speech into the phase features of clean speech. The discriminator is used to determine whether the features generated by the corresponding generator are real data in the target domain;

[0072] Based on the least squares loss, define the adversarial loss function for each generator and the corresponding discriminator;

[0073] A cycle consistency loss function is defined for the two generators, and an identity mapping loss function is defined for the two generators based on the cycle consistency loss function.

[0074] In some possible implementations, the adversarial loss function is expressed as:

[0075]

[0076] In the formula, G represents the generator of spectral domain features, F represents the generator of phase features, and D x Denotes the discriminator corresponding to the generator F, D y represents the discriminator corresponding to the generator G, L GAN (G,D y ) represents the generator G and the discriminator D y The adversarial loss function, L GAN (F,D x ) represents the generator F and the discriminator D x The adversarial loss function, D y (y) indicates the possibility of judging that the data comes from data domain Y. represents the mathematical expectation of the data in the data domain Y, represents the mathematical expectation of the data in the data domain X, D y (y) indicates the possibility of judging that the data comes from data domain Y, D x (x) represents the possibility of judging that the data comes from the data domain X, G(x) represents the function generated by G, and F(y) represents the function generated by F;

[0077] The cycle consistency loss function is expressed as:

[0078]

[0079] In the formula, G represents the generator of spectral domain features, F represents the generator of phase features, and L cyc (G, F) represents the cycle consistency loss function of generator G and generator F, ||·||1 represents the L1 criterion, represents the mathematical expectation of the data in the data domain Y, represents the mathematical expectation of the data in the data domain X, x represents the original data in X, y represents the original data in Y, G(x) represents the function generated by G, and F(y) represents the function generated by F;

[0080] The identity mapping loss function is expressed as:

[0081]

[0082] Where, L id (G, F) represents the identity mapping loss function between generator G and generator F, ||·||1 represents the L1 criterion, represents the mathematical expectation of the data in the data domain Y, represents the mathematical expectation of the data in the data domain X, x represents the original data in X, y represents the original data in Y, G(y) represents the function generated by G, and F(x) represents the function generated by F.

[0083] The speech enhancement method of this embodiment defines a specific adversarial loss function for the constructed cyclic generative adversarial network. Specifically, the minimum loss is jointly used to construct the adversarial loss function between the generator and the discriminator, so that the generated data is closer to the real data, and the problems of insufficient training of the generative adversarial network, instability of the training process and vanishing gradient are solved. The identity mapping loss is introduced on the basis of a specific cyclic consistency loss, which can more accurately measure the quality of the data generated by the model, thereby truly reflecting the degree of the gap between the predicted data and the actual data, thereby improving the prediction accuracy of the model and more accurately predicting the features of the semantics to be processed.

[0084] For some possible implementations, see Figure 4 As shown, the two generators have the same structure, and each generator consists of an encoder, a converter, and a decoder to form a U-shaped structure with an intermediate channel;

[0085] The encoder is used to downsample the spectral features and expand its feature space, wherein the encoder includes a convolution layer and two downsampling layers;

[0086] The decoder is opposite to the encoder and is used to upsample the data after dimension reduction to restore low-level features from the feature vector, wherein the decoder includes two upsampling layers and one convolution layer;

[0087] The converter is arranged between the encoder and the decoder. The converter adopts a residual network. The residual network converts the spectral feature vector of the speech in the noisy domain into the spectral feature vector in the noise-free domain by combining the dissimilar features of the signals. The U-shaped channel in the middle fuses the features of the encoder with the features of the decoder.

[0088] The speech enhancement method of this embodiment adopts a U-shaped structure with an intermediate channel composed of an encoder, a converter and a decoder for the generator of the recurrent generative adversarial network. The improved U-shaped structure generator can not only realize feature expansion at different scales, but also compensate for the loss of details caused by the reduction of the sequence by the encoding layer, thereby improving the quality of generated prediction data and further improving the prediction accuracy of the model.

[0089] For some possible implementations, see Figure 5 As shown, the two discriminators have the same structure. Each discriminator includes two convolutional layers, three downsampling layers and a classification layer. A normalization layer is added after each convolutional layer, and a gated linear unit is used as an activation function. The classification layer uses full convolution and least squares coding for classification.

[0090] The speech enhancement method of this embodiment improves the discriminator to use specific convolutional layers and downsampling layers to complete feature extraction and classification, and also introduces a normalization layer to ensure the distribution consistency of data, thereby improving the generalization ability of the model.

[0091] In another embodiment, in order to facilitate understanding of the solution of the present invention, the following describes the solution of the present invention in detail using spectral envelop and MFCC as examples. Figure 3 As shown, this embodiment provides another method for speech enhancement, and the specific implementation scheme is as follows:

[0092] Step 1: Decomposition of speech. Spectral envelop and MFCC features are selected and jointly input into the CycleGAN speech enhancement network parameters for optimization.

[0093] Specifically, in step 1, WORLD is used, which contains three modules, namely DIO, CheapTrick, and PLATINUM, to obtain the fundamental frequency (F0), spectral envelope, and Aperiodic Parameter (AP) of the speech. The specific steps are: first add a Hanning window to the signal; then calculate the power of the windowed signal; finally, use a rectangular window function to smooth the power spectrum.

[0094] Step 2: Improve the discriminator. The two discriminators (D_x and D_y) of SE-CycleGAN also use the same network structure. The essence of the discriminator is a binary classifier, and its main purpose is to determine whether the MCEP feature is the real data of the target domain.

[0095] Specifically, the discriminator contains 1 convolution layer and 4 downsampling layers to complete feature extraction. The discriminator also adds a normalized IN layer after the convolution layer to ensure the distribution consistency of the data and improve the generalization ability of the model. The gated linear unit (GLU) is used as the activation function. The last layer of the discriminator uses full convolution and least squares encoding (1 corresponds to true and 0 corresponds to false) for classification.

[0096] Step 3: Improve the generator. SE-CycleGAN contains two generators, where the purpose of generator G is to complete the transformation of the spectrum characteristics of noisy speech to the spectrum characteristics of pure speech. The two generators (G and F) in SE-CycleGAN use the same structure. The generation network uses convolutional layers instead of fully connected layers to reduce the number of training parameters. The generator consists of three parts: encoder, converter, and decoder, and the overall structure is U-shaped.

[0097] The specific generator consists of three parts: encoder, converter and decoder. The overall structure is U-shaped. The encoder downsamples the spectral features and expands its feature space. The decoder is the opposite of the encoder. It upsamples the data after the dimension is reduced. The purpose is to make up for the loss of details caused by the sequence reduction of the encoding layer and complete the work of restoring low-level features from the feature vector. The residual network layer is included between the encoder and the decoder as the converter of the model. The residual network converts the spectral feature vector of the speech in the noisy domain into the spectral feature vector in the noise-free domain by combining the dissimilar features of the signal. The U-shaped channel in the middle merges the features of the encoder and the decoder to achieve feature expansion at different scales. The encoder contains one convolutional layer (Conv1D) and two downsampling layers to complete feature extraction. The decoder completes upsampling of the data after the dimension is reduced. It contains two upsampling layers (Upsampling) and one convolutional layer (Conv1D).

[0098] Step 4: Set the loss function to measure the quality of the data generated by the model, that is, to show the difference between the prediction and the actual data. y , the adversarial loss function is:

[0099]

[0100] The same goes for F and D x , the adversarial loss function is:

[0101]

[0102] The cycle consistency loss remains unchanged and is expressed as:

[0103]

[0104] In the formula, ||·||1 is the L1 criterion. The effectiveness of cycle consistency loss has been proven. On the basis of cycle consistency loss, identity mapping loss is added. Identity mapping loss makes the feature information unchanged before and after the conversion. The expression of identity mapping loss is:

[0105]

[0106] Step 5: After the spectral envelop (SP) and MFCC features of the speech decomposition are enhanced by CycleGAN, the enhanced features spectral envelop (SP') and fundamental frequency F0 and AP are used to synthesize the enhanced speech.

[0107] The following example uses the TIMIT (DARPA TIMIT Acoustic-Phonetic Continuous SpeechCorpus) dataset to build a model. The TIMIT dataset has a speech sampling frequency of 16kHz and contains a total of 6,300 sentences. The specific data usage is as follows:

[0108] First, 6300 sentences are randomly divided into three groups, each containing 2000 sentences, forming clean speech sets S1, S2, and S3. The noise database NOIZEUS of this experiment is used as the data source, and three types of noise that are more common in the actual working environment of the system are selected, including Car noise, Babble noise, and Train noise. Different types of noise with different signal-to-noise ratios (-5dB, 0dB, 5dB, 10dB) are added to S1 to obtain a strictly aligned noise set S4, and (S1, S4) are combined into a data set. This data set is a strictly aligned and aligned noisy speech and clean speech data set D1. Different types of noise with different signal-to-noise ratios (-5dB, 0dB, 5dB, 10dB) are added to S2 to obtain S5. (S1, S5) are combined into a data set D2. This data set is an unpaired data set consisting of noisy speech and clean speech. Different types of noise are added to S3 to obtain S6. Use D2 to train the network proposed in this paper, D1 to train the existing network structure, and S6 as a test set to verify the enhancement capabilities and speech enhancement effects of different networks;

[0109] Then, the data in the SE-CycleGAN training phase is a data set consisting of noisy speech obtained by adding Car noise, Babble noise and Train noise with different signal-to-noise ratios and unpaired pure speech (S1, S5). Then, a speech in (S1, S4) is randomly selected, and the speech is framed, World-Vocoder decomposed, and MFCC feature extracted preprocessed. The combined feature parameters (SP, MFCC) of the extracted spectrum envelope feature SP and MFCC feature are input into SE-CycleGAN for training.

[0110] Finally, in the enhancement stage, the trained generator G is used to conduct a speech enhancement experiment. A speech is randomly selected from the test set S6, and the noisy speech is preprocessed to obtain the SP and MFCC of the noisy speech. The SP and MFCC are input into the generator G network of the enhanced CycleGAN to obtain the SP of the enhanced speech. Finally, the enhanced SP' and the fundamental frequency F0 and Aperiodic of the noisy speech are synthesized using World-Vocoder to obtain the enhanced speech.

[0111] Figure 6 The waveforms and spectrograms of noisy speech, enhanced speech and clean speech are shown, where the enhanced speech is obtained by enhancing the speech using the improved SE-CycleGAN model of the present invention. It can be seen from the signal waveform that the scheme of the present invention can better remove the noise of the speech, and the waveform of the enhanced speech is closer to that of the clean speech, which has a good denoising effect. Moreover, the spectrogram of the enhanced speech is also improved compared to the spectrogram of the noisy speech. In addition, combined with Table 1, it can be seen that in the enhancement experiment, the enhanced speech has an SNR improvement of 6.842dB, a SegSNR improvement of 6.217dB, a PESQ improvement of 0.185, and a LLR indicator reduction of 0.527. Overall, SE-CycleGAN has a good speech enhancement effect.

[0112] Table 1 Comparison of noisy speech and enhanced speech

[0113] voice SNR segSNR PESQ LLR Noisy speech 0 -5.37 1.023 2.643 Enhanced Voice 6.842 0.847 1.208 2.116

[0114] The solution of speech enhancement using SE-CycleGAN network proposed in the present invention, by virtue of its innovative structural design and effective SP and MFCC feature fusion strategy, shows excellent speech enhancement performance in the absence of registration data. When training SE-CycleGAN, only noisy speech and clean speech are needed as input, and the speech content is not required to match. The innovation of SE-CycleGAN lies in its ability to convert noisy speech from the source domain to the clean speech domain in the absence of paired training data. SE-CycleGAN provides new ideas for speech denoising, and also provides new research methods and references for the application of deep learning models in other data processing directions.

[0115] The speech enhancement device provided by the present invention is described below. The speech enhancement device described below and the speech enhancement method described above can be referred to each other.

[0116] Please refer to Figure 7As shown, this embodiment provides a speech enhancement device, specifically, the device includes: a decomposition module 710, a prediction module 720 and a synthesis module 730, and the above modules are described in detail below:

[0117] A decomposition module 710, wherein the decomposition module 710 is used to perform speech decomposition processing on the speech to be processed containing noise to obtain spectral domain features, phase features, fundamental frequency and non-periodic parameters;

[0118] A prediction module 720, wherein the prediction module 720 is used to input the spectral domain features and the phase features into a pre-trained recurrent generative adversarial network, wherein the pre-trained recurrent generative adversarial network is trained using unregistered noisy speech and clean speech, and the pre-trained recurrent generative adversarial network is used to predict and output enhanced spectral domain features;

[0119] The synthesis module 730 is used to perform speech synthesis by using the enhanced spectral domain features, the fundamental frequency, and the non-periodic parameters, and use the synthesized speech as the enhanced speech corresponding to the speech to be processed.

[0120] The speech enhancement device of this embodiment first extracts spectral domain features, phase features, fundamental frequency and non-periodic parameters for speech synthesis from the noisy semantics to be processed, then inputs the spectral domain features and phase features into a recurrent generative adversarial network trained with unaligned noisy speech and clean speech, and finally synthesizes new semantics with the enhanced spectral domain features predicted and output by the recurrent generative adversarial network and the fundamental frequency and non-periodic parameters, thereby obtaining enhanced speech corresponding to the speech to be processed, and realizes the prediction of enhanced spectral domain features by combining spectral domain features and phase features. In addition, the recurrent generative adversarial network used does not require manual labeling, which significantly reduces the amount of manual labeling, so that the semantics to be processed can be better denoised to achieve speech enhancement, has a good denoising effect, and enriches the speech enhancement method.

[0121] It should be noted that each module in the above-mentioned speech enhancement device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0122] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the speech enhancement method, which includes: performing speech decomposition processing on the speech to be processed containing noise to obtain spectral domain features, phase features, fundamental frequency and non-periodic parameters; inputting the spectral domain features and the phase features into a pre-trained recurrent generative adversarial network, wherein the pre-trained recurrent generative adversarial network is trained using unaligned noisy speech and clean speech, and is used to predict and output enhanced spectral domain features; performing speech synthesis using the enhanced spectral domain features, the fundamental frequency and the non-periodic parameters, and using the synthesized speech as the enhanced speech corresponding to the speech to be processed.

[0123] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0124] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the speech enhancement method provided by the above-mentioned methods, which includes: performing speech decomposition processing on the speech to be processed containing noise to obtain spectral domain features, phase features, fundamental frequency and non-periodic parameters; inputting the spectral domain features and the phase features into a pre-trained recurrent generative adversarial network, wherein the pre-trained recurrent generative adversarial network is trained using unaligned noisy speech and clean speech, and is used to predict and output enhanced spectral domain features; using the enhanced spectral domain features, the fundamental frequency and the non-periodic parameters to perform speech synthesis, and using the synthesized speech as the enhanced speech corresponding to the speech to be processed.

[0125] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the speech enhancement method provided by the above-mentioned methods, the method comprising: performing speech decomposition processing on the speech to be processed containing noise to obtain spectral domain features, phase features, fundamental frequency and non-periodic parameters; inputting the spectral domain features and the phase features into a pre-trained recurrent generative adversarial network, wherein the pre-trained recurrent generative adversarial network is trained using unaligned noisy speech and clean speech, and is used to predict and output enhanced spectral domain features; performing speech synthesis using the enhanced spectral domain features, the fundamental frequency and the non-periodic parameters, and using the synthesized speech as the enhanced speech corresponding to the speech to be processed.

[0126] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0127] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0128] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A speech enhancement method, characterized in that: The method comprises: Performing speech decomposition processing on the speech to be processed containing noise to obtain spectral domain features, phase features, fundamental frequency and non-periodic parameters; Inputting the spectral domain features and the phase features into a pre-trained recurrent generative adversarial network, wherein the pre-trained recurrent generative adversarial network is trained using unregistered noisy speech and clean speech, and is used to predict and output enhanced spectral domain features; Speech synthesis is performed using the enhanced spectral domain features, the fundamental frequency, and the non-periodic parameters, and the synthesized speech is used as the enhanced speech corresponding to the speech to be processed.

2. The speech enhancement method according to claim 1, characterized in that: The speech to be processed containing noise is subjected to speech decomposition processing to obtain spectral domain features, phase features, fundamental frequency and non-periodic parameters, including: The WORLD audio processing tool is used to extract spectral domain features, phase features, fundamental frequency and non-periodic parameters from the speech to be processed.

3. The speech enhancement method according to claim 1, characterized in that: The pre-trained recurrent generative adversarial network is trained by the following steps: Constructing a recurrent generative adversarial network and defining a loss function for the recurrent generative adversarial network; Constructing speech pairs using a preset clean speech library and a preset noise library to obtain training samples and test samples, wherein each speech pair includes a noisy speech and a clean speech, and the clean speech corresponding to the noisy speech and the clean speech in the same speech pair belong to different clean speeches; Training the recurrent generative adversarial network using the loss function and the training samples to obtain a trained recurrent generative adversarial network; The trained recurrent generative adversarial network is tested using the test sample to obtain a pre-trained recurrent generative adversarial network.

4. The speech enhancement method according to claim 3, characterized in that: Construct a cyclic generative adversarial network and define a loss function for the cyclic generative adversarial network, including: A recurrent generative adversarial network model is constructed, which includes two generators and a discriminator corresponding to each generator, wherein one generator is used to transform the spectral domain features of noisy speech into the spectral domain features of clean speech, and the other generator is used to transform the phase features of noisy speech into the phase features of clean speech. The discriminator is used to determine whether the features generated by the corresponding generator are real data in the target domain; Based on the least squares loss, define the adversarial loss function for each generator and the corresponding discriminator; A cycle consistency loss function is defined for the two generators, and an identity mapping loss function is defined for the two generators based on the cycle consistency loss function.

5. The speech enhancement method according to claim 4, characterized in that: The adversarial loss function is expressed as: In the formula, G represents the generator of spectral domain features, F represents the generator of phase features, and D x Denotes the discriminator corresponding to the generator F, D y represents the discriminator corresponding to the generator G, L GAN (G,D y ) represents the generator G and the discriminator D y The adversarial loss function, L GAN (F,D x ) represents the generator F and the discriminator D x The adversarial loss function, D y (y) indicates the possibility of judging that the data comes from data domain Y. represents the mathematical expectation of the data in the data domain Y, represents the mathematical expectation of the data in the data domain X, D y (y) indicates the possibility of judging that the data comes from data domain Y, D x (x) represents the possibility of judging that the data comes from the data domain X, G(x) represents the function generated by G, and F(y) represents the function generated by F; The cycle consistency loss function is expressed as: In the formula, G represents the generator of spectral domain features, F represents the generator of phase features, and L cyc (G, F) represents the cycle consistency loss function of generator G and generator F, ||·||1 represents the L1 criterion, represents the mathematical expectation of the data in the data domain Y, represents the mathematical expectation of the data in the data domain X, x represents the original data in X, y represents the original data in Y, G(x) represents the function generated by G, and F(y) represents the function generated by F; The identity mapping loss function is expressed as: Where, L id (G, F) represents the identity mapping loss function between generator G and generator F, ||·||1 represents the L1 criterion, represents the mathematical expectation of the data in the data domain Y, represents the mathematical expectation of the data in the data domain X, x represents the original data in X, y represents the original data in Y, G(y) represents the function generated by G, and F(x) represents the function generated by F.

6. The speech enhancement method according to claim 4, characterized in that: The two generators have the same structure, each generator consists of an encoder, a converter, and a decoder to form a U-shaped structure with an intermediate channel; The encoder is used to downsample the spectral features and expand its feature space, wherein the encoder includes a convolution layer and two downsampling layers; The decoder is opposite to the encoder and is used to upsample the data after dimension reduction to restore low-level features from the feature vector, wherein the decoder includes two upsampling layers and one convolution layer; The converter is arranged between the encoder and the decoder. The converter adopts a residual network. The residual network converts the spectral feature vector of the speech in the noisy domain into the spectral feature vector in the noise-free domain by combining the dissimilar features of the signals. The U-shaped channel in the middle fuses the features of the encoder with the features of the decoder.

7. The speech enhancement method according to claim 4, characterized in that: The two discriminators have the same structure. Each discriminator includes two convolutional layers, three downsampling layers and a classification layer. A normalization layer is added after each convolutional layer, and a gated linear unit (GLU) is used as an activation function. The classification layer uses full convolution and least squares coding for classification.

8. A speech enhancement device, characterized in that: The device comprises: A decomposition module, wherein the decomposition module is used to perform speech decomposition processing on the speech to be processed containing noise to obtain spectral domain features, phase features, fundamental frequency and non-periodic parameters; A prediction module, wherein the prediction module is used to input the spectral domain features and the phase features into a pre-trained recurrent generative adversarial network, wherein the pre-trained recurrent generative adversarial network is trained using unregistered noisy speech and clean speech, and the pre-trained recurrent generative adversarial network is used to predict and output enhanced spectral domain features; A synthesis module is used to perform speech synthesis using the enhanced spectral domain features, the fundamental frequency, and the non-periodic parameters, and use the synthesized speech as the enhanced speech corresponding to the speech to be processed.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the speech enhancement method according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the speech enhancement method according to any one of claims 1 to 7 is implemented.