Audio signal noise reduction method and noise reduction system

By using the neural network noise reduction model and downsampling filter module based on the multi-head self-attention mechanism to process the oversampled audio signal in voice interaction, the problems of high hardware and software cost and large delay in the existing technology are solved, and the problem is improved. It improves the real-time performance and noise reduction efficiency of voice interaction.

CN118430567BActive Publication Date: 2024-09-20ZHUHAI JINGYI MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410896002.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-09-20
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

In the existing technology, due to the high cost and large delay of hardware and software in voice interaction, the noise reduction processing efficiency is low and the real-time nature of voice interaction is reduced.

Method used

Using a neural network noise reduction model based on a multi-head self-attention mechanism, combined with a signal acquisition module and a downsampling filtering module, the oversampled audio signal is directly processed through position coding, feature vector coding, vector fusion and noise reduction processing to reduce delays. time and reduce costs.

Benefits of technology

It improves the real-time performance and noise reduction efficiency of voice interaction, reduces hardware costs, and reduces the delay of noise reduction processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118430567B
    Figure CN118430567B
Patent Text Reader

Abstract

The present application discloses an audio signal denoising method and denoising system, which relates to the field of audio signal processing. The method includes: a neural network denoising module receives at least one initial audio sequence to be denoised collected by a signal acquisition module; through a neural network denoising model, position encoding processing, feature vector encoding processing, vector fusion processing, denoising processing, and speech signal conversion processing are sequentially performed based on the initial audio sequence to obtain a denoised audio denoising signal; the audio denoising signal is input into a downsampling filter module, so that the downsampling filter module performs downsampling processing on the audio denoising signal based on a preset standard sampling rate to obtain a target audio signal. The present application can perform speech denoising processing through a denoising system with a simplified structure, reduce delay, reduce costs, and improve denoising efficiency, thereby facilitating the real-time performance of voice interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio signal processing, and in particular to an audio signal noise reduction method and a noise reduction system. Background Art

[0002] Voice is the most basic and natural way of human-computer interaction. Accurately picking up human voices and avoiding various external interferences to the greatest extent are extremely important in voice interaction, especially voice recognition. At present, in the process of voice interaction, the audio signal in the space is generally collected by a microphone array, and what is usually collected is a mixed signal, which contains effective voice and various other noises. When it is necessary to extract effective voice from the mixed signal, a noise reduction processing method combining software and hardware can be used. Specifically, the mixed signal is first converted into multi-channel audio data through a multi-channel ADC, and then the multi-channel audio data is processed using a voice noise reduction algorithm running on a general computing power platform to reduce or remove various noises and retain effective voice. Although the noise reduction processing method combining software and hardware can achieve a relatively good noise reduction effect, it has relatively high requirements for both hardware and software, and the cost required is relatively high. In addition, the sampling rate of audio signals is generally relatively low, and the delay of several data cycles may reach the millisecond level; this results in a large delay in the subsequent voice noise reduction processing process, reducing the real-time nature of voice interaction. Summary of the invention

[0003] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes an audio signal noise reduction method and a noise reduction system, which can perform voice noise reduction processing through a noise reduction system with a simplified structure, reduce latency, reduce costs, and improve noise reduction efficiency, thereby facilitating the real-time performance of voice interaction.

[0004] In a first aspect, an embodiment of the present application provides an audio signal denoising method, which is applied to a neural network denoising module of a denoising system, wherein the denoising system further comprises: a signal acquisition module and a downsampling filter module which are communicatively connected to the neural network denoising module; the neural network denoising module comprises: a neural network denoising model based on a multi-head self-attention mechanism obtained through pre-training;

[0005] The audio signal noise reduction method comprises:

[0006] The neural network noise reduction module receives at least one initial audio sequence to be denoised collected by the signal collection module;

[0007] Through the neural network noise reduction model, based on the initial audio sequence, position encoding processing, feature vector encoding processing, vector fusion processing, noise reduction processing, and speech signal conversion processing are sequentially performed to obtain a noise-reduced audio noise reduction signal;

[0008] The audio noise reduction signal is input into the downsampling filter module, so that the downsampling filter module performs downsampling processing on the audio noise reduction signal based on a preset standard sampling rate to obtain a target audio signal.

[0009] According to some embodiments of the present application, the neural network denoising model includes: a speech input layer, a feature vector encoding layer, a feature integration layer, a feature vector decoding layer and an output layer connected in sequence; each of the initial audio sequences is a separate input sequence, wherein the initial audio sequence includes multiple elements, each of which is a multidimensional vector;

[0010] The method of sequentially performing position coding processing, feature vector coding processing, vector fusion processing, noise reduction processing, and speech signal conversion processing based on the initial audio sequence to obtain a noise-reduced audio noise reduction signal includes:

[0011] Through the speech input layer, the initial audio sequence is subjected to position coding processing, and position coding vectors are added to the elements in the initial audio sequence to obtain an input matrix; the input matrix represents the sequence information of the elements;

[0012] Through the feature vector encoding layer, feature vector encoding processing is performed according to the input matrix to obtain at least one feature vector;

[0013] Through the feature integration layer, a vector fusion process is performed on at least one of the feature vectors according to a pre-obtained first weight matrix and a preset integration formula to obtain a first target integration vector at the current moment;

[0014] Through the feature vector decoding layer, noise reduction processing is performed according to the first target integration vector at the current moment and the second target integration vector at the previous moment to obtain a noise-reduced speech vector;

[0015] The denoised speech vector is converted into the denoised audio denoised signal through the output layer, and the audio denoised signal is output.

[0016] According to some embodiments of the present application, the performing feature vector encoding processing according to the input matrix to obtain at least one feature vector includes:

[0017] Performing a linear transformation on the input matrix to obtain a query matrix, a key matrix and a value matrix;

[0018] Calculate the dot product of the query matrix and the key matrix, and divide the dot product by the dimension of the key matrix to obtain an attention score matrix;

[0019] The attention score matrix is ​​calculated using activation parameters to obtain an attention weight matrix;

[0020] The value matrix is ​​weighted and summed according to the attention weight matrix to obtain a feature vector; the feature vector is the output matrix.

[0021] According to some embodiments of the present application, the preset integration formula is:

[0022] ;

[0023] Among them, Output is the target integration vector, attention is the feature vector, is the first weight matrix, and the Concat function is used to concatenate the feature vectors.

[0024] According to some embodiments of the present application, performing noise reduction processing according to the first target integration vector at the current moment and the second target integration vector at the previous moment to obtain a noise-reduced speech vector includes:

[0025] Obtaining a first weight coefficient and a second weight coefficient obtained by pre-training;

[0026] Multiplying the first weight coefficient by the first target integration vector to obtain a first weighted vector;

[0027] Multiplying the second weight coefficient by the second target integration vector to obtain a second weighted vector;

[0028] The first weighted vector and the second weighted vector are added to obtain the noise-reduced speech vector.

[0029] In a second aspect, an embodiment of the present application provides a denoising system, comprising: a neural network denoising module, a signal acquisition module and a downsampling filter module that are communicatively connected to the neural network denoising module; the neural network denoising module comprises: a neural network denoising model based on a multi-head self-attention mechanism obtained through pre-training;

[0030] Among them, the neural network denoising module is used to: receive at least one initial audio sequence to be denoised collected by the signal acquisition module; through the neural network denoising model, based on the initial audio sequence, perform position encoding processing, feature vector encoding processing, vector fusion processing, denoising processing, and speech signal conversion processing in sequence to obtain a denoised audio denoising signal; input the audio denoising signal into the downsampling filter module, so that the downsampling filter module downsamples the audio denoising signal based on a preset standard sampling rate to obtain a target audio signal.

[0031] According to some embodiments of the present application, the neural network denoising model includes: a speech input layer, a feature vector encoding layer, a feature integration layer, a feature vector decoding layer and an output layer connected in sequence; each of the initial audio sequences is a separate input sequence, wherein the initial audio sequence includes multiple elements, each of which is a multidimensional vector;

[0032] The speech input layer is used to: perform position coding processing on the initial audio sequence, add position coding vectors to the elements in the initial audio sequence, and obtain an input matrix; the input matrix represents the order information of the elements;

[0033] The feature vector encoding layer performs feature vector encoding processing according to the input matrix to obtain at least one feature vector;

[0034] The feature integration layer is used to: perform vector fusion processing on at least one of the feature vectors according to a pre-obtained first weight matrix and a preset integration formula to obtain a first target integration vector at the current moment;

[0035] The feature vector decoding layer is used to: perform noise reduction processing according to the first target integration vector at the current moment and the second target integration vector at the previous moment to obtain a noise-reduced speech vector;

[0036] The output layer is used to convert the denoised speech vector into the denoised audio denoised signal and output the denoised audio denoised signal.

[0037] According to some embodiments of the present application, the neural network denoising module is a hardware module implemented based on FPGA or ASIC.

[0038] According to some embodiments of the present application, the noise reduction system further includes: a parameter adjustment module, which is electrically connected to the neural network noise reduction module; the parameter adjustment module is used to adjust the parameters in the hardware-based neural network noise reduction module.

[0039] According to some embodiments of the present application, the signal acquisition module includes: at least one audio acquisition unit, and the audio acquisition unit is used to acquire an initial audio sequence to be denoised.

[0040] The embodiment of the present application includes: a noise reduction system includes: a neural network noise reduction module, a signal acquisition module and a downsampling filter module that are communicatively connected to the neural network noise reduction module; the neural network noise reduction module includes: a neural network noise reduction model based on a multi-head self-attention mechanism obtained through pre-training; the structure of the noise reduction system is simplified, which is beneficial to reducing costs; in the process of using the noise reduction system to perform audio signal noise reduction processing, first, the neural network noise reduction module receives at least one initial audio sequence to be denoised collected by the signal acquisition module; then, through the neural network noise reduction model, based on the initial audio sequence, position encoding processing, feature vector encoding processing, vector fusion processing, noise reduction processing, and speech signal conversion processing are performed in sequence to obtain a denoised audio noise reduction signal; finally, the audio noise reduction signal is input into the downsampling filter module, so that the downsampling filter module performs downsampling processing on the audio noise reduction signal based on a preset standard sampling rate to obtain a target audio signal; using the neural network noise reduction model to perform noise reduction improves the noise reduction efficiency, which is beneficial to improving the real-time performance of voice interaction. That is to say, the solution of the embodiment of the present application can perform voice noise reduction processing through a noise reduction system with a simplified structure, reduce latency, reduce costs, and improve noise reduction efficiency, which is conducive to improving the real-time nature of voice interaction.

[0041] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained through the structures particularly pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 is a schematic diagram of a system architecture for executing an audio signal noise reduction method provided by an embodiment of the present application;

[0043] Figure 2 is a schematic diagram of a traditional speech noise reduction architecture provided by an embodiment of the present application;

[0044] Figure 3 is a specific schematic diagram of a noise reduction system provided by an embodiment of the present application;

[0045] Figure 4 is a schematic diagram of a specific structure of an SDM modulator provided by an embodiment of the present application;

[0046] Figure 5 It is a schematic diagram of the specific structure of a neural network denoising model provided by an embodiment of the present application;

[0047] Figure 6 This is a schematic diagram of the specific structure of a noise reduction system implemented based on an ASIC chip provided by an embodiment of the present application;

[0048] Figure 7 is a flowchart of an audio signal noise reduction method provided by an embodiment of the present application;

[0049] Figure 8 It is a flowchart of training a neural network denoising model provided by an embodiment of the present application. DETAILED DESCRIPTION

[0050] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0051] It should be understood that in the description of the present application, the orientation descriptions, such as up, down, front, back, left, right, etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0052] It should be noted that although a logical order is shown in the flowchart in the description of the present application, in some cases, the steps shown or described may be performed in an order different from that in the flowchart. In the description of the present application, a number of means one or more, and a plurality of means two or more. The description of "first" and "second" is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0054] The present application provides an audio signal denoising method and denoising system. The method includes: a neural network denoising module receives at least one initial audio sequence to be denoised collected by a signal acquisition module; through a neural network denoising model, position encoding processing, feature vector encoding processing, vector fusion processing, denoising processing, and speech signal conversion processing are sequentially performed based on the initial audio sequence to obtain a denoised audio denoising signal; the audio denoising signal is input into a downsampling filter module, so that the downsampling filter module performs downsampling processing on the audio denoising signal based on a preset standard sampling rate to obtain a target audio signal. The present application can perform speech denoising processing through a denoising system with a simplified structure, reduce delay, reduce costs, and improve denoising efficiency, thereby facilitating the real-time performance of voice interaction.

[0055] The embodiments of the present application are further described below in conjunction with the accompanying drawings.

[0056] like Figure 1 As shown, the denoising system 100 includes: a neural network denoising module 120, a signal acquisition module 110 and a downsampling filter module 130 which are communicatively connected to the neural network denoising module 120; the neural network denoising module 120 includes: a pre-trained neural network denoising model based on a multi-head self-attention mechanism.

[0057] Among them, the neural network denoising module 120 is used to: receive at least one initial audio sequence to be denoised collected by the signal acquisition module 110; through the neural network denoising model, based on the initial audio sequence, perform position encoding processing, feature vector encoding processing, vector fusion processing, denoising processing, and speech signal conversion processing in sequence to obtain a denoised audio denoising signal; input the audio denoising signal to the downsampling filter module 130, so that the downsampling filter module 130 downsamples the audio denoising signal based on a preset standard sampling rate to obtain a target audio signal.

[0058] It is understandable that traditional speech noise reduction architectures such as Figure 2As shown, the traditional speech noise reduction architecture includes: a microphone, an SDM modulator, a downsampling module, a computing platform and a memory; wherein the microphone, the SDM modulator and the computing platform are connected in sequence, and the memory is connected in communication with the computing platform. It can be seen that the most commonly used speech noise reduction method in the industry is a set of software algorithms running on a general computing platform. This computing platform generally includes at least one processor and at least one memory connected to the processor. In the process of using the traditional speech noise reduction architecture for noise reduction processing, the voice is collected by multiple ADCs and transmitted to the computing platform for noise reduction processing. If you want a good noise reduction effect, you will consume a lot of computing power, and the computing platform must also take into account other applications at the same time, which will involve resource allocation, so the hardware cost is high and the design is complex. Furthermore, using the traditional algorithm platform for noise reduction processing and system resource allocation will produce a relatively large delay, resulting in untimely feedback of voice commands, which seriously limits the application scenarios of voice interaction. In addition, the traditional noise reduction method uses standard sampling rates such as 16kHz and 48kHz, which will also produce a large delay in the process of downsampling, speech noise reduction and upsampling. However, after collecting the voice signal to be denoised, the noise reduction system provided in the embodiment of the present application does not first perform downsampling processing on the voice signal to be denoised using the standard sampling rate, but directly processes the collected oversampled data, outputs the denoised audio noise reduction signal in real time, and finally downsamples the audio noise reduction signal to obtain the target audio signal. Compared with the traditional voice noise reduction architecture, the voice noise reduction system provided in the embodiment of the present application does not require the setting of additional upsampling units and memories, and the system structure is simple; it directly processes the oversampled sound data (i.e., the initial audio sequence to be denoised), and omits the downsampling process in the ADC conversion process, so the signal acquisition and processing speed is faster, and the overall noise reduction processing delay is extremely small.

[0059] Furthermore, combined with Figure 3 and Figure 4 Further explain the signal acquisition module and combine Figure 5 The neural network denoising module is further explained, and the downsampling filtering module is further explained.

[0060] It should be noted that if Figure 3 As shown, the signal acquisition module 110 includes: at least one audio acquisition unit 111; each audio acquisition unit is used to acquire an initial audio sequence to be denoised.

[0061] In some embodiments, the signal acquisition module 110 further includes: at least one multiplexer, the input end of each multiplexer is connected to at least one audio acquisition unit, and the output end of each multiplexer is communicatively connected to the neural network noise reduction module. The multiplexer is used to select an initial audio sequence from the initial audio sequence collected by at least one audio acquisition unit and transmit it to the neural network noise reduction module.

[0062] In one embodiment, if Figure 3 As shown, the audio acquisition unit 111 includes: a microphone and an SDM modulator for outputting analog signals, and the microphone and the SDM modulator for outputting analog signals are communicatively connected. Specifically, the modulator is a Sigma-Delta modulator. When the signal acquisition module adopts multiple audio acquisition units, the positions of the multiple microphones for outputting analog signals are physically different, and the multiple microphones for outputting analog signals can convert the sound signals in the environment into analog electrical signals and output them to the Sigma-Delta modulator. The Sigma-Delta modulator then converts the analog electrical signals into digital signals. Compared with the ADC converter including the downsampling module in the traditional speech noise reduction architecture, the ADC converter of the present application does not provide a downsampling module, but directly transmits the collected initial audio sequence to be denoised to the neural network noise reduction module.

[0063] Specifically, Figure 4 As shown, the SDM modulator is a Sigma Delta modulator. The Sigma Delta modulator includes: an adder, an integrator, an analog-to-digital converter ADC and a digital-to-analog converter DAC, wherein the adder, the integrator and the analog-to-digital converter ADC are sequentially connected in communication; the input end of the adder is connected to the output end of a microphone for outputting an analog signal; the input end of the digital-to-analog converter is connected to the output end of the analog-to-digital converter, and the output end of the analog-to-digital converter is connected to the input end of the adder. Among them, the conversion frequency Fs of the analog-to-digital converter ADC and the digital-to-analog converter DAC is generally many times higher than the Nyquist frequency required by the input signal. This multiple is the oversampling rate (OSR) of the modulator. The modulator provided in the embodiment of the present application can exchange processing speed for accuracy, and is suitable for scenarios with high accuracy requirements such as audio noise reduction.

[0064] Specifically, the microphone for outputting analog signals may be a silicon microphone or an electret microphone in the form of MEMS, or may be a sensor device of other forms that converts sound signals into electrical signals. Therefore, the present application does not impose any specific restrictions on the type of microphone used for outputting analog signals.

[0065] In one embodiment, the audio acquisition unit includes: a microphone for outputting digital signals. Specifically, the microphone for outputting digital signals can be implemented by using a silicon microphone.

[0066] It is understandable that the role played by the microphone for outputting digital signals is the same as the role played by the microphone and modulator for outputting analog signals. Therefore, the present application does not impose any specific restrictions on the specific structural composition and implementation of the audio acquisition unit.

[0067] like Figure 5 As shown, according to some embodiments of the present application, the neural network denoising model includes: a speech input layer, a feature vector encoding layer, a feature integration layer, a feature vector decoding layer and an output layer connected in sequence.

[0068] Among them, the speech input layer is used to: perform position coding processing on the initial audio sequence, add position coding vectors to the elements in the initial audio sequence, and obtain an input matrix; the input matrix represents the order information of the elements; the feature vector coding layer performs feature vector coding processing according to the input matrix, and obtains at least one feature vector accordingly; the feature integration layer is used to: perform vector fusion processing on at least one feature vector according to a pre-obtained first weight matrix and a preset integration formula, and obtain the first target integration vector at the current moment; the feature vector decoding layer is used to: perform noise reduction processing according to the first target integration vector at the current moment and the second target integration vector at the previous moment, and obtain a noise-reduced speech vector; the output layer is used to: convert the noise-reduced speech vector into a noise-reduced audio noise reduction signal, and output the audio noise reduction signal.

[0069] Specifically, Figure 5As shown, the speech input layer includes multiple speech input units, which are responsible for receiving multiple speech signals. Each speech signal is represented as a separate sequence. Since the self-attention mechanism is insensitive to position information, position encoding is introduced in the speech input layer so that the neural network denoising model can understand the order information in the input initial audio sequence in the subsequent processing. The feature vector encoding layer includes multiple transformer encoders, and one transformer encoder is correspondingly connected to a speech input unit; in the feature vector encoding layer, based on the multi-head self-attention mechanism, each initial audio sequence will be encoded into a high-dimensional feature vector; it can be understood that each initial audio sequence is processed by an independent encoder. The feature integration layer fuses the multi-head self-attention mechanism and fuses the high-dimensional feature vectors output by each encoder, that is, extracts the global context information. The feature vector decoding layer includes a transformer decoder, which receives the integrated feature vectors at different times through the transformer decoder, and refers to the second target integration vector generated previously and the first target integration vector at the current time to generate the current denoised speech vector. The output layer converts the output of the decoder into a speech signal according to the preset format. The preset format is PCM format. PCM format is a digital audio format.

[0070] It can be understood that, through the cooperation of the voice input layer, feature vector encoding layer, feature integration layer, feature vector decoding layer and output layer, the collected oversampled data (i.e., the collected initial audio sequence) can be directly denoised, and the denoised audio noise reduction signal can be output in real time, thereby improving the noise reduction efficiency and thus facilitating the real-time performance of voice interaction.

[0071] It should be emphasized that the embodiment of the present application recognizes the characteristics of speech through a neural network noise reduction model, which can remove all sound signals irrelevant to the speech, with a higher degree of noise reduction and no special requirements for the microphone.

[0072] According to some embodiments of the present application, the neural network denoising module is a hardware module implemented based on FPGA or ASIC.

[0073] It is understandable that the neural network denoising model is a pre-trained Transformer network. Pre-training can fix most parameters, which can be implemented with pure logic circuits. Unlike software-based denoising methods, the neural network denoising module of the embodiment of the present application does not require general computing modules and memory such as CPU or DSP after hardware. In this way, the hardware cost is reduced.

[0074] According to some embodiments of the present application, the noise reduction system also includes: a parameter adjustment module, which is electrically connected to the neural network noise reduction module; the parameter adjustment module is used to adjust the parameters in the hardware neural network noise reduction module.

[0075] It is understandable that in the process of pre-training the neural network model, the noise reduction model is generally trained through a large amount of multi-channel voice data in various environments. Therefore, a large number of parameters of the noise reduction model obtained after training have been fixed, so that the neural network noise reduction module including the neural network noise reduction model can be hardwareized through FPGA or ASIC. It should be noted that in order to make the hardware-based neural network noise reduction module have better adaptability and better suited to different specific scenarios; some parameters can also be selectively retained in the neural network noise reduction model for fine adjustment.

[0076] In some embodiments, the downsampling filter module is used to convert low-precision oversampled data into high-precision standard sampling rate data, which is generally implemented by a combination of FIR filters and IIR filters. The current traditional speech recognition method generally converts the standard sampling rate in the cloud, and then performs speech recognition based on the conversion to the standard sampling rate, which has ensured the accuracy and timeliness of speech recognition. The embodiment of the present application sets a downsampling filter module to downsample the oversampled data output by the neural network denoising model to adapt to the subsequent speech recognition and meet the accuracy and timeliness of the subsequent speech recognition. And there is no need to upload multiple voice data to the cloud, which greatly reduces the requirements for network bandwidth and hardware.

[0077] For example, Figure 6As shown, the noise reduction system is fully implemented as an ASIC chip. The ASIC chip integrates a multi-channel signal acquisition unit, and the signal acquisition unit includes a Sigma Delta modulator and a microphone for outputting analog signals. The Sigma Delta modulator converts the analog electrical signal from the microphone into an initial speech sequence; it can be understood that when the signal acquisition unit uses a microphone for outputting digital signals, the ASIC chip can also directly receive the pulse density modulation (PMD) signal from the microphone for outputting digital signals. The signal collected by the signal acquisition unit will be directly input into the pre-trained neural network noise reduction module, and after being processed by the neural network noise reduction module, a channel of oversampled data (i.e., the audio noise reduction signal after noise reduction) will be generated. This oversampled data is then converted into a standard sampling rate through a downsampling filter module, and then output through a standard audio IIS interface for subsequent speech recognition, semantic understanding and other processing. It can be understood that the ASIC chip also reserves some adjustable parameters for the neural network noise reduction module to meet the special needs of the application, and the adjustment of the parameters is realized through the parameter adjustment module and the IIC interface. Furthermore, the ASIC chip also integrates a phase-locked loop module, a power supply and a clock module required by the system for providing power, a reference voltage VREF, and a clock signal.

[0078] In summary, the noise reduction system provided in the embodiment of the present application has a simplified structure compared to the traditional noise reduction network architecture, which reduces the cost during the noise reduction processing and improves the noise reduction efficiency, thereby improving the real-time performance of voice interaction.

[0079] Those skilled in the art will appreciate that the system structure shown in the figure does not constitute a limitation on the embodiments of the present application, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0080] The system embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0081] Those skilled in the art will appreciate that the system architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of the system architecture and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.

[0082] Based on the above system structure, various embodiments of the audio signal noise reduction method of the present application are proposed below.

[0083] First, as Figure 7 As shown, the audio signal noise reduction method can be applied to Figure 1 The neural network noise reduction module of the noise reduction system shown, the noise reduction system also includes: a signal acquisition module and a downsampling filtering module that are communicatively connected to the neural network noise reduction module; the neural network noise reduction module includes: a neural network noise reduction model based on a multi-head self-attention mechanism obtained through pre-training; the audio signal noise reduction method may include but is not limited to steps S110 to S130.

[0084] Step S110: The neural network noise reduction module receives at least one initial audio sequence to be denoised collected by the signal collection module.

[0085] Step S120: Using a neural network noise reduction model, position encoding processing, feature vector encoding processing, vector fusion processing, noise reduction processing, and speech signal conversion processing are performed in sequence based on the initial audio sequence to obtain a noise-reduced audio noise reduction signal.

[0086] Step S130: input the audio noise reduction signal to the downsampling filter module, so that the downsampling filter module performs downsampling processing on the audio noise reduction signal based on a preset standard sampling rate to obtain a target audio signal.

[0087] It can be understood that each initial audio sequence is a separate input sequence, wherein the initial audio sequence includes multiple elements, and each element is a multi-dimensional vector.

[0088] It can be understood that, through step S110 and step S120, the oversampled sound data (i.e., the initial audio sequence to be denoised) is directly processed, and the downsampling process in the ADC conversion process is omitted in step S110, so that the signal acquisition speed is faster and the overall noise reduction processing delay is smaller.

[0089] Through step S110 to step S130, in the process of using the noise reduction system to perform noise reduction processing on the audio signal, first, the neural network noise reduction module receives at least one initial audio sequence to be noise-reduced collected by the signal acquisition module; then, through the neural network noise reduction model, based on the initial audio sequence, position encoding processing, feature vector encoding processing, vector fusion processing, noise reduction processing, and speech signal conversion processing are performed in sequence to obtain the audio noise reduction signal after noise reduction; finally, the audio noise reduction signal is input into the downsampling filter module, so that the downsampling filter module performs downsampling processing on the audio noise reduction signal based on the preset standard sampling rate to obtain the target audio signal; using the neural network noise reduction model for noise reduction improves the noise reduction efficiency, which is conducive to improving the real-time performance of voice interaction. Therefore, the scheme of the embodiment of the present application can perform voice noise reduction processing through a noise reduction system with a simplified structure, reduce delay, reduce costs, and improve noise reduction efficiency, which is conducive to improving the real-time performance of voice interaction.

[0090] According to some embodiments of the present application, the neural network noise reduction model includes: a speech input layer, a feature vector encoding layer, a feature integration layer, a feature vector decoding layer and an output layer connected in sequence. Further explanation of step S120, step S120: based on the initial audio sequence, position encoding processing, feature vector encoding processing, vector fusion processing, noise reduction processing, speech signal conversion processing are sequentially performed to obtain a noise-reduced audio noise reduction signal, including but not limited to steps S121 to S125.

[0091] Step S121: Perform position coding processing on the initial audio sequence through the speech input layer, add position coding vectors to the elements in the initial audio sequence, and obtain an input matrix; the input matrix represents the order information of the elements.

[0092] Step S122: performing feature vector encoding processing according to the input matrix through the feature vector encoding layer, and correspondingly obtaining at least one feature vector.

[0093] Step S123: Through the feature integration layer, a vector fusion process is performed on at least one feature vector according to a pre-obtained first weight matrix and a preset integration formula to obtain a first target integration vector at the current moment.

[0094] Step S124: Through the feature vector decoding layer, noise reduction processing is performed according to the first target integration vector at the current moment and the second target integration vector at the previous moment to obtain a noise-reduced speech vector.

[0095] Step S125: The denoised speech vector is converted into a denoised audio denoised signal through the output layer, and the audio denoised signal is output.

[0096] According to some embodiments of the present application, step S122 is further described, wherein feature vector encoding processing is performed according to the input matrix to obtain at least one feature vector, including: performing a linear transformation on the input matrix to obtain a query matrix, a key matrix, and a value matrix; calculating the dot product of the query matrix and the key matrix, and dividing the dot product by the dimension of the key matrix to obtain an attention score matrix; using activation parameters to calculate the attention score matrix to obtain an attention weight matrix; performing weighted summation processing on the value matrix according to the attention weight matrix to obtain a feature vector; the feature vector is the output matrix. In this way, it can be understood that through the multi-head self-attention mechanism, multiple sets of linear transformations are added on the basis of the self-attention mechanism, so that the neural network denoising model can focus on different positions in different subspaces in parallel, thereby capturing more information and achieving better denoising effects.

[0097] According to some embodiments of the present application, the preset integration formula in step S123 is:

[0098] ;

[0099] Among them, Output is the target integration vector, attention is the feature vector, is the first weight matrix, and the Concat function is used to concatenate feature vectors.

[0100] Specifically, step S125 is further described, in which the denoised speech vector is converted into an audio denoised signal based on a preset format and outputted so as to be suitable for subsequent speech recognition and other processing.

[0101] Through step S121 to step S125, the neural network denoising module of the present application is constructed based on the self-attention mechanism model, obtains the global information of the input sequence through the self-attention mechanism, and transmits this information through the network layer. Through the cooperation of the speech input layer, the feature vector encoding layer, the feature integration layer, the feature vector decoding layer and the output layer, the collected oversampled data (i.e., the collected initial audio sequence) can be directly subjected to denoising, and the denoised audio denoising signal can be output in real time, thereby improving the denoising efficiency and thus facilitating the real-time performance of speech interaction.

[0102] According to some embodiments of the present application, step S124 is further described, and noise reduction processing is performed based on the first target integration vector at the current moment and the second target integration vector at the previous moment to obtain a noise-reduced speech vector, including but not limited to steps S1241 to S1244.

[0103] Step S1241: Acquire the first weight coefficient and the second weight coefficient obtained by pre-training.

[0104] Step S1242: multiplying the first weight coefficient by the first target integration vector to obtain a first weighted vector.

[0105] Step S1243: multiply the second weight coefficient by the second target integration vector to obtain a second weighted vector.

[0106] Step S1244: Add the first weighted vector to the second weighted vector to obtain a noise-reduced speech vector.

[0107] Through steps S1241 to S1244, the first target integration vector at the current moment and the second target integration vector at the previous moment are weighted and added using the first weight coefficient and the second weight coefficient obtained by pre-training, and noise reduction is performed with reference to the global context information (the second target integration at the previous moment is equivalent to the global previous context information, and the first target integration vector at the current moment is equivalent to the global following context information); the current noise-reduced speech vector is generated, making the noise reduction process more reliable.

[0108] Taking an example, steps S121 to S125 of the embodiment of the present application are described in detail.

[0109] First, the initial audio sequence is received through the speech input layer. Assume that the initial audio sequence is x, which consists of multiple elements [x1, x2, ..., xn], each element The input initial audio sequence x is converted into the input matrix X.

[0110] Secondly, the input matrix X is linearly transformed to obtain the query matrix Q, key matrix K and value matrix V. Among them:

[0111] ;in, is the second weight matrix obtained after training, is the third weight matrix obtained after training, It is the fourth weight matrix obtained after training. It should be noted that the second weight matrix, the third weight matrix and the fourth weight matrix all come from the same characteristic matrix X of the previous layer, that is, the input initial audio sequence is linearly mapped multiple times to obtain different projection matrices.

[0112] Next, calculate the dot product of the query matrix Q and the key matrix K and divide it by the dimension of the key matrix K , we get the attention score matrix as:

[0113] .

[0114] Then, an activation function, namely the Softmax function, is applied to each row of the attention score matrix to obtain the attention weight matrix:

[0115] .

[0116] Then, the attention weight matrix performs weighted summation on the value matrix V to obtain the output matrix, that is, the eigenvector:

[0117] .

[0118] Next, the feature vectors output by the multi-head attention mechanism are concatenated and linearly transformed to obtain and output the target integrated vector after feature fusion:

[0119] ; Among them, Output is the target integration vector, attention is the feature vector, It is the first weight matrix obtained by pre-training, and the Concat function is used to concatenate feature vectors.

[0120] Then, through the feature vector decoding layer, noise reduction processing is performed according to the first target integration vector at the current moment and the second target integration vector at the previous moment to obtain a noise-reduced speech vector.

[0121] Finally, based on a preset format, the denoised speech vector is converted into a denoised audio denoised signal, and the audio denoised signal is output.

[0122] In one embodiment, if Figure 8 As shown, before performing the audio noise reduction method shown in step S110 to step S150, the audio noise reduction method also includes: first, obtaining oversampled data from a historical database and designing an initial noise reduction model to be trained; secondly, performing model training processing on the designed initial noise reduction model to be trained based on the oversampled data; then, performing parameter optimization processing on the trained noise reduction model to be evaluated; then, performing parameter evaluation processing on the optimized noise reduction model that has undergone parameter optimization processing, and the parameter evaluation processing is as follows: judging whether the parameter evaluation passes; if so, outputting the target neural network training model, and hardwareizing the neural network training model to complete pre-training; if not, re-performing model training processing, parameter optimization processing and parameter evaluation processing until the target neural network training model is obtained and hardwareized to complete pre-training.

[0123] Specifically, in the process of pre-training the neural network noise reduction model, a large amount of multi-channel voice data must be collected first. This data can come from an existing database. The data from the existing database needs to be pre-processed to become oversampled data, and some of it needs to be actually collected. Model design is generally based on the Transformer architecture, and the number of parameters depends on the target effect that the model needs to achieve. After the data and model are obtained, model training begins. The trained model needs further parameter optimization. Generally, a suitable loss function is selected to measure the performance and error of the model, and an optimization algorithm is used to minimize the loss function to update the model parameters. After the training is completed, the model is hardwareized using FPGA or ASIC, and certain parameters are generally retained to fine-tune the model.

[0124] Those skilled in the art will appreciate that all or some of the steps and systems in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.

[0125] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present application. These equivalent deformations or substitutions are all included in the scope defined by the present application.

Claims

1. A method for reducing noise of an audio signal, characterized in that: A neural network noise reduction module applied to a noise reduction system, wherein the noise reduction system further comprises: a signal acquisition module and a downsampling filter module which are communicatively connected to the neural network noise reduction module; the neural network noise reduction module comprises: a neural network noise reduction model based on a multi-head self-attention mechanism obtained through pre-training; the neural network noise reduction model comprises: a speech input layer, a feature vector encoding layer, a feature integration layer, a feature vector decoding layer and an output layer which are connected in sequence; the neural network noise reduction module is a hardware module implemented in a manner based on FPGA or ASIC; The audio signal noise reduction method comprises: The neural network denoising module receives at least one initial audio sequence to be denoised collected by the signal acquisition module; wherein the initial audio sequence to be denoised is oversampled data; the initial audio sequence includes a plurality of elements, each of which is a multidimensional vector; Through the neural network noise reduction model, based on the initial audio sequence, position encoding processing, feature vector encoding processing, vector fusion processing, noise reduction processing, and speech signal conversion processing are sequentially performed to obtain a noise-reduced audio noise reduction signal; Inputting the audio noise reduction signal into the downsampling filter module, so that the downsampling filter module performs downsampling processing on the audio noise reduction signal based on a preset standard sampling rate to obtain a target audio signal; The method of performing position coding processing, feature vector coding processing, vector fusion processing, noise reduction processing, and speech signal conversion processing on the initial audio sequence in sequence to obtain a noise-reduced audio noise reduction signal includes: performing position coding processing on the initial audio sequence through the speech input layer, adding position coding vectors to the elements in the initial audio sequence, and obtaining an input matrix; the input matrix represents the sequence information of the elements; performing feature vector coding processing according to the input matrix through the feature vector coding layer, and correspondingly obtaining at least one feature vector; The feature vector encoding processing is performed according to the input matrix to obtain at least one feature vector, including: performing a linear transformation on the input matrix to obtain a query matrix, a key matrix and a value matrix; calculating the dot product of the query matrix and the key matrix, and dividing the dot product by the dimension of the key matrix to obtain an attention score matrix; using activation parameters to calculate the attention score matrix to obtain an attention weight matrix; performing weighted summation processing on the value matrix according to the attention weight matrix to obtain a feature vector; the feature vector is an output matrix.

2. The method for reducing noise of an audio signal according to claim 1, characterized in that: The method further comprises: performing position coding processing, feature vector coding processing, vector fusion processing, noise reduction processing, and speech signal conversion processing in sequence based on the initial audio sequence to obtain a noise-reduced audio noise reduction signal; After performing feature vector encoding processing according to the input matrix to obtain at least one feature vector, performing vector fusion processing on at least one feature vector according to a pre-obtained first weight matrix and a preset integration formula through the feature integration layer to obtain a first target integration vector at the current moment; Through the feature vector decoding layer, noise reduction processing is performed according to the first target integration vector at the current moment and the second target integration vector at the previous moment to obtain a noise-reduced speech vector; The denoised speech vector is converted into the denoised audio denoised signal through the output layer, and the audio denoised signal is output.

3. The method for reducing noise of an audio signal according to claim 2, characterized in that: The preset integration formula is: ; Among them, Output is the target integration vector, attention is the feature vector, is the first weight matrix, and the Concat function is used to concatenate the feature vectors.

4. The method for reducing noise of an audio signal according to claim 2, characterized in that: The performing noise reduction processing according to the first target integration vector at the current moment and the second target integration vector at the previous moment to obtain the noise-reduced speech vector includes: Obtaining a first weight coefficient and a second weight coefficient obtained by pre-training; Multiplying the first weight coefficient by the first target integration vector to obtain a first weighted vector; Multiplying the second weight coefficient by the second target integration vector to obtain a second weighted vector; The first weighted vector and the second weighted vector are added to obtain the noise-reduced speech vector.

5. A noise reduction system, characterized in that: include: A neural network noise reduction module, a signal acquisition module and a downsampling filter module that are communicatively connected to the neural network noise reduction module; The neural network denoising module includes: a pre-trained neural network denoising model based on a multi-head self-attention mechanism; the neural network denoising model includes: a speech input layer, a feature vector encoding layer, a feature integration layer, a feature vector decoding layer and an output layer connected in sequence; the neural network denoising module is a hardware module implemented in an FPGA or ASIC manner; The neural network noise reduction module is used to: receive at least one initial audio sequence to be denoised collected by the signal acquisition module; wherein the initial audio sequence to be denoised is oversampled data; each initial audio sequence is a separate input sequence, wherein the initial audio sequence includes multiple elements, each element is a multidimensional vector; through the neural network noise reduction model, based on the initial audio sequence, position encoding processing, feature vector encoding processing, vector fusion processing, noise reduction processing, and speech signal conversion processing are performed in sequence to obtain a denoised audio noise reduction signal; the audio noise reduction signal is input into the downsampling filter module, so that the downsampling filter module performs downsampling processing on the audio noise reduction signal based on a preset standard sampling rate to obtain a target audio signal; The speech input layer is used to: perform position coding processing on the initial audio sequence, add position coding vectors to the elements in the initial audio sequence, and obtain an input matrix; the input matrix represents the order information of the elements; The feature vector encoding layer performs feature vector encoding processing according to the input matrix to obtain at least one feature vector; The feature vector encoding processing is performed according to the input matrix to obtain at least one feature vector, including: performing a linear transformation on the input matrix to obtain a query matrix, a key matrix and a value matrix; calculating the dot product of the query matrix and the key matrix, and dividing the dot product by the dimension of the key matrix to obtain an attention score matrix; using activation parameters to calculate the attention score matrix to obtain an attention weight matrix; performing weighted summation processing on the value matrix according to the attention weight matrix to obtain a feature vector; the feature vector is an output matrix.

6. The noise reduction system according to claim 5, characterized in that: The feature integration layer is used to: after performing feature vector encoding processing according to the input matrix to obtain at least one feature vector, perform vector fusion processing on at least one feature vector according to a pre-obtained first weight matrix and a preset integration formula to obtain a first target integration vector at the current moment; The feature vector decoding layer is used to: perform noise reduction processing according to the first target integration vector at the current moment and the second target integration vector at the previous moment to obtain a noise-reduced speech vector; The output layer is used to convert the denoised speech vector into the denoised audio denoised signal and output the denoised audio denoised signal.

7. The noise reduction system according to claim 5, characterized in that: The noise reduction system also includes: a parameter adjustment module, which is electrically connected to the neural network noise reduction module; the parameter adjustment module is used to adjust the parameters in the hardware-based neural network noise reduction module.

8. The noise reduction system according to claim 5, characterized in that: The signal acquisition module includes: at least one audio acquisition unit, and the audio acquisition unit is used to acquire an initial audio sequence to be denoised.