Method, device, equipment and storage medium for noise suppression of speech signals
By simplifying the neural network model structure, reducing it from a 3-layer GRU ReLU structure to 2 layers, and adjusting the number of nodes, the problem of high computational complexity in the existing technology is solved, and a low-complexity noise suppression effect is achieved, which is suitable for Various voice and video conferencing scenarios.
Patent Information
- Application Number
- CN202010658686.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-09
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-07-09
AI Technical Summary
The existing howling suppression methods based on neural network models have high computational complexity, and it is difficult to simplify the model structure to reduce the computational complexity.
By simplifying the model structure, the model is reduced from a 3-layer GRU ReLU structure to a 2-layer structure, the GRU ReLU layer used to calculate VAD results is removed, and the number of nodes in each layer is adjusted to reduce the number of recursive calculation units, thereby reducing computational complexity.
A low-complexity noise suppression solution is implemented, which reduces the computational complexity and reduces the model size by about 1/2 to 1/3. It is suitable for scenarios such as voice conferencing and video conferencing.
Smart Images

Figure CN111768795B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of audio processing technology, and in particular to a method, apparatus, device and storage medium for suppressing noise of a speech signal. Background Art
[0002] Howling is a type of feedback sound that occurs when the energy is self-excited due to problems such as the close distance between the sound source and the sound amplification equipment.
[0003] In the related art, a howling suppression method based on a neural network model is proposed, but this method usually requires a more complex network structure, resulting in higher computational complexity. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus, device and storage medium for noise suppression of speech signals, which can simplify the model network structure used for noise suppression and reduce the computational complexity. The technical solution is as follows:
[0005] According to one aspect of an embodiment of the present application, a method for suppressing noise of a speech signal is provided, the method comprising:
[0006] Acquire characteristic data of a noisy speech signal, wherein the characteristic data includes parameters for reflecting spectral characteristics of the noisy speech signal;
[0007] Performing transformation processing on the feature data to obtain transformed feature data;
[0008] Performing two-step recursive processing on the feature data and the transformed feature data to obtain recursively processed data;
[0009] generating gain information according to the recursively processed data, the gain information comprising gain values applied to different frequency bands of the noisy speech signal;
[0010] The noisy speech signal is subjected to noise suppression processing based on the gain information to obtain a noise-reduced speech signal.
[0011] According to one aspect of an embodiment of the present application, a method for training a noise suppression model is provided, the method comprising:
[0012] Acquire a training sample, wherein the sample data of the training sample includes a noisy speech signal, the label data of the training sample includes real gain information corresponding to the noisy speech signal, and the real gain information includes real gain values applied to different frequency bands of the noisy speech signal;
[0013] Acquiring feature data of the noisy speech signal, wherein the feature data includes parameters for reflecting spectral features of the noisy speech signal;
[0014] Generate estimated gain information based on the feature data through a noise suppression model; wherein the estimated gain information includes estimated gain values applied to different frequency bands of the noisy speech signal, and the noise suppression model is used to perform two-step recursive processing on the feature data and the transformed feature data, and generate the estimated gain information according to the recursively processed data;
[0015] Calculating a loss function value of the noise suppression model based on the estimated gain information and the actual gain information;
[0016] The parameters of the noise suppression model are adjusted based on the loss function value, and the noise suppression model is trained.
[0017] According to one aspect of an embodiment of the present application, a noise suppression device for a speech signal is provided, the device comprising:
[0018] A feature acquisition module, used to acquire feature data of a noisy speech signal, wherein the feature data includes parameters for reflecting the spectral features of the noisy speech signal;
[0019] A feature transformation module, used to transform the feature data to obtain transformed feature data;
[0020] A recursive processing module, used for performing two-step recursive processing on the feature data and the transformed feature data to obtain recursively processed data;
[0021] A gain generation module, configured to generate gain information according to the recursively processed data, wherein the gain information includes gain values applied to different frequency bands of the noisy speech signal;
[0022] The noise suppression module is used to perform noise suppression processing on the noisy speech signal based on the gain information to obtain a noise-reduced speech signal.
[0023] According to one aspect of an embodiment of the present application, a training device for a noise suppression model is provided, the device comprising:
[0024] A sample acquisition module, used to acquire a training sample, wherein the sample data of the training sample includes a noisy speech signal, and the label data of the training sample includes real gain information corresponding to the noisy speech signal, and the real gain information includes real gain values applied to different frequency bands of the noisy speech signal;
[0025] A feature acquisition module, used to acquire feature data of the noisy speech signal, wherein the feature data includes parameters for reflecting the spectral features of the noisy speech signal;
[0026] A model processing module, configured to generate estimated gain information based on the feature data through a noise suppression model; wherein the estimated gain information includes estimated gain values applied to different frequency bands of the noisy speech signal, and the noise suppression model is configured to perform two-step recursive processing on the feature data and the transformed feature data, and generate the estimated gain information according to the recursively processed data;
[0027] A loss calculation module, used to calculate the loss function value of the noise suppression model based on the estimated gain information and the actual gain information;
[0028] A parameter adjustment module is used to adjust the parameters of the noise suppression model based on the loss function value to train the noise suppression model.
[0029] According to one aspect of an embodiment of the present application, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the above-mentioned method for noise suppression of speech signals.
[0030] According to one aspect of an embodiment of the present application, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the above-mentioned noise suppression model training method.
[0031] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the above-mentioned noise suppression method for speech signals.
[0032] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the above-mentioned noise suppression model training method.
[0033] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned method for suppressing noise of a speech signal.
[0034] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned training method of the noise suppression model.
[0035] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0036] The technical solution provided in the embodiment of the present application provides a low-complexity noise suppression solution. By simplifying the model structure, the number of recurrent neural network units used by the model to recursively calculate the input feature data is reduced from 3 to 2. In this way, only 2 steps of recursive calculation need to be performed, and there is no need to perform 3 steps of recursive calculation, and VAD (Voice Activity Detection) results are no longer calculated, thereby simplifying the model network structure and reducing the computational complexity. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 This is the principle block diagram of the classic RNNoise algorithm provided by the relevant technology;
[0038] Figure 2 It is a schematic diagram of a possible application scenario involved in the technical solution of this application;
[0039] Figure 3 is a flow chart of a method for suppressing noise of a speech signal provided by an embodiment of the present application;
[0040] Figure 4 is a flow chart of a method for suppressing noise of a speech signal provided by another embodiment of the present application;
[0041] Figure 5 This is a schematic diagram of an implementation scheme provided by an embodiment of the present application;
[0042] Figure 6 is a schematic diagram of a noise suppression model provided by an embodiment of the present application;
[0043] Figure 7is a flow chart of a method for training a noise suppression model provided by an embodiment of the present application;
[0044] Figure 8 is a block diagram of a noise suppression device for a speech signal provided by an embodiment of the present application;
[0045] Fig. 9 is a block diagram of a training device for a noise suppression model provided by an embodiment of the present application;
[0046] Fig.10 It is a structural block diagram of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0048] The solution provided in the embodiments of the present application involves technologies such as artificial intelligence machine learning.
[0049] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.
[0050] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0051] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and teaching learning.
[0052] In the related art, a howling suppression method based on a neural network model is proposed. A typical solution is to use the RNNoise algorithm for howling suppression. The RNNoise algorithm was originally used for speech enhancement. Figure 1 As shown, the RNNoise algorithm mainly adopts a three-layer GRU (Gated Recurrent Unit) network structure and also calculates a VAD result.
[0053] like Figure 1 This is the principle block diagram of the classic RNNoise algorithm, which has 42-dimensional input features, three GRUReLU (Rectified Linear Unit) network units, and the number of neurons in each GRU ReLU layer is 24, 48 and 96 respectively. In addition, a 24-node Dense tanh function is used for the initial feature transformation, and the network output is a 1-dimensional VAD result and a 22-dimensional gain information.
[0054] The technical solution provided in the embodiment of the present application provides a noise suppression model with a simpler structure by simplifying the model structure. Specifically, on the one hand, by removing the first GRU ReLU layer (that is, the GRU ReLU layer used to calculate the VAD result), the model is changed from a 3-layer GRU ReLU structure to a 2-layer GRU ReLU structure, so that the model no longer calculates the VAD result, because the real useful information for noise suppression is the gain information, and the VAD result has no great effect, so it can be ignored or abandoned, thereby effectively reducing the computational complexity; on the other hand, by adjusting the number of nodes (or the number of neurons) in each layer of the noise suppression model, the number of nodes in each layer is reduced as much as possible without losing the model performance, thereby further simplifying the model structure and reducing the computational complexity.
[0055] The technical solution provided in the embodiment of the present application is applicable to any business scenario with voice noise reduction requirements, such as voice conferencing, video conferencing, voice recording, video recording and other business scenarios.
[0056] Please refer to Figure 2 , which shows a schematic diagram of a possible application scenario involved in the technical solution of the present application, which can be implemented as a cloud video conferencing system. The cloud video conferencing system is a video conferencing platform based on cloud technology.
[0057] Cloud technology refers to a hosting technology that unifies hardware, software, network and other resources in a wide area network or local area network to achieve data computing, storage, processing and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool that can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The background services of technical network systems require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the high development and application of the Internet industry, in the future, each item may have its own identification mark, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately. All kinds of industry data require strong system backing support, which can only be achieved through cloud computing.
[0058] like Figure 2 As shown, the cloud video conferencing system may include: a terminal 10 and a server 20.
[0059] There may be multiple terminals 10. The terminal 10 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto.
[0060] Server 20 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.
[0061] The terminal 10 and the server 20 may be directly or indirectly connected via wired or wireless communication, which is not limited in the present application.
[0062] In an exemplary embodiment, a client of a target application is installed and running in the terminal 10. For example, the target application may be an application providing a video conferencing function. The server 20 may be a background server of the target application, and is used to provide background services for the client of the target application.
[0063] In the method for suppressing noise of speech signals provided in the embodiment of the present application, the execution subject of each step may be the terminal 10, such as the client of the target application installed and running in the terminal 10, or the server 20, or the terminal 10 and the server 20 may cooperate with each other to execute the method, that is, a part of the steps of the method are executed by the terminal 10 and the other part of the steps are executed by the server 20.
[0064] For ease of explanation, in the embodiment of the noise suppression method for speech signals introduced below, only the execution subject of each step is introduced as a computer device. The computer device refers to an electronic device with data calculation, processing and storage capabilities, such as a terminal 10, a server 20, etc., and the embodiment of the present application does not limit this.
[0065] Please refer to Figure 3 , which shows a flow chart of a method for suppressing noise of a speech signal provided by an embodiment of the present application. The method may include the following steps (301-305):
[0066] Step 301: Acquire feature data of a noisy speech signal, where the feature data includes parameters for reflecting frequency spectrum features of the noisy speech signal.
[0067] A noisy speech signal refers to a speech signal with noise. The noisy speech signal may be a speech signal collected by an audio collection device (such as a microphone) in a real environment. For example, in a video conference scenario, the microphone will collect the speech signal generated by the participant when speaking. During this process, the microphone will also collect a noise signal, which may be environmental noise, howling and other noises, which are not limited in the embodiments of the present application.
[0068] Spectrum is the abbreviation of frequency spectrum density, which is the distribution curve of frequency. Complex oscillation is decomposed into harmonic oscillations with different amplitudes and frequencies. The graph of the amplitudes of these harmonic oscillations arranged by frequency is called spectrum. Spectrum is widely used in acoustics, optics and radio technology.
[0069] In an exemplary embodiment, a noisy speech signal is framed to obtain n audio frames, where n is a positive integer; feature data corresponding to the n audio frames are extracted; wherein the feature data corresponding to the audio frames include: spectral feature parameters and energy parameters of the audio frames in k frequency bands on a Bark frequency scale, where k is a positive integer.
[0070] In order to avoid using a large number of neurons, the noisy speech signal or its energy spectrum is not directly used as the model input. As an alternative, consider a frequency scale that conforms to human auditory perception-the Bark frequency scale. The Bark frequency scale is in Hz (Hertz), and the frequency is mapped to 24 critical frequency bands of psychoacoustics. The 25th critical frequency band occupies a frequency of about: 16K~20kHz. The width of one critical frequency band is equal to one Bark. Simply put, the Bark scale converts the physical frequency to the frequency of psychoacoustics. In an embodiment of the present application, the noisy speech signal is framed, and the corresponding gain information is calculated frame by frame before noise suppression processing is performed. The feature data of each audio frame includes the spectral feature parameters and energy parameters of the audio frame in multiple frequency bands (such as 24 frequency bands) of the Bark frequency scale. For the division of the above multiple frequency bands, the frequency band of the high-frequency part is relatively wider, and the frequency band of the low-frequency part is relatively narrower. Because the human ear has a higher resolution for medium and low-frequency sounds, a more detailed frequency band division of the medium and low-frequency parts helps to improve the noise suppression effect on the sensitive parts of the human ear.
[0071] Step 302: transform the feature data to obtain transformed feature data.
[0072] The transformation processing here may be a linear transformation processing or a nonlinear transformation processing.
[0073] In one example, linear transformation is performed on the feature data to obtain transformed feature data.
[0074] Exemplarily, the linear transformation process can be expressed as f(x)=ax+b, wherein x represents the original feature data, f(x) represents the transformed feature data, and a and b are preset constants.
[0075] In another example, nonlinear transformation is performed on the feature data to obtain transformed feature data.
[0076] Exemplarily, the nonlinear transformation process can be expressed as f(x)=(ax+b) 2 , where x represents the original feature data, f(x) represents the transformed feature data, and a and b are preset constants. For example, the nonlinear transformation process can also be expressed as f(x)=ax n +b, where x represents the original feature data, f(x) represents the transformed feature data, and a, b, and n are preset constants.
[0077] The parameters involved in the above linear transformation processing and nonlinear transformation processing, such as a, b, n and other parameters, can be set and adjusted according to experiments or experience. Selecting appropriate values helps to improve the final noise reduction effect.
[0078] In an exemplary embodiment, the feature data is transformed by an activation function to obtain the transformed feature data. Activation functions play a very important role in the artificial neural network model to learn and understand very complex and nonlinear functions. The activation function is introduced to increase the nonlinearity of the neural network model so that the neural network can arbitrarily approximate any nonlinear function, so that the neural network can be applied to many nonlinear models. Commonly used activation functions include Sigmoid function, Tanh function, ReLU function, etc., which are not limited in the embodiments of the present application.
[0079] Step 303, performing two-step recursive processing on the feature data and the transformed feature data to obtain recursively processed data.
[0080] The recursive processing involved in the embodiments of the present application refers to recursive processing based on a neural network, such as recursive processing based on an RNN (Recurrent Neural Network). A recursive neural network may include multiple recursive units, each of which is used to implement a one-step recursive processing. The above two-step recursive processing can be implemented by two recursive units.
[0081] Optionally, the feature data and the transformed feature data are subjected to two-step recursive processing by a two-layer neural network to obtain recursively processed data. The two-layer neural network may be two cyclic units in a cyclic neural network.
[0082] In an exemplary embodiment, the two-layer neural network includes a first neural network layer and a second neural network layer. This step may include the following sub-steps:
[0083] 1. Processing the fusion result of the feature data and the transformed feature data through the first neural network layer to obtain the output data of the first neural network layer;
[0084] 2. The fusion result of the feature data and the output data of the first neural network layer is processed through the second neural network layer to obtain the above-mentioned recursively processed data.
[0085] The fusion result of the feature data and the transformed feature data is obtained by fusing the above two. The fusion result of the feature data and the output data of the first neural network layer is also obtained by fusing the above two. Fusion processing refers to the integration of multiple different information, and the obtained fusion result can reflect the components or influences of various component information. Optionally, the fusion processing includes but is not limited to one or a combination of the following methods: splicing, channel concatenation, pixel-by-pixel addition, etc.
[0086] In an embodiment of the present application, the noise suppression model for performing noise suppression processing on a noisy speech signal has and only has two neural network layers for performing recursive calculations, namely the first neural network layer and the second neural network layer. The first neural network layer and the second neural network layer can both be cyclic units, such as ordinary cyclic units, or LSTM (Long Short-Term Memory) units, GRUs, or some variants thereof. The cyclic unit is used to implement recursive calculations in the speech direction of the sequence, and each cyclic unit is connected in a chain.
[0087] Step 304: Generate gain information according to the recursively processed data, where the gain information includes gain values of different frequency bands applied to the noisy speech signal.
[0088] After obtaining the recursively processed data, the recursively processed data can be transformed to generate gain information. The gain information includes gain values of different frequency bands applied to the noisy speech signal, such as the gain values corresponding to the k frequency bands mentioned above. By calculating the gain value corresponding to each frequency band and applying it to each frequency band, the process can be considered as using an equalizer with k frequency bands, each equalizer quickly changes its gain and allows the signal to pass, so that the noise is suppressed.
[0089] The gain value corresponding to each frequency band can be a value in the interval (0, 1). Therefore, the output data of the second neural network layer is processed by an activation function (such as a Sigmoid function) to generate the above gain information.
[0090] Step 305: Perform noise suppression processing on the noisy speech signal based on the gain information to obtain a noise-reduced speech signal.
[0091] After the gain information is obtained, the gain information is synthesized with the original noisy speech signal to obtain the corresponding noise-reduced speech signal.
[0092] To sum up, the technical solution provided in the embodiment of the present application provides a low-complexity noise suppression solution. By simplifying the model structure, the number of recurrent neural network units used by the model to recursively calculate the input feature data is reduced from 3 to 2. In this way, only 2 steps of recursive calculation need to be performed, and there is no need to perform 3 steps of recursive calculation, and the VAD result is no longer calculated, thereby simplifying the model network structure and reducing the computational complexity.
[0093] Please refer to Figure 4 , which shows a flow chart of a method for suppressing noise of a speech signal provided by an embodiment of the present application. The method may include the following steps (401-409):
[0094] Step 401: Acquire feature data of a noisy speech signal, where the feature data includes parameters for reflecting frequency spectrum features of the noisy speech signal.
[0095] Step 402, transform the feature data to obtain transformed feature data.
[0096] Step 403: Fusing the feature data and the transformed feature data to obtain a first fusion result.
[0097] Step 404: Process the first fusion result through the first neural network layer to obtain output data of the first neural network layer.
[0098] Step 405, fusing the feature data and the output data of the first neural network layer to obtain a second fusion result.
[0099] Step 406, processing the second fusion result through the second neural network layer to obtain recursively processed data.
[0100] Step 407: Generate gain information according to the recursively processed data, where the gain information includes gain values of different frequency bands applied to the noisy speech signal.
[0101] Step 408: For the frequency domain signals of the noisy speech signal in different frequency bands, the frequency domain signals are processed using corresponding gain values to obtain processed frequency domain signals.
[0102] Optionally, for the kth of the k frequency bands i The frequency domain signal of the kith frequency band is multiplied by the gain value corresponding to the kith frequency band and the power spectrum of the frequency domain signal to obtain the processed frequency domain signal. i is an integer in the interval [1,k].
[0103] Step 409: convert the processed frequency domain signal from the frequency domain to the time domain to obtain a noise-reduced speech signal.
[0104] For example, by performing an inverse Fourier transform (such as IFFT (Inverse Fast Fourier Transform)) on the processed frequency domain signal, the signal can be converted from the frequency domain to the time domain to obtain a noise-reduced speech signal.
[0105] In an exemplary embodiment, if Figure 5As shown, through the noise suppression model trained offline, the trained noise suppression model performs a series of processing on the feature data of the noisy speech signal during the online application process, outputs the corresponding gain information, and then performs noise suppression processing on the noisy speech signal based on the gain information to obtain a noise-reduced speech signal. The noise-reduced speech signal can be used for output playback, thereby improving the user's auditory experience.
[0106] In an exemplary embodiment, if Figure 6 As shown, it shows a schematic diagram of a noise suppression model provided by an embodiment of the present application, the noise suppression model includes: an input layer 61, a first activation function layer 62, a first neural network layer 63, a second neural network layer 64, a second activation function layer 65 and an output layer 66. Wherein:
[0107] The input layer 61 is used to input feature data of noisy speech signals. Optionally, the number of neurons in the input layer 61 is 44.
[0108] The first activation function layer 62 is used to transform the feature data to obtain the transformed feature data. Optionally, the number of neurons in the first activation function layer 62 is 20. Optionally, the activation function used by the first activation function layer 62 is a Tanh function.
[0109] The first neural network layer 63 is used to process the fusion result of the feature data and the transformed feature data. Optionally, the number of neurons in the first neural network layer 63 is 30. Optionally, the first neural network layer 63 is a GRU ReLU layer.
[0110] The second neural network layer 64 is used to process the fusion result of the feature data and the output data of the first neural network layer 63. Optionally, the number of neurons in the second neural network layer 64 is 60. Optionally, the second neural network layer 64 is a GRU ReLU layer.
[0111] The second activation function layer 65 is used to generate gain information according to the output data of the second neural network layer 64 (i.e., the recursively processed data obtained after the above two-step recursive processing). Optionally, the number of neurons in the second activation function layer 65 is 24. Optionally, the activation function used by the second activation function layer 65 is a Sigmoid function.
[0112] The output layer 66 is used to output gain information. Optionally, the number of neurons in the output layer 66 is the same as that in the second activation function layer 65, which is 24.
[0113] It should be noted that Figure 6The number of neurons in each layer in the model shown is only exemplary and can be flexibly adjusted in practical applications based on actual conditions, such as setting the number of neurons in the first activation function layer 62 to 30, setting the number of neurons in the first neural network layer 63 or the second neural network layer 64 to 50, etc. The embodiments of the present application do not limit this.
[0114] In summary, the technical solution provided by the embodiment of the present application provides a noise suppression model with a simpler structure by simplifying the model structure. Specifically, on the one hand, by removing the first GRU ReLU layer (that is, the GRU ReLU layer used to calculate the VAD result), the model is changed from a 3-layer GRU ReLU structure to a 2-layer GRU ReLU structure, so that the model no longer calculates the VAD result, because the real useful information for noise suppression is the gain information, and the VAD result has no great effect, so it can be ignored or abandoned, thereby effectively reducing the computational complexity; on the other hand, by adjusting the number of nodes (or the number of neurons) in each layer of the noise suppression model, the number of nodes in each layer is reduced as much as possible without losing the model performance, thereby further simplifying the model structure and reducing the computational complexity.
[0115] After experimental measurement, the size of the noise suppression model after simplification by the embodiment of the present application is 170kb, while the size of the classic RNNoise model is 410kb; in addition, from the perspective of computational complexity, the noise suppression model simplified by the embodiment of the present application occupies a CPU (Central Processing Unit) rate of approximately 1 / 2 to 1 / 3 of that of the classic RNNoise model.
[0116] Please refer to Figure 7 , which shows a flow chart of a method for training a noise suppression model provided by an embodiment of the present application. The execution subject of each step of the method may be a computer device, such as a PC, a server, or other electronic device with computing and processing capabilities. The method may include the following steps (701-705):
[0117] Step 701, obtaining a training sample, wherein the sample data of the training sample includes a noisy speech signal, the label data of the training sample includes real gain information corresponding to the noisy speech signal, and the real gain information includes real gain values applied to different frequency bands of the noisy speech signal.
[0118] There can be multiple training samples. Each training sample includes sample data and label data.
[0119] In addition, the real gain information here is relative to the estimated gain information below. In this embodiment, the gain information output by the model is called the estimated gain information, and the gain information used to evaluate the accuracy of the above-mentioned estimated gain information is called the real gain information. When the estimated gain information is closer to the real gain information, it means that the performance of the model is better.
[0120] In an exemplary embodiment, this step includes the following sub-steps:
[0121] 1. Acquire training data, where the training data includes a speech signal set and a noise signal set, where the speech signal set includes at least one speech signal, and the noise signal set includes at least one noise signal;
[0122] The speech signal in the speech signal set can be considered as a pure speech signal, that is, a speech signal without noise. The noise signal in the noise signal set can be selected according to the use requirements. For example, when the model is used for howling suppression, the noise signal in the noise signal set can be various forms of howling noise signals.
[0123] 2. Mix the speech signal and the noise signal to generate a noisy speech signal;
[0124] For example, a speech signal is selected from a speech signal set, a noise signal is selected from a noise signal set, and the selected speech signal and the noise signal are superimposed on the power spectrum to obtain a noisy speech signal.
[0125] 3. Use the noisy speech signal as sample data and the true gain information corresponding to the noisy speech signal as label data to generate training samples.
[0126] A training sample is generated based on the training data, wherein the sample data of the training sample includes a noisy speech signal generated by mixing a speech signal and a noise signal, and the label data of the training sample includes real gain information corresponding to the noisy speech signal, and the real gain information includes real gain values applied to different frequency bands of the noisy speech signal.
[0127] Optionally, the real gain information can be obtained based on the speech signal and the noise signal that generate the noisy speech signal, such as obtaining the energy value of the speech signal and the energy value of the noise signal, dividing the energy value of the speech signal by the sum of the energy values of the speech signal and the noise signal to obtain the real gain information.
[0128] Step 702: Acquire characteristic data of a noisy speech signal, where the characteristic data includes parameters for reflecting frequency spectrum characteristics of the noisy speech signal.
[0129] Step 703, generating estimated gain information based on the feature data through the noise suppression model; wherein the estimated gain information includes estimated gain values applied to different frequency bands of the noisy speech signal, and the noise suppression model is used to perform two-step recursive processing on the feature data and the transformed feature data, and then generate the estimated gain information based on the recursively processed data.
[0130] In this embodiment, the gain information output by the noise suppression model is called estimated gain information. The above-mentioned description of the noise suppression model can be found in the above embodiment, and this embodiment will not be repeated.
[0131] Step 704: Calculate the loss function value of the noise suppression model based on the estimated gain information and the actual gain information.
[0132] Step 705: Adjust the parameters of the noise suppression model based on the loss function value to train the noise suppression model.
[0133] In the process of training the noise suppression model, the sample data of the training sample is input into the noise suppression model, and the noise suppression model outputs the estimated gain information. Then, based on the difference between the estimated gain information and the label data of the training sample (that is, the actual gain information), the loss function of the noise suppression model is constructed. By continuously adjusting the parameters of the noise suppression model to minimize the value of the loss function, a noise suppression model that has been trained is obtained.
[0134] In addition, the loss function can be constructed based on the distance loss between the estimated gain information and the actual gain information. The distance can be Euclidean distance, cosine distance, MSE (Mean Squared Error), etc., which is not limited in the embodiments of the present application.
[0135] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0136] Please refer to Figure 8 , which shows a block diagram of a noise suppression device for a speech signal provided by an embodiment of the present application. The device has the function of implementing the example of the noise suppression method for the above-mentioned speech signal, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be the computer device introduced above, and can also be set on a computer device. The device 800 may include: a feature acquisition module 810, a feature transformation module 820, a recursive processing module 830, a gain generation module 840 and a noise suppression module 850.
[0137] The feature acquisition module 810 is used to acquire feature data of the noisy speech signal, wherein the feature data includes parameters for reflecting the frequency spectrum features of the noisy speech signal.
[0138] The feature transformation module 820 is used to transform the feature data to obtain transformed feature data.
[0139] The recursive processing module 830 is used to perform two-step recursive processing on the feature data and the transformed feature data to obtain recursively processed data.
[0140] The gain generating module 840 is configured to generate gain information according to the recursively processed data, wherein the gain information includes gain values applied to different frequency bands of the noisy speech signal.
[0141] The noise suppression module 850 is used to perform noise suppression processing on the noisy speech signal based on the gain information to obtain a noise-reduced speech signal.
[0142] In an exemplary embodiment, the recursive processing module 830 is used to perform the two-step recursive processing on the feature data and the transformed feature data through a two-layer neural network to obtain the recursively processed data.
[0143] In an exemplary embodiment, the two-layer neural network includes a first neural network layer and a second neural network layer. The recursive processing module 830 is used to: process the fusion result of the feature data and the transformed feature data through the first neural network layer to obtain the output data of the first neural network layer; and process the fusion result of the feature data and the output data of the first neural network layer through the second neural network layer to obtain the recursively processed data.
[0144] In an exemplary embodiment, the recursive processing module 830 is used to fuse the feature data and the transformed feature data to obtain a first fusion result; and process the first fusion result through the first neural network layer to obtain output data of the first neural network layer.
[0145] In an exemplary embodiment, the recursive processing module 830 is used to fuse the feature data and the output data of the first neural network layer to obtain a second fusion result; and process the second fusion result through the second neural network layer to obtain the recursively processed data.
[0146] In an exemplary embodiment, the feature acquisition module 810 is used to perform frame processing on the noisy speech signal to obtain n audio frames, where n is a positive integer; extract feature data corresponding to the n audio frames respectively; wherein the feature data corresponding to the audio frames include: spectral feature parameters and energy parameters of the audio frames in k frequency bands of the Bark frequency scale, where k is a positive integer.
[0147] In an exemplary embodiment, the feature transformation module 820 is used to perform a linear transformation process on the feature data to obtain the transformed feature data; or to perform a nonlinear transformation process on the feature data to obtain the transformed feature data.
[0148] In an exemplary embodiment, the noise suppression module 850 is used to process the frequency domain signals of the noisy speech signal in different frequency bands using corresponding gain values to obtain processed frequency domain signals; and convert the processed frequency domain signals from frequency domain to time domain to obtain the noise-reduced speech signal.
[0149] In an exemplary embodiment, the noise suppression model for performing noise suppression processing on the noisy speech signal includes: an input layer, a first activation function layer, a first neural network layer, a second neural network layer, a second activation function layer and an output layer; wherein:
[0150] The input layer is used to input feature data of the noisy speech signal, and the number of neurons in the input layer is 44;
[0151] The first activation function layer is used to transform the feature data to obtain transformed feature data, and the number of neurons in the first activation function layer is 20;
[0152] The first neural network layer is used to process the fusion result of the feature data and the transformed feature data, and the number of neurons in the first neural network layer is 30;
[0153] The second neural network layer is used to process the fusion result of the feature data and the output data of the first neural network layer, and the number of neurons in the second neural network layer is 60;
[0154] The second activation function layer is used to generate the gain information according to the output data of the second neural network layer, and the number of neurons in the second activation function layer is 24;
[0155] The output layer is used to output the gain information.
[0156] To sum up, the technical solution provided in the embodiment of the present application provides a low-complexity noise suppression solution. By simplifying the model structure, the number of recurrent neural network units used by the model to recursively calculate the input feature data is reduced from 3 to 2. In this way, only 2 steps of recursive calculation need to be performed, and there is no need to perform 3 steps of recursive calculation, and the VAD result is no longer calculated, thereby simplifying the model network structure and reducing the computational complexity.
[0157] Please refer to Fig. 9 , which shows a block diagram of a training device for a noise suppression model provided by an embodiment of the present application. The device has the function of implementing the example of the training method of the above-mentioned noise suppression model, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be the computer device introduced above, and can also be set on a computer device. The device 900 may include: a sample acquisition module 910, a feature acquisition module 920, a model processing module 930, a loss calculation module 940 and a parameter adjustment module 950.
[0158] The sample acquisition module 910 is used to acquire training samples, wherein the sample data of the training samples include noisy speech signals, and the label data of the training samples include real gain information corresponding to the noisy speech signals, and the real gain information includes real gain values applied to different frequency bands of the noisy speech signals.
[0159] The feature acquisition module 920 is used to acquire feature data of the noisy speech signal, where the feature data includes parameters for reflecting the frequency spectrum features of the noisy speech signal.
[0160] The model processing module 930 is used to generate estimated gain information based on the feature data through a noise suppression model; wherein the estimated gain information includes estimated gain values applied to different frequency bands of the noisy speech signal, and the noise suppression model is used to perform two-step recursive processing on the feature data and the transformed feature data, and then generate the estimated gain information based on the recursively processed data.
[0161] The loss calculation module 940 is used to calculate the loss function value of the noise suppression model based on the estimated gain information and the actual gain information.
[0162] The parameter adjustment module 950 is used to adjust the parameters of the noise suppression model based on the loss function value to train the noise suppression model.
[0163] In an exemplary embodiment, the sample acquisition module 910 is used to:
[0164] Acquire training data, wherein the training data includes a speech signal set and a noise signal set, wherein the speech signal set includes at least one speech signal, and the noise signal set includes at least one noise signal;
[0165] Mixing the speech signal and the noise signal to generate the noisy speech signal;
[0166] The training sample is generated by taking the noisy speech signal as sample data and the real gain information corresponding to the noisy speech signal as label data.
[0167] In an exemplary embodiment, the sample acquisition module 910 is further configured to:
[0168] Acquire the energy value of the speech signal and the energy value of the noise signal;
[0169] The energy value of the speech signal is divided by the sum of the energy values of the speech signal and the noise signal to obtain the real gain information.
[0170] In an exemplary embodiment, the noise suppression model includes: an input layer, a first activation function layer, a first neural network layer, a second neural network layer, a second activation function layer and an output layer; wherein:
[0171] The input layer is used to input feature data of the noisy speech signal, and the number of neurons in the input layer is 44;
[0172] The first activation function layer is used to transform the feature data to obtain transformed feature data, and the number of neurons in the first activation function layer is 20;
[0173] The first neural network layer is used to process the fusion result of the feature data and the transformed feature data, and the number of neurons in the first neural network layer is 30;
[0174] The second neural network layer is used to process the fusion result of the feature data and the output data of the first neural network layer, and the number of neurons in the second neural network layer is 60;
[0175] The second activation function layer is used to generate the estimated gain information according to the output data of the second neural network layer, and the number of neurons in the second activation function layer is 24;
[0176] The output layer is used to output the estimated gain information.
[0177] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0178] Please refer to Fig.10 , which shows a structural block diagram of a computer device provided by an embodiment of the present application. The computer device may be a terminal or a server. Specifically:
[0179] The computer device 1000 includes a central processing unit (CPU) 1001, a system memory 1004 including a random access memory (RAM) 1002 and a read only memory (ROM) 1003, and a system bus 1005 connecting the system memory 1004 and the central processing unit 1001. The computer device 1000 also includes a basic input / output system (I / O (Input / Output) system) 1006 for facilitating information transmission between various components in the computer, and a large-capacity storage device 1007 for storing an operating system 1013, application programs 1014, and other program modules 1015.
[0180] The basic input / output system 1006 includes a display 1008 for displaying information and an input device 1009 such as a mouse and a keyboard for user inputting information. The display 1008 and the input device 1009 are connected to the central processing unit 1001 through an input / output controller 1010 connected to the system bus 1005. The basic input / output system 1006 may also include an input / output controller 1010 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 1010 also provides output to a display screen, a printer, or other types of output devices.
[0181] The mass storage device 1007 is connected to the central processing unit 1001 through a mass storage controller (not shown) connected to the system bus 1005. The mass storage device 1007 and its associated computer readable medium provide non-volatile storage for the computer device 1000. That is, the mass storage device 1007 may include a computer readable medium (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.
[0182] Without loss of generality, computer readable media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash memory or other solid-state storage technologies, CD-ROM, DVD (Digital Video Disc) or other optical storage, cassettes, magnetic tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media are not limited to the above. The above-mentioned system memory 1004 and mass storage device 1007 can be collectively referred to as memory.
[0183] According to various embodiments of the present application, the computer device 1000 can also be connected to a remote computer on the network through a network such as the Internet. That is, the computer device 1000 can be connected to the network 1012 through the network interface unit 1011 connected to the system bus 1005, or the network interface unit 1011 can be used to connect to other types of networks or remote computer systems (not shown).
[0184] The memory also includes a computer program, which is stored in the memory and configured to be executed by one or more processors to implement the above-mentioned noise suppression method for speech signals, or the above-mentioned training method for noise suppression models.
[0185] In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one instruction, at least one program, a code set or an instruction set is stored. When the at least one instruction, the at least one program, the code set or the instruction set is executed by a processor, the above-mentioned method for suppressing noise of a speech signal is implemented.
[0186] In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and when the at least one instruction, the at least one program, the code set or the instruction set is executed by a processor, the training method of the above-mentioned noise suppression model is implemented.
[0187] Optionally, the computer readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a solid state drive (SSD), or an optical disk, etc. Among them, the random access memory may include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM).
[0188] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned method for suppressing noise of a speech signal.
[0189] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned training method of the noise suppression model.
[0190] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.
[0191] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for suppressing noise of a speech signal, characterized in that: The method comprises: Acquire characteristic data of a noisy speech signal, wherein the characteristic data includes parameters for reflecting spectral characteristics of the noisy speech signal; The feature data is transformed by a noise suppression model to obtain transformed feature data; Using the noise suppression model, the feature data and the transformed feature data are subjected to two-step recursive processing to obtain recursively processed data; generating gain information according to the recursively processed data through the noise suppression model, wherein the gain information includes gain values applied to different frequency bands of the noisy speech signal; Performing noise suppression processing on the noisy speech signal based on the gain information to obtain a noise-reduced speech signal; Among them, the training method of the noise suppression model includes: obtaining training samples, the sample data of the training samples include noisy speech signals, the label data of the training samples include real gain information corresponding to the noisy speech signals, and the real gain information includes real gain values applied to different frequency bands of the noisy speech signals in the training samples; obtaining feature data of the noisy speech signals in the training samples; generating estimated gain information based on the feature data of the noisy signals in the training samples through the noise suppression model; the estimated gain information includes estimated gain values applied to different frequency bands of the noisy speech signals in the training samples; calculating the loss function value of the noise suppression model based on the estimated gain information and the real gain information; and adjusting the parameters of the noise suppression model based on the loss function value.
2. The method according to claim 1, characterized in that The performing two-step recursive processing on the feature data and the transformed feature data to obtain recursively processed data includes: The feature data and the transformed feature data are subjected to the two-step recursive processing through a two-layer neural network to obtain the recursively processed data.
3. The method according to claim 2, characterized in that The two-layer neural network includes a first neural network layer and a second neural network layer; The step of performing the two-step recursive processing on the feature data and the transformed feature data through a two-layer neural network to obtain the recursively processed data includes: Processing a fusion result of the feature data and the transformed feature data through the first neural network layer to obtain output data of the first neural network layer; The second neural network layer processes the fusion result of the feature data and the output data of the first neural network layer to obtain the recursively processed data.
4. The method according to claim 3, characterized in that The processing of the fusion result of the feature data and the transformed feature data by the first neural network layer to obtain output data of the first neural network layer includes: Performing fusion processing on the feature data and the transformed feature data to obtain a first fusion result; The first fusion result is processed by the first neural network layer to obtain output data of the first neural network layer.
5. The method according to claim 3, characterized in that: The step of processing the fusion result of the feature data and the output data of the first neural network layer through the second neural network layer to obtain the recursively processed data includes: Performing a fusion process on the feature data and the output data of the first neural network layer to obtain a second fusion result; The second fusion result is processed by the second neural network layer to obtain the recursively processed data.
6. The method according to claim 1, characterized in that The step of obtaining characteristic data of a noisy speech signal includes: Performing frame processing on the noisy speech signal to obtain n audio frames, where n is a positive integer; Extracting feature data corresponding to the n audio frames respectively; The feature data corresponding to the audio frame includes: frequency spectrum feature parameters and energy parameters of the audio frame in k frequency bands of the Bark frequency scale, where k is a positive integer.
7. The method according to claim 1, characterized in that The transforming the feature data to obtain the transformed feature data includes: Performing linear transformation processing on the feature data to obtain the transformed feature data; or, The feature data is subjected to nonlinear transformation processing to obtain the transformed feature data.
8. The method according to claim 1, characterized in that The performing noise suppression processing on the noisy speech signal based on the gain information to obtain a noise-reduced speech signal includes: For the frequency domain signals of the noisy speech signal in different frequency bands, the frequency domain signals are processed using corresponding gain values to obtain processed frequency domain signals; The processed frequency domain signal is converted from the frequency domain to the time domain to obtain the noise-reduced speech signal.
9. The method according to any one of claims 1 to 8, characterized in that: The noise suppression model for performing noise suppression processing on the noisy speech signal comprises: an input layer, a first activation function layer, a first neural network layer, a second neural network layer, a second activation function layer and an output layer; wherein: The input layer is used to input feature data of the noisy speech signal, and the number of neurons in the input layer is 44; The first activation function layer is used to transform the feature data to obtain transformed feature data, and the number of neurons in the first activation function layer is 20; The first neural network layer is used to process the fusion result of the feature data and the transformed feature data, and the number of neurons in the first neural network layer is 30; The second neural network layer is used to process the fusion result of the feature data and the output data of the first neural network layer, and the number of neurons in the second neural network layer is 60; The second activation function layer is used to generate the gain information according to the output data of the second neural network layer, and the number of neurons in the second activation function layer is 24; The output layer is used to output the gain information.
10. A method for training a noise suppression model, characterized in that: The method comprises: Acquire a training sample, wherein the sample data of the training sample includes a noisy speech signal, the label data of the training sample includes real gain information corresponding to the noisy speech signal, and the real gain information includes real gain values applied to different frequency bands of the noisy speech signal; Acquiring feature data of the noisy speech signal, wherein the feature data includes parameters for reflecting spectral features of the noisy speech signal; Generate estimated gain information based on the feature data through a noise suppression model; wherein the estimated gain information includes estimated gain values applied to different frequency bands of the noisy speech signal, and the noise suppression model is used to perform two-step recursive processing on the feature data and the transformed feature data, and generate the estimated gain information according to the recursively processed data; Calculating a loss function value of the noise suppression model based on the estimated gain information and the actual gain information; The parameters of the noise suppression model are adjusted based on the loss function value, and the noise suppression model is trained.
11. The method according to claim 10, characterized in that The obtaining of training samples comprises: Acquire training data, wherein the training data includes a speech signal set and a noise signal set, wherein the speech signal set includes at least one speech signal, and the noise signal set includes at least one noise signal; Mixing the speech signal and the noise signal to generate the noisy speech signal; Acquire the energy value of the speech signal and the energy value of the noise signal; Dividing the energy value of the speech signal by the sum of the energy values of the speech signal and the noise signal to obtain true gain information corresponding to the noisy speech signal; The training sample is generated by taking the noisy speech signal as sample data and the real gain information corresponding to the noisy speech signal as label data.
12. A noise suppression device for a speech signal, characterized in that: The device comprises: A feature acquisition module, used to acquire feature data of a noisy speech signal, wherein the feature data includes parameters for reflecting the spectral features of the noisy speech signal; A feature transformation module, used to transform the feature data through a noise suppression model to obtain transformed feature data; A recursive processing module, used to perform two-step recursive processing on the feature data and the transformed feature data through the noise suppression model to obtain recursively processed data; A gain generation module, configured to generate gain information according to the recursively processed data through the noise suppression model, wherein the gain information includes gain values applied to different frequency bands of the noisy speech signal; A noise suppression module is used to perform noise suppression processing on the noisy speech signal based on the gain information to obtain a noise-reduced speech signal; wherein the training method of the noise suppression model includes: obtaining a training sample, the sample data of the training sample includes a noisy speech signal, the label data of the training sample includes real gain information corresponding to the noisy speech signal, and the real gain information includes real gain values applied to different frequency bands of the noisy speech signal in the training sample; obtaining feature data of the noisy speech signal in the training sample; generating estimated gain information based on the feature data of the noisy signal in the training sample through the noise suppression model; the estimated gain information includes estimated gain values applied to different frequency bands of the noisy speech signal in the training sample; calculating a loss function value of the noise suppression model based on the estimated gain information and the real gain information; and adjusting the parameters of the noise suppression model based on the loss function value.
13. The device according to claim 12, characterized in that The recursive processing module is used to: The feature data and the transformed feature data are subjected to the two-step recursive processing through a two-layer neural network to obtain the recursively processed data.
14. The device according to claim 13, characterized in that The two-layer neural network includes a first neural network layer and a second neural network layer; The recursive processing module is used to: Processing a fusion result of the feature data and the transformed feature data through the first neural network layer to obtain output data of the first neural network layer; The second neural network layer processes the fusion result of the feature data and the output data of the first neural network layer to obtain the recursively processed data.
15. The device according to claim 14, characterized in that The recursive processing module is used to: Performing fusion processing on the feature data and the transformed feature data to obtain a first fusion result; The first fusion result is processed by the first neural network layer to obtain output data of the first neural network layer.
16. The device according to claim 14, characterized in that The recursive processing module is used to: Performing a fusion process on the feature data and the output data of the first neural network layer to obtain a second fusion result; The second fusion result is processed by the second neural network layer to obtain the recursively processed data.
17. The device according to claim 12, characterized in that The feature acquisition module is used to: Performing frame processing on the noisy speech signal to obtain n audio frames, where n is a positive integer; Extracting feature data corresponding to the n audio frames respectively; The feature data corresponding to the audio frame includes: frequency spectrum feature parameters and energy parameters of the audio frame in k frequency bands of the Bark frequency scale, where k is a positive integer.
18. The device according to claim 12, characterized in that The transforming the feature data to obtain the transformed feature data includes: Performing linear transformation processing on the feature data to obtain the transformed feature data; or, The feature data is subjected to nonlinear transformation processing to obtain the transformed feature data.
19. The device according to claim 12, characterized in that The noise suppression module is used for: For the frequency domain signals of the noisy speech signal in different frequency bands, the frequency domain signals are processed using corresponding gain values to obtain processed frequency domain signals; The processed frequency domain signal is converted from the frequency domain to the time domain to obtain the noise-reduced speech signal.
20. The device according to any one of claims 12 to 19, characterized in that The noise suppression model for performing noise suppression processing on the noisy speech signal comprises: an input layer, a first activation function layer, a first neural network layer, a second neural network layer, a second activation function layer and an output layer; wherein: The input layer is used to input feature data of the noisy speech signal, and the number of neurons in the input layer is 44; The first activation function layer is used to transform the feature data to obtain transformed feature data, and the number of neurons in the first activation function layer is 20; The first neural network layer is used to process the fusion result of the feature data and the transformed feature data, and the number of neurons in the first neural network layer is 30; The second neural network layer is used to process the fusion result of the feature data and the output data of the first neural network layer, and the number of neurons in the second neural network layer is 60; The second activation function layer is used to generate the gain information according to the output data of the second neural network layer, and the number of neurons in the second activation function layer is 24; The output layer is used to output the gain information.
21. A training device for a noise suppression model, characterized in that: The device comprises: A sample acquisition module, used to acquire a training sample, wherein the sample data of the training sample includes a noisy speech signal, and the label data of the training sample includes real gain information corresponding to the noisy speech signal, and the real gain information includes real gain values applied to different frequency bands of the noisy speech signal; A feature acquisition module, used to acquire feature data of the noisy speech signal, wherein the feature data includes parameters for reflecting the spectral features of the noisy speech signal; A model processing module, configured to generate estimated gain information based on the feature data through a noise suppression model; wherein the estimated gain information includes estimated gain values applied to different frequency bands of the noisy speech signal, and the noise suppression model is configured to perform two-step recursive processing on the feature data and the transformed feature data, and generate the estimated gain information according to the recursively processed data; A loss calculation module, used to calculate the loss function value of the noise suppression model based on the estimated gain information and the actual gain information; A parameter adjustment module is used to adjust the parameters of the noise suppression model based on the loss function value to train the noise suppression model.
22. The device according to claim 21, characterized in that The sample acquisition module is further used for: Acquire training data, wherein the training data includes a speech signal set and a noise signal set, wherein the speech signal set includes at least one speech signal, and the noise signal set includes at least one noise signal; Mixing the speech signal and the noise signal to generate the noisy speech signal; Acquire the energy value of the speech signal and the energy value of the noise signal; Dividing the energy value of the speech signal by the sum of the energy values of the speech signal and the noise signal to obtain true gain information corresponding to the noisy speech signal; The training sample is generated by taking the noisy speech signal as sample data and the real gain information corresponding to the noisy speech signal as label data.
23. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method according to any one of claims 1 to 9, or to implement the method according to claim 10 or 11.
24. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method according to any one of claims 1 to 9, or to implement the method according to claim 10 or 11.
Citation Information
Patent Citations
Noise suppression method and device and mobile terminal
CN110335620A
Sound processing apparatus and method for sound enhancement
WO2020025140A1
