Audio signal processing method and device, vehicle-mounted entertainment system, electronic equipment and storage medium

Through the block frequency domain filter and frequency domain mask noise reduction processing method, the problem of insufficient audio signal processing efficiency and quality in the car karaoke system is solved, the speaker feedback voice and environmental noise are accurately eliminated, and the audio quality is improved. signal quality.

CN118629415APending Publication Date: 2024-09-10IFLYTEK CO LTD
View PDF 0 Cites 7 Cited by

Patent Information

Application Number
CN202410847651.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The existing technology has insufficient audio signal processing efficiency and quality in car karaoke systems, making it difficult to effectively eliminate the feedback voice and environmental noise from the speakers to the microphone, resulting in serious howling problems.

Method used

Blocked frequency domain filter processing and frequency domain mask-based noise reduction processing methods are used. By obtaining the reference signal and microphone input signal, block frequency domain filter processing is performed to obtain the error signal, and the asymmetric analysis window and frequency domain are used. The mask is subjected to windowing and noise reduction processing, and the target signal is obtained and played through the speaker.

Benefits of technology

Accurately eliminates the feedback voice and environmental noise from the speaker to the microphone, retaining only the target speaker's voice, effectively preventing howling and improving the quality of the target signal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629415A
    Figure CN118629415A
Patent Text Reader

Abstract

The invention provides an audio signal processing method and device, a vehicle-mounted entertainment system, electronic equipment and a storage medium. The method comprises the following steps: acquiring a reference signal and an input signal of a microphone; processing the reference signal through a block frequency domain filter to obtain an estimation signal, and obtaining an error signal based on the estimation signal and the input signal; performing windowing operation on the error signal by adopting an asymmetric analysis window to obtain a windowing error signal; and performing frequency domain mask-based noise reduction processing on the windowing error signal to obtain a target signal, and playing the target signal through a loudspeaker. According to the audio signal processing method and device, the vehicle-mounted entertainment system, the electronic equipment and the storage medium provided by the invention, the feedback voice from the loudspeaker to the microphone and the environmental noise can be accurately eliminated through the block frequency domain filter processing and the noise reduction processing based on the frequency domain mask, and only the voice of the target speaker is reserved, so that the generation of howling is effectively prevented, and the user experience is improved. And the quality of the target signal is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of signal processing technology, and in particular to an audio signal processing method, device, in-vehicle entertainment system, electronic equipment and storage medium. Background Art

[0002] With the widespread use of automobiles, in-vehicle smart terminal products have gradually become popular, the expansion of in-vehicle ecological chain products has become more and more intense, and in-vehicle karaoke systems have come into being.

[0003] The audio signals collected by the microphone include not only the singing voice of the user, but also the feedback voice from the car speakers to the microphone, and the environmental noise inside and outside the car, such as engine noise, tire noise, wind noise, horn, suspension impact and other possible non-stationary noises. Although related technologies can also filter and reduce noise on audio signals, the processing efficiency, computational complexity, and processed audio quality need to be improved. Summary of the invention

[0004] The present invention provides an audio signal processing method, device, vehicle entertainment system, electronic equipment and storage medium, which are used to solve the defects of poor efficiency and quality of audio signal processing in the prior art.

[0005] The present invention provides an audio signal processing method, comprising: Obtaining a reference signal and an input signal from a microphone; Processing the reference signal through a block frequency domain filter to obtain an estimated signal, and obtaining an error signal based on the estimated signal and the input signal; Performing a windowing operation on the error signal using an asymmetric analysis window to obtain a windowed error signal; The windowed error signal is subjected to a frequency domain mask-based noise reduction process to obtain a target signal, and the target signal is played through a loudspeaker.

[0006] According to the audio signal processing method provided by the present invention, the filter coefficient of the block frequency domain filter is iteratively updated based on at least one of the following steps: Determining a variable step size at each frequency point based on a smoothed estimated power spectrum of a whitened reference signal and a whitened error signal, and updating the filter coefficient based on the variable step size; Determining a normalized weight of each block based on the updated weight of each block, and updating the filter coefficient based on the normalized weight; Determining a smooth gradient of the current frame based on a calculated gradient of the current frame, and updating the filter coefficient based on the smooth gradient; The filter coefficients are determined from cached historical filter coefficients and updated filter coefficients of the current frame.

[0007] According to the audio signal processing method provided by the present invention, the step of determining the smooth gradient of the current frame based on the calculated gradient of the current frame includes: Determining a clipping gradient of the current frame based on a calculated gradient of the current frame and a smoothed gradient of a historical frame; Based on the clipping gradient of the current frame, a smoothing gradient of the current frame is determined.

[0008] According to the audio signal processing method provided by the present invention, the windowed error signal is subjected to a noise reduction process based on a frequency domain mask to obtain a target signal, comprising: Performing time-frequency conversion on the windowed error signal to obtain a frequency domain error signal; Performing a frequency domain mask-based noise reduction process on the frequency domain error signal to obtain a frequency domain noise reduction signal, and performing a time-frequency conversion on the frequency domain noise reduction signal to obtain a time domain noise reduction signal; An asymmetric synthesis window is used to perform a windowing operation on the time domain noise reduction signal to obtain the target signal.

[0009] According to the audio signal processing method provided by the present invention, the frequency domain error signal is subjected to noise reduction processing based on a frequency domain mask to obtain a frequency domain noise reduction signal, comprising: Extracting equivalent rectangular bandwidth features and complex features of the frequency domain error signal; Performing frequency domain mask prediction on the equivalent rectangular bandwidth feature to obtain the frequency domain mask, and obtaining an envelope noise reduction signal based on the frequency domain mask and the frequency domain error signal; Performing denoising processing on the complex features in a complex domain to obtain a periodic denoised signal; The frequency domain noise reduction signal is obtained based on the envelope noise reduction signal and the periodic noise reduction signal.

[0010] According to the audio signal processing method provided by the present invention, the performing frequency domain mask prediction on the equivalent rectangular bandwidth feature to obtain the frequency domain mask includes: Extracting local features of the equivalent rectangular bandwidth features based on a feedforward sequence memory network; Extracting the global feature of the equivalent rectangular bandwidth feature based on a gated recurrent unit; Based on the local features and the global features, frequency domain mask prediction is performed to obtain the frequency domain mask.

[0011] The present invention also provides an audio signal processing device, comprising: A signal acquisition unit, used for acquiring a reference signal and an input signal of a microphone; A filtering processing unit, configured to process the reference signal through a block frequency domain filter to obtain an estimated signal, and obtain an error signal based on the estimated signal and the input signal; A windowing operation unit is used to perform a windowing operation on the error signal using an asymmetric analysis window to obtain a windowed error signal; a noise reduction processing unit is used to perform a frequency domain mask-based noise reduction processing on the windowed error signal to obtain a target signal, and play the target signal through a speaker.

[0012] The present invention also provides a vehicle entertainment system, comprising a microphone and a speaker arranged on a vehicle, and an audio signal processing device connected to the microphone and the speaker; The microphone is used to collect audio signals inside and outside the vehicle and use the audio signals as input signals; The audio signal processing device is used to obtain a reference signal and the input signal, process the reference signal through a block frequency domain filter to obtain an estimated signal, and obtain an error signal based on the estimated signal and the input signal; perform a windowing operation on the error signal using an asymmetric analysis window to obtain a windowed error signal; and perform a frequency domain mask-based noise reduction process on the windowed error signal to obtain a target signal; The loudspeaker is used to play the target signal.

[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned audio signal processing methods is implemented.

[0014] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the audio signal processing method described above is implemented.

[0015] The present invention further provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned audio signal processing methods.

[0016] The audio signal processing method, device, in-vehicle entertainment system, electronic device and storage medium provided by the present invention can accurately eliminate the feedback voice and environmental noise from the speaker to the microphone through block frequency domain filter processing and frequency domain mask-based noise reduction processing, and only retain the target speaker's voice, thereby effectively preventing the generation of howling and improving the quality of the target signal. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 It is a schematic diagram of the vehicle-mounted karaoke system provided by the present invention.

[0019] Figure 2 This is one of the flow charts of the audio signal processing method provided by the present invention.

[0020] Figure 3 It is a schematic diagram of the time domain waveform of the asymmetric window function provided by the present invention.

[0021] Figure 4 This is one of the flowchart diagrams of step 240 in the audio signal processing method provided by the present invention.

[0022] Figure 5 This is the second flowchart diagram of step 240 in the audio signal processing method provided by the present invention.

[0023] Figure 6 This is the third flowchart diagram of step 240 in the audio signal processing method provided by the present invention.

[0024] Figure 7 This is the fourth flowchart diagram of step 240 in the audio signal processing method provided by the present invention.

[0025] Figure 8 It is a structural schematic diagram of the audio signal processing device provided by the present invention.

[0026] Fig. 9 It is a structural schematic diagram of the in-vehicle entertainment system provided by the present invention.

[0027] Fig.10 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

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

[0029] Figure 1Schematic diagram of the in-vehicle karaoke system provided by the present invention. Figure 1 As shown in the figure, there are two microphones and two speakers in the car. The input signals of the microphones include: a) the feedback coupling component from the speaker to the microphone through the feedback path. This component has a greater impact. In severe cases, the system will become unstable and produce howling. b) The ambient noise in the car, including engine noise, tire noise, wind noise, etc. In addition, there are various possible non-stationary noises such as horns and suspension shocks. c) The singing voice of the passenger, which is the input that needs to be enhanced.

[0030] In order to deal with the howling problem, commonly used methods in related technologies include phase modulation, gain reduction, spatial filtering, and indoor environment modeling, and estimating the impulse response function from the speaker to the microphone. However, the processing efficiency, calculation amount, and processed audio quality of these methods are poor.

[0031] In view of the above problems, an embodiment of the present invention provides an audio signal processing method, in which a reference signal and an input signal of a microphone are obtained; the reference signal is processed by a block frequency domain filter to obtain an estimated signal, and an error signal is obtained based on the estimated signal and the input signal; an asymmetric analysis window is used to perform a windowing operation on the error signal to obtain a windowed error signal; the windowed error signal is subjected to a noise reduction process based on a frequency domain mask to obtain a target signal, and the target signal is played through a loudspeaker. Through the block frequency domain filter processing and the noise reduction process based on the frequency domain mask, the feedback voice and environmental noise from the loudspeaker to the microphone can be accurately eliminated, and only the voice of the target speaker is retained, thereby effectively preventing the generation of howling and improving the quality of the target signal.

[0032] The embodiments of the present invention can be applied to scenarios where the output audio signal of a microphone needs to be played through a loudspeaker, such as in-car karaoke scenarios and conference sound amplification scenarios. The execution subject of the method can be an electronic device such as a terminal device, a computer, a server, a server cluster, or a specially designed audio signal processing device, or an audio signal processing device set in the electronic device, which can be implemented by software, hardware, or a combination of the two.

[0033] Figure 2 is one of the flow charts of the audio signal processing method provided by the present invention, such as Figure 2 As shown, the method comprises the following steps: Step 210: Acquire a reference signal and an input signal from a microphone.

[0034] Specifically, the reference signal can be the signal played by the speaker in the previous frame, that is, the target signal obtained in the previous frame. The input signal of the microphone can be the input signal of the current frame collected by the microphone, and the input signal includes not only the speech signal of the target speaker (target signal), but also the feedback signal from the speaker to the microphone and the noise signal in the environment.

[0035] Step 220: Process the reference signal through a block frequency domain filter to obtain an estimated signal, and obtain an error signal based on the estimated signal and the input signal.

[0036] Specifically, in order to reduce the processing delay and computational complexity of the system, a partitioned block frequency-domain adaptive filter (PBFDAF) may be used so that all calculations are performed in the short-time Fourier transform (STFT) domain.

[0037] The block frequency domain adaptive filter is a block linear adaptive filter that performs frequency domain processing on the reference signal. The block frequency domain adaptive filter integrates the idea of ​​block frequency domain into the linear adaptive filter to realize the frequency domain processing of the linear adaptive filter block. The linear adaptive filter is not limited here, such as the Wiener filter, the Kalman filter, the least mean square adaptive filter (Least Mean Square, LMS), etc. Exemplarily, the block frequency domain idea can be integrated into the Kalman filter to reduce the complexity and delay of the algorithm. The estimated signal can be considered as a feedback signal estimated based on the reference signal.

[0038] After obtaining the reference signal, this step can process the reference signal through a block frequency domain linear adaptive filter, that is, through a linear adaptive filter that incorporates the block frequency domain concept, to obtain an estimated signal. Specifically, when the block frequency domain linear adaptive filter processes the reference signal, it can be divided into at least two sub-filter blocks to process the reference signal in the frequency domain. For example, after determining the corresponding speech signal for each sub-filter included in the block frequency domain linear adaptive filter, the estimated signal is determined in combination with the corresponding sub-filter coefficients.

[0039] The input signal of the microphone can be considered as the signal collected by the near-end microphone. The input signal can be the sum of the near-end speech signal, the local noise signal and the actual feedback signal. The error signal can be considered as the microphone signal after removing the feedback signal (estimated signal). That is, the error signal is obtained by subtracting the estimated signal from the input signal of the microphone.

[0040] Step 230: Use an asymmetric analysis window to perform a windowing operation on the error signal to obtain a windowed error signal.

[0041] Specifically, an asymmetric analysis window is used to perform a windowing operation on the error signal in the time domain, and the signal segment of each frame is intercepted through the asymmetric analysis window to obtain the windowed error signal of each frame. Since voice data and video data are different, there is no concept of frames, but for transmission and storage, and for batch processing of the program, it will be segmented according to the specified time period or discrete time points to form audio frames in the time domain. However, directly segmenting to form audio frames may destroy the continuity of the audio signal. In order to ensure the continuity of the audio signal, the overlapping data between frames needs to be retained, that is, there is a frame shift, and the overlapping part of two adjacent needles is the frame shift.

[0042] Here, an asymmetric window means that a graph formed by a function waveform of a window function is an asymmetric graph, for example, the function waveforms on both sides of a peak value as an axis are asymmetric.

[0043] In this embodiment, a window function is used to process each frame of the audio signal so that the signal changes from minimum to maximum and then to minimum. In this way, the overlapping parts of two adjacent frames will not cause distortion after being superimposed.

[0044] If a symmetrical window function is used to process the audio signal, the frame shift is half the frame length, which will cause a large system delay, thereby reducing the filtering and noise reduction efficiency and affecting the real-time interactive experience. Therefore, in this embodiment, an asymmetrical window is used to perform windowing processing on the error signal, so that the signal with a larger intensity after windowing each frame of the error signal is located in the first half or the second half, so that the overlapping part between two adjacent frame signals can be concentrated in a shorter interval, thereby reducing delay and improving filtering and noise reduction efficiency.

[0045] Figure 3 : is a schematic diagram of the time domain waveform of the asymmetric window function provided by the present invention, such as Figure 3 As shown, the blue curve is the time domain waveform curve of the asymmetric analysis window function, and the orange curve is the time domain waveform curve of the asymmetric synthesis window function. The horizontal axis of the curve represents the discrete time points of the audio signal sampling, and the vertical axis represents the function value corresponding to the discrete time points, with a peak value of 1. The frame length of each frame signal is N, and the window length is also N, that is, each frame signal has N discrete time points of audio signal sampling. Figure 3 As shown, the window length of the asymmetric analysis window function is 128, the window length of the asymmetric synthesis window function is 16, the frame shift is 8, and the processing delay is (8+16) / 12000=2ms.

[0046] Here, the windowing process is performed according to the asymmetric analysis window, which is actually to multiply the sampling value at each time point of a frame error signal by the function value at the corresponding time point of the function, so that the error signal of each frame after windowing gradually increases from 0 and then gradually decreases. At the time point of the peak value of the asymmetric analysis window, the error signal after windowing is the same as the original error signal.

[0047] It should be noted that the asymmetric analysis window and the asymmetric synthesis window can be formed by splicing Hanning windows of different lengths.

[0048] Step 240: Perform frequency domain mask-based noise reduction processing on the windowed error signal to obtain a target signal, and play the target signal through a speaker.

[0049] Specifically, after obtaining the error signal after windowing, that is, after the windowing error signal, the windowing error signal is subjected to noise reduction processing based on the frequency domain mask. The windowing error signal can be converted from the time domain to the frequency domain using a short-time Fourier transform (STFT) to obtain a frequency domain representation of the signal. Noise reduction processing based on the frequency domain mask is performed in the frequency domain. According to the characteristics of the noise, the frequency domain mask can be predicted based on a statistical method or a deep learning model (such as a neural network). The frequency domain mask is usually a coefficient matrix less than 1, which is used to suppress the energy of the noise in the frequency domain. The frequency domain signal is multiplied by the frequency domain mask to obtain a frequency domain signal after noise reduction. The frequency domain signal after noise reduction is converted back to the time domain using an inverse short-time Fourier transform (ISTFT) to obtain a target signal after noise reduction.

[0050] The target signal after noise reduction is output to the speaker driving circuit, which converts the digital signal into an analog signal and drives the speaker to play the target signal.

[0051] The method provided by the embodiment of the present invention can accurately eliminate the feedback voice and environmental noise from the speaker to the microphone through block frequency domain filter processing and frequency domain mask-based noise reduction processing, and only retain the voice of the target speaker, thereby effectively preventing the generation of howling and improving the quality of the target signal.

[0052] Based on any of the above embodiments, the filter coefficients of the block frequency domain filter are iteratively updated based on at least one of the following steps: Step 310, determining a variable step size at each frequency point based on the smoothed estimated power spectra of the whitened reference signal and the whitened error signal, and updating the filter coefficient based on the variable step size; Step 320, determining the normalized weight of each block based on the updated weight of each block, and updating the filter coefficient based on the normalized weight; Step 330, determining a smooth gradient of the current frame based on the calculated gradient of the current frame, and updating the filter coefficients based on the smooth gradient; Step 340 , determining the filter coefficients from the cached historical filter coefficients and the updated filter coefficients of the current frame.

[0053] Specifically, the update of the filter coefficients of the block frequency domain filter can be combined with the following update strategy: 1) Whitening the reference signal and the error signal. This can be achieved by using a common signal whitening method, which will not be described in detail in this embodiment. Then, a variable step size at each frequency point is given based on the Wiener solution on the whitened reference signal and the whitened error signal.

[0054] In a specific implementation, the variable step size may be determined by the following formula:

[0055] Where μ(k) is the variable step size at the kth frequency point. represents the smoothed estimated power spectrum vector of the whitened reference signal at the kth frequency point, Represents the smoothed estimated power spectrum vector of the whitened error signal at the kth frequency point, and the division is a pointwise operation.

[0056] 2) Give a normalized weight to each block, and update the filter coefficient based on the normalized weight. In some embodiments, the normalized weight is determined by the following formula:

[0057] Where η(b) represents the normalized weight of the b-th block, W(b) represents the updated weight of the b-th block, B represents the total number of blocks, and W(i) represents the updated weight of the i-th block.

[0058] 3) Based on the calculated gradient of the current frame, determine the smoothed gradient of the current frame. Reduce the noise or jitter in the gradient estimate through some smoothing strategy (such as averaging or weighted averaging). Update the filter coefficients based on the calculated smoothed gradient. By using the smoothed gradient, the filter can adjust its weights more stably and reduce the performance degradation caused by noise or jitter.

[0059] 4) Determine the final filter coefficient from the cached historical filter coefficient and the updated filter coefficient of the current frame. The updated filter coefficient of the current frame can be compared with the historical filter coefficient of the past, and the threshold of a specific parameter is used to compare which filter performance is better. If the filtering performance of the historical filter coefficient is better, the historical filter coefficient is used as the final filter coefficient. If the filtering performance of the updated filter coefficient of the current frame is better, the updated filter coefficient of the current frame is used as the final filter coefficient, and the historical filter coefficient is replaced with the updated filter coefficient of the current frame. It is understandable that the filtering performance of the historical filter coefficient is the best in the historical frame.

[0060] It should be noted that one of steps 310 to 340 may be flexibly selected according to actual conditions, or multiple of them may be selected in combination to update the filter coefficients of the block frequency domain filter, thereby improving the stability of the filter.

[0061] Based on any of the above embodiments, determining the smooth gradient of the current frame based on the calculated gradient of the current frame in step 330 specifically includes: Step 331, determining the clipping gradient of the current frame based on the calculated gradient of the current frame and the smoothed gradient of the historical frames; Step 332: Determine the smooth gradient of the current frame based on the clipping gradient of the current frame.

[0062] Specifically, the smooth gradient of the current frame can be achieved by first limiting and then smoothing. The limited gradient of the current frame is determined based on the calculated gradient of the current frame and the smooth gradient of the historical frame. A suitable gradient limiting threshold can be set, which is used to limit the maximum and minimum values ​​of the gradient to avoid the influence of extreme values ​​on subsequent processing.

[0063] In some embodiments, the clipping gradient of the current frame is implemented based on the following formula:

[0064] In the formula, represents the clipping gradient of the kth frame, represents the calculated gradient of the kth frame, represents the smooth gradient of the k-1th frame, θ 1 and θ 2 is a hyperparameter.

[0065] On this basis, smoothing is performed to obtain the smoothed gradient of the current frame. Common smoothing techniques include Gaussian smoothing, median filtering, etc. Smoothing can reduce calculation errors and noise interference, and improve the stability and reliability of gradient data. After smoothing, the gradient data of the current frame will become smoother and more continuous. The smoothed gradient value is used as the smoothed gradient of the current frame for updating the filter coefficient.

[0066] The smooth gradient of the current frame is obtained based on the following formula:

[0067] In the formula, represents the smooth gradient of the kth frame, represents the clipped gradient of the kth frame, and β is a hyperparameter.

[0068] Based on any of the above embodiments, Figure 4 is one of the flow charts of step 240 in the audio signal processing method provided by the present invention, such as Figure 4As shown, in step 240, the windowed error signal is subjected to a frequency domain mask-based noise reduction process to obtain a target signal, including: Step 241, performing time-frequency conversion on the windowed error signal to obtain a frequency domain error signal; Step 242, performing a frequency domain mask-based noise reduction process on the frequency domain error signal to obtain a frequency domain noise reduction signal, and performing a time-frequency conversion on the frequency domain noise reduction signal to obtain a time domain noise reduction signal; Step 243, using an asymmetric synthesis window to perform a windowing operation on the time domain noise reduction signal to obtain a target signal.

[0069] Here, time-frequency conversion refers to the mutual conversion between time domain signals and frequency domain signals. The time domain signal can be transformed into the frequency domain based on the Fast Fourier Transform (FFT). Alternatively, the time domain signal can be transformed into the frequency domain based on the Short-time Fourier Transform (STFT). Alternatively, the time domain signal can be transformed into the frequency domain based on other Fourier transforms. The frequency domain error signal obtained by the conversion represents the amplitude and phase information of different frequency components in the error signal.

[0070] The frequency domain error signal is then subjected to a frequency domain mask-based denoising process. First, a frequency domain mask is determined, which is an array of the same length as the frequency domain error signal. Each element in the array has a value between 0 and 1, and is used to indicate the degree of denoising of the corresponding frequency component. The frequency domain mask can be calculated using an artificial neural network model or other methods. The frequency domain error signal is multiplied by the frequency domain mask to obtain a denoised frequency domain signal. This operation will reduce or eliminate the amplitude of the frequency component corresponding to the noise in the frequency domain error signal. The frequency domain denoised signal is then converted back to the time domain using an inverse fast Fourier transform (IFFT) or an inverse discrete Fourier transform (IDFT) to obtain a time domain denoised signal.

[0071] Here, an asymmetric synthesis window is used to perform windowing processing on the above time domain noise reduction signal to obtain the target signal. The curve and description of the asymmetric synthesis window can be referred to Figure 3 .

[0072] Based on any of the above embodiments, Figure 5 FIG. 2 is a second flow chart of step 240 in the audio signal processing method provided by the present invention. Figure 5 As shown, in step 242, the frequency domain error signal is subjected to denoising based on the frequency domain mask to obtain a frequency domain denoised signal, including: Step 242-1, extracting equivalent rectangular bandwidth features and complex features of the frequency domain error signal; Step 242-2, performing frequency domain mask prediction on the equivalent rectangular bandwidth feature to obtain a frequency domain mask, and obtaining an envelope noise reduction signal based on the frequency domain mask and the frequency domain error signal; Step 242-3, performing denoising processing on the complex features in the complex domain to obtain a periodic denoised signal; Step 242 - 4 , obtaining a frequency domain denoised signal based on the envelope denoised signal and the periodic denoised signal.

[0073] Specifically, Figure 6 FIG. 3 is a flow chart of step 240 in the audio signal processing method provided by the present invention. Figure 6 As shown, the extraction of frequency domain denoised signals can be achieved through a trained neural network model.

[0074] The equivalent rectangular bandwidth is a psychoacoustic measurement method used to approximate the bandwidth filtering of human hearing. For the frequency domain error signal, its power spectral density (PSD) can be calculated first, and then the equivalent rectangular bandwidth can be approximated based on the PSD to obtain the equivalent bandwidth characteristics.

[0075] The frequency domain error signal itself is in complex form, containing amplitude and phase information. Complex features can include the amplitude spectrum, phase spectrum, real part and imaginary part of the signal. Complex features can be directly extracted or calculated from the frequency domain error signal.

[0076] Then, a machine learning model (such as a neural network, decision tree, etc.) or a statistical model is used to predict the frequency domain mask based on the extracted ERB features. The frequency domain mask is an array of the same length as the frequency domain error signal, which indicates the extent to which each frequency component should be retained or suppressed in the noise reduction process. The training of the model requires the use of a labeled data set, and the label can be a manually annotated frequency domain mask or a mask automatically generated according to a certain standard. The value of the frequency domain mask is usually between 0 and 1, where 0 means complete suppression and 1 means complete retention. The frequency domain mask is multiplied by the frequency domain error signal to suppress or retain different frequency components in the error signal. This operation will produce a new frequency domain signal, namely the envelope denoised signal, in which the frequency components corresponding to the noise are suppressed, while the components corresponding to the useful signal are retained or enhanced.

[0077] Considering that the complex features contain the amplitude and phase information of the signal, the denoising process needs to be performed in the complex domain. Various denoising algorithms in the complex domain can be used, such as complex Wiener filtering, complex wavelet denoising, etc. The statistical or structural characteristics of the complex signal are used to separate the noise and the useful signal to obtain a periodic denoised signal. The periodic noise in the periodic denoised signal is suppressed, while the periodic components of the useful signal are retained or enhanced.

[0078] Finally, the envelope denoising signal and the periodic denoising signal are fused to obtain the final frequency domain denoising signal. The fusion method can be a simple addition or weighted average, or a more complex fusion algorithm designed according to the signal characteristics. The final frequency domain denoising signal retains the frequency components of the useful signal and suppresses the frequency components of the noise, thereby improving the quality of the signal.

[0079] Based on any of the above embodiments, Figure 7 FIG. 4 is a flow chart of step 240 in the audio signal processing method provided by the present invention. Figure 7 As shown, the frequency domain mask prediction is performed on the equivalent rectangular bandwidth feature to obtain the frequency domain mask, including: Based on the feedforward sequence memory network, the local features of the equivalent rectangular bandwidth features are extracted; Based on the gated recurrent unit, the global features of equivalent rectangular bandwidth features are extracted; Based on local features and global features, frequency domain mask prediction is performed to obtain a frequency domain mask.

[0080] Specifically, for the prediction of the frequency domain mask with the greatest impact, in order to ensure the effect while minimizing the amount of calculation, two branches are used. One is the FSMN (Feed-forward Sequential Memory Network) convolutional network that processes frame by frame to extract relatively local features, namely local features. The other is the Gate Recurrent Unit (GRU) network that calculates once every 4 frames to extract more global features, namely global features.

[0081] The GroupGRU groups the feature channels and uses GRU separately, and uses channel shuffle between the two layers of GRU to ensure sufficient interaction and save computational effort. These features are integrated and predicted to obtain the frequency domain mask.

[0082] In addition, in order to minimize the amount of model computation and ensure low latency, the structures of the deep feedback network (DFnet) and deepfilter were simplified, some convolutions and GRUs were deleted, the hidden layer dimension was reduced, and GroupGRU was used instead.

[0083] Based on any of the above embodiments, a method for processing an audio signal is provided, including: S1, obtain the reference signal and the microphone input signal.

[0084] S2, processing the reference signal through a block frequency domain filter to obtain an estimated signal, and obtaining an error signal based on the estimated signal and the input signal.

[0085] The filter coefficients of the block frequency domain filter are iteratively updated based on at least one of the following steps: Determine the variable step size at each frequency point based on the smoothed estimated power spectrum of the whitened reference signal and the whitened error signal, and update the filter coefficient based on the variable step size; Based on the update weight of each block, the normalized weight of each block is determined, and the filter coefficient is updated based on the normalized weight; based on the calculated gradient of the current frame and the smoothed gradient of the historical frame, the clipping gradient of the current frame is determined; based on the clipping gradient of the current frame, the smoothed gradient of the current frame is determined, and the filter coefficient is updated based on the smoothed gradient; The filter coefficients are determined from the cached historical filter coefficients and the updated filter coefficients for the current frame.

[0086] S3, using an asymmetric analysis window to perform a windowing operation on the error signal to obtain a windowed error signal.

[0087] S4, performing time-frequency conversion on the windowed error signal to obtain a frequency domain error signal.

[0088] S5, performing frequency domain mask-based denoising processing on the frequency domain error signal to obtain a frequency domain denoised signal. Specifically comprising: extracting the equivalent rectangular bandwidth features and complex features of the frequency domain error signal. Performing frequency domain mask prediction on the equivalent rectangular bandwidth features to obtain a frequency domain mask, and obtaining an envelope denoised signal based on the frequency domain mask and the frequency domain error signal. Performing denoising processing on the complex features in the complex domain to obtain a periodic denoised signal. Based on the envelope denoised signal and the periodic denoised signal, a frequency domain denoised signal is obtained.

[0089] Among them, the frequency domain mask is predicted for the equivalent rectangular bandwidth feature to obtain the frequency domain mask, including: extracting the local features of the equivalent rectangular bandwidth feature based on a feedforward sequence memory network; extracting the global features of the equivalent rectangular bandwidth feature based on a gated recurrent unit; and performing frequency domain mask prediction based on the local features and the global features to obtain the frequency domain mask.

[0090] S7, performing time-frequency conversion on the frequency domain noise reduction signal to obtain a time domain noise reduction signal.

[0091] S8, using an asymmetric synthesis window to perform a windowing operation on the time domain noise reduction signal to obtain a target signal, and playing the target signal through a speaker.

[0092] The audio signal processing device provided by the present invention is described below. The audio signal processing device described below and the audio signal processing method described above can be referred to each other.

[0093] Based on any of the above embodiments, Figure 8 is a structural diagram of the audio signal processing device provided by the present invention, such as Figure 8 As shown, the device comprises: A signal acquisition unit 810, configured to acquire a reference signal and an input signal from a microphone; A filtering processing unit 820 is used to process the reference signal through a block frequency domain filter to obtain an estimated signal, and obtain an error signal based on the estimated signal and the input signal; A windowing operation unit 830, configured to perform a windowing operation on the error signal using an asymmetric analysis window to obtain a windowed error signal; The noise reduction processing unit 840 is used to perform noise reduction processing based on frequency domain mask on the windowed error signal to obtain a target signal, and play the target signal through a speaker.

[0094] The device provided by the embodiment of the present invention can accurately eliminate the feedback voice and environmental noise from the speaker to the microphone through block frequency domain filter processing and frequency domain mask-based noise reduction processing, and only retain the voice of the target speaker, thereby effectively preventing the generation of howling and improving the quality of the target signal.

[0095] Based on any of the above embodiments, it also includes a filter coefficient updating unit, which is used for at least one of the following steps: determining a variable step size at each frequency point based on the smoothed estimated power spectrum of the whitened reference signal and the whitened error signal, and updating the filter coefficient based on the variable step size; Determining a normalized weight of each block based on the updated weight of each block, and updating the filter coefficient based on the normalized weight; Determining a smooth gradient of the current frame based on a calculated gradient of the current frame, and updating the filter coefficient based on the smooth gradient; The filter coefficients are determined from cached historical filter coefficients and updated filter coefficients of the current frame.

[0096] Based on any of the above embodiments, the filter coefficient updating unit is further used for: Determining a clipping gradient of the current frame based on a calculated gradient of the current frame and a smoothed gradient of a historical frame; Based on the clipping gradient of the current frame, a smoothing gradient of the current frame is determined.

[0097] Based on any of the above embodiments, the noise reduction processing unit is specifically used for: Performing time-frequency conversion on the windowed error signal to obtain a frequency domain error signal; Performing a frequency domain mask-based noise reduction process on the frequency domain error signal to obtain a frequency domain noise reduction signal, and performing a time-frequency conversion on the frequency domain noise reduction signal to obtain a time domain noise reduction signal; An asymmetric synthesis window is used to perform a windowing operation on the time domain noise reduction signal to obtain the target signal.

[0098] Based on any of the above embodiments, the noise reduction processing unit is further specifically used for: Extracting equivalent rectangular bandwidth features and complex features of the frequency domain error signal; Performing frequency domain mask prediction on the equivalent rectangular bandwidth feature to obtain the frequency domain mask, and obtaining an envelope noise reduction signal based on the frequency domain mask and the frequency domain error signal; Performing denoising processing on the complex features in a complex domain to obtain a periodic denoised signal; The frequency domain noise reduction signal is obtained based on the envelope noise reduction signal and the periodic noise reduction signal.

[0099] Based on any of the above embodiments, the noise reduction processing unit is further specifically used for: Extracting local features of the equivalent rectangular bandwidth features based on a feedforward sequence memory network; Extracting the global feature of the equivalent rectangular bandwidth feature based on a gated recurrent unit; Based on the local features and the global features, frequency domain mask prediction is performed to obtain the frequency domain mask.

[0100] Based on any of the above embodiments, Fig. 9 Schematic diagram of the structure of the in-vehicle entertainment system provided by the present invention. Fig. 9 As shown, the in-vehicle entertainment system includes a microphone 910 and a speaker 920 disposed on the vehicle, and an audio signal processing device 930 connected to the microphone and the speaker; A microphone, used to collect audio signals inside and outside the vehicle and use the audio signals as input signals; An audio signal processing device is used to obtain a reference signal and an input signal, process the reference signal through a block frequency domain filter to obtain an estimated signal, and obtain an error signal based on the estimated signal and the input signal; perform a windowing operation on the error signal using an asymmetric analysis window to obtain a windowed error signal; and perform a frequency domain mask-based noise reduction process on the windowed error signal to obtain a target signal; A loudspeaker for playing the target signal.

[0101] Specifically, the in-vehicle entertainment system can be used for passengers to entertain themselves during the ride, such as singing karaoke, reciting poems, etc. The system can reuse the voice interaction microphone in the car, without the need for a handheld microphone, and can realize entertainment activities at any position in the car.

[0102] Taking the karaoke scene as an example, the input signal of the microphone includes: a) the feedback coupling component from the speaker to the microphone through the feedback path. This component has a greater impact. In severe cases, the system will become unstable and produce howling. b) The ambient noise in the car, including engine noise, tire noise, wind noise, etc. In addition, there are various possible non-stationary noises such as horns and suspension shocks. c) The singing voice of the passenger, which is the input that needs to be enhanced.

[0103] In order to deal with the howling problem and improve the quality of the microphone output signal, an embodiment of the present invention also provides an audio signal processing device. The device can accurately eliminate the feedback voice and environmental noise from the speaker to the microphone through block frequency domain filter processing and frequency domain mask-based noise reduction processing, and only retain the target speaker's voice, thereby effectively preventing the generation of howling, improving the target signal, that is, improving the voice quality output by the speaker, and enhancing the user experience.

[0104] Fig.10 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.10 As shown, the electronic device may include: a processor 1010, a communication interface 1020, a memory 1030 and a communication bus 1040, wherein the processor 1010, the communication interface 1020 and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 may call the logic instructions in the memory 1030 to execute the audio signal processing method, which includes: obtaining a reference signal and an input signal of a microphone; processing the reference signal through a block frequency domain filter to obtain an estimated signal, and obtaining an error signal based on the estimated signal and the input signal; performing a windowing operation on the error signal using an asymmetric analysis window to obtain a windowed error signal; performing a noise reduction process based on a frequency domain mask on the windowed error signal to obtain a target signal, and playing the target signal through a speaker.

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

[0106] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the audio signal processing method provided by the above-mentioned methods, which includes: obtaining a reference signal and an input signal of a microphone; processing the reference signal through a block frequency domain filter to obtain an estimated signal, and obtaining an error signal based on the estimated signal and the input signal; performing a windowing operation on the error signal using an asymmetric analysis window to obtain a windowed error signal; performing a frequency domain mask-based noise reduction process on the windowed error signal to obtain a target signal, and playing the target signal through a speaker.

[0107] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the audio signal processing method provided by the above-mentioned methods, the method comprising: obtaining a reference signal and an input signal of a microphone; processing the reference signal through a block frequency domain filter to obtain an estimated signal, and obtaining an error signal based on the estimated signal and the input signal; performing a windowing operation on the error signal using an asymmetric analysis window to obtain a windowed error signal; performing a frequency domain mask-based noise reduction operation on the windowed error signal to obtain a target signal, and playing the target signal through a speaker.

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

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

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

Claims

1. An audio signal processing method, characterized in that: include: Obtaining a reference signal and an input signal from a microphone; Processing the reference signal through a block frequency domain filter to obtain an estimated signal, and obtaining an error signal based on the estimated signal and the input signal; Performing a windowing operation on the error signal using an asymmetric analysis window to obtain a windowed error signal; The windowed error signal is subjected to a frequency domain mask-based noise reduction process to obtain a target signal, and the target signal is played through a loudspeaker.

2. The audio signal processing method according to claim 1, characterized in that: The filter coefficients of the block frequency domain filter are iteratively updated based on at least one of the following steps: Determining a variable step size at each frequency point based on a smoothed estimated power spectrum of a whitened reference signal and a whitened error signal, and updating the filter coefficient based on the variable step size; Determining a normalized weight of each block based on the updated weight of each block, and updating the filter coefficient based on the normalized weight; Determining a smooth gradient of the current frame based on a calculated gradient of the current frame, and updating the filter coefficient based on the smooth gradient; The filter coefficients are determined from cached historical filter coefficients and updated filter coefficients of the current frame.

3. The audio signal processing method according to claim 2, characterized in that: The step of determining the smooth gradient of the current frame based on the calculated gradient of the current frame includes: Determining a clipping gradient of the current frame based on a calculated gradient of the current frame and a smoothed gradient of a historical frame; Based on the clipping gradient of the current frame, a smoothing gradient of the current frame is determined.

4. The audio signal processing method according to claim 1, characterized in that: The step of performing frequency domain mask-based noise reduction processing on the windowed error signal to obtain a target signal includes: Performing time-frequency conversion on the windowed error signal to obtain a frequency domain error signal; Performing a frequency domain mask-based noise reduction process on the frequency domain error signal to obtain a frequency domain noise reduction signal, and performing a time-frequency conversion on the frequency domain noise reduction signal to obtain a time domain noise reduction signal; An asymmetric synthesis window is used to perform a windowing operation on the time domain noise reduction signal to obtain the target signal.

5. The audio signal processing method according to claim 4, characterized in that: The performing a frequency domain mask-based noise reduction process on the frequency domain error signal to obtain a frequency domain noise reduction signal includes: Extracting equivalent rectangular bandwidth features and complex features of the frequency domain error signal; Performing frequency domain mask prediction on the equivalent rectangular bandwidth feature to obtain the frequency domain mask, and obtaining an envelope noise reduction signal based on the frequency domain mask and the frequency domain error signal; Performing denoising processing on the complex features in a complex domain to obtain a periodic denoised signal; The frequency domain noise reduction signal is obtained based on the envelope noise reduction signal and the periodic noise reduction signal.

6. The audio signal processing method according to claim 5, characterized in that: The performing frequency domain mask prediction on the equivalent rectangular bandwidth feature to obtain the frequency domain mask includes: Extracting local features of the equivalent rectangular bandwidth features based on a feedforward sequence memory network; Extracting the global feature of the equivalent rectangular bandwidth feature based on a gated recurrent unit; Based on the local features and the global features, frequency domain mask prediction is performed to obtain the frequency domain mask.

7. An audio signal processing device, characterized in that: include: A signal acquisition unit, used for acquiring a reference signal and an input signal of a microphone; A filtering processing unit, configured to process the reference signal through a block frequency domain filter to obtain an estimated signal, and obtain an error signal based on the estimated signal and the input signal; A windowing operation unit, used for performing a windowing operation on the error signal using an asymmetric analysis window to obtain a windowed error signal; The noise reduction processing unit is used to perform noise reduction processing based on frequency domain mask on the windowed error signal to obtain a target signal, and play the target signal through a speaker.

8. An in-vehicle entertainment system, characterized in that: The invention comprises a microphone and a speaker arranged on a vehicle, and an audio signal processing device connected to the microphone and the speaker; The microphone is used to collect audio signals inside and outside the vehicle and use the audio signals as input signals; The audio signal processing device is used to obtain a reference signal and the input signal, process the reference signal through a block frequency domain filter to obtain an estimated signal, and obtain an error signal based on the estimated signal and the input signal; and perform a windowing operation on the error signal using an asymmetric analysis window to obtain a windowed error signal; Performing frequency domain mask-based noise reduction processing on the windowed error signal to obtain a target signal; The loudspeaker is used to play the target signal.

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

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

Citation Information

Cited By

  • Unstability detection method and system, active noise reduction system and control method thereof

    CN119323950A

  • Instability detection method and system, active noise reduction system and control method thereof

    CN119323950B

  • Speech enhancement method, device, equipment, medium and program product

    CN119943072A

  • Loudspeaker speech enhancement method and device, electronic equipment and storage medium

    CN120564744A

  • Loudspeaker voice enhancement method and device, electronic equipment and storage medium

    CN120564744B