Audio signal processing method and device, and storage medium
By removing the steady-state noise component and performing time-frequency conversion based on the frequency domain estimated signal, the problem of difficulty in separating the noise component and the pure signal in audio signal denoising processing in the existing technology is solved, and the noise reduction effect and signal quality are improved.
Patent Information
- Application Number
- CN202010796977.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-10
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-08-10
AI Technical Summary
It is difficult to effectively separate noise components and pure signals in audio signal noise reduction processing using existing technologies, resulting in poor noise reduction results. In particular, steady-state noise affects the accuracy of the posterior signal-to-noise ratio.
By obtaining the noisy frequency power spectrum and the noise power spectrum, the steady-state noise component is removed respectively, the frequency domain estimated signal is determined, and time-frequency conversion is performed to obtain the noise-reduced audio signal. Specific steps include performing band-pass filtering and time smoothing on the noisy frequency power spectrum, determining the steady-state noise component, and calculating the frequency domain estimated signal based on the posterior signal-to-noise ratio and the prior signal-to-noise ratio.
The deviation between the noise reduction audio signal and the ideal pure speech signal is reduced, the noise reduction effect is improved, and the signal quality is improved.
Smart Images

Figure CN111968662B
Abstract
Description
Technical Field
[0001] The present disclosure relates to signal processing technology, and in particular to a method and device for processing an audio signal, and a storage medium. Background Art
[0002] With the continuous development of communication technology and Internet technology, the processing of multimedia information has become an important research direction in information communication. In order to achieve clearer and higher-quality communication or data transmission, it is necessary to perform noise reduction processing on the audio signal. Noise reduction processing can usually be done by filtering to remove the noise component in the signal, thereby improving the signal quality. However, in the process of noise reduction processing, it is often difficult to separate the noise component in the signal from the pure audio signal, so the noise reduction effect is difficult to meet the increasingly high user needs. Summary of the invention
[0003] The present disclosure provides a method and device for processing an audio signal, and a storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a method for processing an audio signal is provided, comprising:
[0005] Obtain the noisy frequency power spectrum and noise power spectrum to be processed;
[0006] Determine a first noise component according to the power characteristics of the noisy frequency spectrum at each frequency point; wherein the first noise component is a steady-state noise component included in both the noisy frequency spectrum and the noise power spectrum;
[0007] Subtracting the first noise component from the noisy frequency power spectrum to obtain a noisy frequency component;
[0008] Subtracting the first noise component from the noise power spectrum to obtain a second noise component;
[0009] Determine a frequency domain estimation signal according to the noisy frequency component and the second noise component;
[0010] A time-frequency conversion is performed based on the frequency domain estimation signal to obtain a noise-reduced frequency signal.
[0011] In some embodiments, determining the first noise component according to the power characteristics of the noisy frequency power spectrum at each frequency point includes:
[0012] Performing bandpass filtering on the noisy frequency power spectrum within a predetermined frequency band to obtain a frequency smoothed power spectrum;
[0013] According to the time smoothing parameter, the frequency smoothed power spectrum is smoothed to obtain a time smoothed power spectrum;
[0014] The first noise component is determined according to the frequency points that meet the power spectrum density condition in the time-smoothed power spectrum at each frequency point.
[0015] In some embodiments, determining the first noise component according to the frequency points satisfying the power spectrum density condition in the time-smoothed power spectrum at each frequency point includes:
[0016] For each frame in the time domain, according to the noisy frequency power spectrum after filtering at each frequency point, determine the frequency point of the minimum power spectrum density of each frame to obtain the minimum frequency point of each frame;
[0017] A frequency point with minimum power spectrum density is selected from the minimum frequency points of each frame in the time domain as the first noise component.
[0018] In some embodiments, determining the frequency domain estimation signal according to the noisy frequency component and the second noise component includes:
[0019] Determining a posterior signal-to-noise ratio according to the noisy frequency component and the second noise component;
[0020] Determining a priori signal-to-noise ratio according to the a posteriori signal-to-noise ratio;
[0021] The frequency domain estimation signal is determined according to the priori signal-to-noise ratio and the noisy frequency power spectrum to be processed.
[0022] In some embodiments, determining the a priori signal-to-noise ratio according to the a posteriori signal-to-noise ratio includes:
[0023] The a priori signal-to-noise ratio of the current frame is determined according to the a posteriori signal-to-noise ratio of the current frame and the a posteriori signal-to-noise ratio of the previous frame.
[0024] In some embodiments, determining the a priori signal-to-noise ratio of the current frame according to the a posteriori signal-to-noise ratio of the current frame and the a posteriori signal-to-noise ratio of the previous frame includes:
[0025] The a priori signal-to-noise ratio of the current frame is determined according to the a priori signal-to-noise ratio of the current frame with a first weight and the a priori signal-to-noise ratio of the previous frame with a second weight; wherein the first weight is determined according to the a priori signal-to-noise ratio and a predetermined smoothing coefficient; and the second weight is determined according to the smoothing coefficient.
[0026] In some embodiments, determining the frequency domain estimation signal according to the priori signal-to-noise ratio and the noisy frequency power spectrum to be processed includes:
[0027] Determining a gain function according to the priori signal-to-noise ratio;
[0028] The noisy frequency power spectrum to be processed is multiplied by the gain function to obtain the frequency domain estimation signal.
[0029] In some embodiments, the method further comprises:
[0030] Obtaining the audio signal to be processed;
[0031] Performing time-frequency conversion on the audio signal to obtain a frequency-domain noisy signal;
[0032] The noisy frequency spectrum to be processed is determined according to the frequency domain noisy signal.
[0033] According to a second aspect of an embodiment of the present disclosure, there is provided an audio signal processing device, including:
[0034] A first acquisition module is used to acquire a noisy frequency power spectrum and a noise power spectrum to be processed;
[0035] A first determination module is used to determine a first noise component according to power characteristics of the noisy frequency spectrum at each frequency point; wherein the first noise component is a steady-state noise component included in both the noisy frequency power spectrum and the noise power spectrum;
[0036] A first calculation module, configured to subtract the first noise component from the noisy frequency power spectrum to obtain a noisy frequency component;
[0037] A second calculation module, configured to subtract the first noise component from the noise power spectrum to obtain a second noise component;
[0038] A second determination module, configured to determine a frequency domain estimation signal according to the noisy frequency component and the second noise component;
[0039] The first conversion module is used to perform time-frequency conversion based on the frequency domain estimation signal to obtain a noise reduction frequency signal.
[0040] In some embodiments, the first determining module includes:
[0041] A filtering submodule, used for performing a bandpass filtering process on the noisy frequency power spectrum within a predetermined frequency band to obtain a frequency smoothed power spectrum;
[0042] A smoothing submodule, used for smoothing the frequency smoothed power spectrum according to a time smoothing parameter to obtain a time smoothed power spectrum;
[0043] The first determination submodule is used to determine the first noise component according to the frequency points that meet the power spectrum density condition in the time smoothed power spectrum at each frequency point.
[0044] In some embodiments, the first determining submodule is specifically configured to:
[0045] For each frame in the time domain, according to the noisy frequency power spectrum after filtering at each frequency point, determine the frequency point of the minimum power spectrum density of each frame to obtain the minimum frequency point of each frame;
[0046] A frequency point with minimum power spectrum density is selected from the minimum frequency points of each frame in the time domain as the first noise component.
[0047] In some embodiments, the second determining module includes:
[0048] A second determination submodule, configured to determine a posterior signal-to-noise ratio according to the noisy frequency component and the second noise component;
[0049] A third determination submodule, configured to determine a priori signal-to-noise ratio according to the a posteriori signal-to-noise ratio;
[0050] The fourth determination submodule is used to determine the frequency domain estimation signal according to the priori signal-to-noise ratio and the frequency domain noisy signal to be processed.
[0051] In some embodiments, the third determining submodule is specifically used to:
[0052] The a priori signal-to-noise ratio of the current frame is determined according to the a posteriori signal-to-noise ratio of the current frame and the a posteriori signal-to-noise ratio of the previous frame.
[0053] In some embodiments, the third determining submodule is specifically used to:
[0054] The a priori signal-to-noise ratio of the current frame is determined according to the a priori signal-to-noise ratio of the current frame with a first weight and the a priori signal-to-noise ratio of the previous frame with a second weight; wherein the first weight is determined according to the a priori signal-to-noise ratio and a predetermined smoothing coefficient; and the second weight is determined according to the smoothing coefficient.
[0055] In some embodiments, the fourth determining submodule is specifically configured to:
[0056] Determining a gain function according to the priori signal-to-noise ratio;
[0057] The noisy frequency power spectrum to be processed is multiplied by the gain function to obtain the frequency domain estimation signal.
[0058] In some embodiments, the apparatus further comprises:
[0059] A second acquisition module, used to acquire an audio signal to be processed;
[0060] A second conversion module, used for performing time-frequency conversion on the audio signal to obtain a frequency domain noisy signal;
[0061] The third determination module is used to determine the noisy frequency power spectrum to be processed according to the frequency domain noisy signal.
[0062] According to a third aspect of an embodiment of the present disclosure, there is provided an audio signal processing device, comprising at least: a processor and a memory for storing executable instructions that can be run on the processor, wherein:
[0063] When the processor is used to run the executable instructions, the executable instructions execute the steps in any one of the above-mentioned audio signal processing methods.
[0064] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the steps in any of the above-mentioned audio signal processing methods.
[0065] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: through the technical solution of the embodiments of the present disclosure, the common steady-state noise component of the noisy audio power spectrum and the noise power spectrum is removed, and then the audio signal is subjected to noise reduction processing. Compared with the method of directly estimating the noise based on the posterior signal-to-noise ratio and performing noise reduction, the processing deviation caused by the steady-state noise contained in both the audio signal and the noise is taken into account, and the pure noise-reduced audio power spectrum is determined by using the noisy audio power spectrum and the noise power spectrum after removing the steady-state noise respectively, thereby reducing the deviation between the noise-reduced audio signal and the ideal pure speech signal, thereby improving the noise reduction effect.
[0066] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0068] Figure 1 A method for processing an audio signal according to an exemplary embodiment is shown in FIG. Figure 1 ;
[0069] Figure 2 A method for processing an audio signal according to an exemplary embodiment is shown in FIG. Figure 2 ;
[0070] Figure 3 A method for processing an audio signal according to an exemplary embodiment is shown in FIG. Figure 3 ;
[0071] Figure 4 is a structural block diagram of an audio signal processing device according to an exemplary embodiment;
[0072] Figure 5 The figure is a block diagram of a physical structure of an audio signal processing device according to an exemplary embodiment. DETAILED DESCRIPTION
[0073] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0074] Figure 1 is a flowchart of a method for processing an audio signal according to an exemplary embodiment. Figure 1 As shown, the method comprises the following steps:
[0075] Step S101, obtaining a noisy frequency power spectrum and a noise power spectrum to be processed;
[0076] Step S102: determining a first noise component according to power characteristics of the noisy frequency power spectrum at each frequency point; wherein the first noise component is a steady-state noise component included in both the noisy frequency power spectrum and the noise power spectrum;
[0077] Step S103, subtracting the first noise component from the noisy frequency power spectrum to obtain a noisy frequency component;
[0078] Step S104, subtracting the first noise component from the noise power spectrum to obtain a second noise component;
[0079] Step S105, determining a frequency domain estimation signal according to the noisy frequency component and the second noise component;
[0080] Step S106: performing time-frequency conversion based on the frequency domain estimation signal to obtain a noise-reduced frequency signal.
[0081] The above method of the embodiment of the present disclosure can be applied to a terminal, which can be an electronic device with an audio acquisition component (such as a microphone), including: a mobile phone, a laptop computer, a camera, a wearable electronic device, and various electronic devices with human-computer interaction capabilities, etc. It can also be an electronic device with an audio file processing function, such as a computer and an audio device that do not have an audio acquisition function but can process audio files.
[0082] The processing of the audio signal is to process the audio signal at the terminal to obtain a noise-reduced audio signal with higher signal quality and most noise removed. After the terminal processes the audio signal to obtain the above-mentioned noise-reduced audio signal, the noise-reduced audio signal can be transmitted to a predetermined device, such as a multimedia playback device such as a speaker or a television, or can be played using the terminal's own playback function. Of course, the above-mentioned noise-reduced audio signal can also be encoded and processed to form an audio file that is easy to transmit or store.
[0083] In the disclosed embodiment, the noisy audio power spectrum is the power spectrum density of the original noisy audio signal at each frequency point, which is used to reflect the energy of the audio signal at each frequency point. The noise power spectrum can be obtained by noise detection, and the noise signal is obtained by detecting the ambient noise when there is no speech, and then the power spectrum density of the noise at each frequency point is determined.
[0084] Since noise includes steady-state noise and non-steady-state noise, steady-state noise refers to continuous noise with a fluctuation range less than a predetermined volume, or pulse noise with a repetition frequency greater than a predetermined frequency. For example, continuous noise with a fluctuation range of less than 5dB (decibel), or pulse noise with a repetition frequency greater than 10Hz. The original noisy frequency signal and the detected noise both contain approximately the same steady-state noise component, and the steady-state noise is usually concentrated in a certain frequency range. Therefore, when using the frequency domain signal to estimate the a posteriori signal-to-noise ratio, it will be affected by the frequency domain component of the steady-state noise, making the estimation of the a posteriori signal-to-noise ratio inaccurate, thereby affecting the accuracy of the noise reduction process.
[0085] Therefore, in the disclosed embodiment, the steady-state noise can be estimated according to the noisy audio power spectrum to obtain the above-mentioned first noise component, and then the first noise component representing the steady-state noise can be extracted from the noisy audio power spectrum and the noise power spectrum respectively. For example, according to the frequency points in the noisy audio power spectrum that meet the characteristics of the steady-state noise, the frequency points corresponding to the steady-state noise can be estimated. Then, based on the noisy frequency component and the second noise component after removing the first noise component, the pure audio part in the original audio signal is estimated, that is, the noise reduction processing of the original noisy audio signal is realized, thereby obtaining the above-mentioned noise-reduced audio signal.
[0086] In this way, the technical solution of the embodiment of the present disclosure first estimates the steady-state noise based on the original noisy audio signal, and then determines the noise-reduced audio signal using the signal component and the noise component after the steady-state noise is removed. This can reduce the processing deviation of the steady-state noise on the noise estimation in the signal, thereby improving the noise reduction effect and making the noise-reduced audio signal have higher signal quality.
[0087] In some embodiments, Figure 2As shown, in the above step S102, determining the first noise component according to the power characteristics of the noisy frequency power spectrum at each frequency point includes:
[0088] Step S201, performing bandpass filtering on the noisy frequency power spectrum within a predetermined frequency band to obtain a frequency smoothed power spectrum;
[0089] Step S202: Smoothing the frequency smoothed power spectrum according to a time smoothing parameter to obtain a time smoothed power spectrum;
[0090] Step S203: Determine the first noise component according to the frequency points that meet the power spectrum density condition in the time-smoothed power spectrum at each frequency point.
[0091] In the embodiment of the present disclosure, the process of determining the first noise component is a process of estimating the steady-state noise according to the original noisy frequency signal.
[0092] Since steady-state noise has the characteristic of small variation, the audio of steady-state noise is concentrated in a certain frequency range and has low energy, while the audio signal in speech does not always maintain a continuous and unchanged frequency. Therefore, the frequency points that meet the above power spectrum density conditions in the noise-band frequency power spectrum can be used as the estimated frequency points of steady-state noise. Here, the power spectrum density condition can be: the frequency point whose power is less than a predetermined threshold, for example, the frequency point of the signal below the power corresponding to the normal volume of the speech signal, or the frequency point with the minimum power within a predetermined frequency band, or the frequency point with the minimum power in the full frequency band where the audio signal is located. In practical applications, the above conditions can be determined according to the actual characteristics of the steady-state noise in the environment.
[0093] In the disclosed embodiment, in the process of estimating the steady-state noise, the noisy frequency power spectrum may be firstly subjected to bandpass filtering within a predetermined frequency band. That is, a window function of a predetermined length is used for windowing processing to achieve smoothing of the noisy frequency power spectrum in the frequency dimension, thereby obtaining the above frequency smoothed power spectrum. Then, the frequency smoothed power spectrum is smoothed in the time dimension, thereby removing the jump points in the noisy frequency power spectrum.
[0094] By determining the frequency points satisfying the power spectrum density condition in the time-smoothed power spectrum obtained after the above smoothing process, the estimation deviation caused by signal jumps in the audio signal can be reduced, thereby obtaining a first noise component that is closer to the actual steady-state noise.
[0095] In some embodiments, determining the first noise component according to the frequency points satisfying the power spectrum density condition in the time-smoothed power spectrum at each frequency point includes:
[0096] For each frame in the time domain, according to the noisy frequency power spectrum after filtering at each frequency point, determine the frequency point of the minimum power spectrum density of each frame to obtain the minimum frequency point of each frame;
[0097] A frequency point with minimum power spectrum density is selected from the minimum frequency points of each frame in the time domain as the first noise component.
[0098] In the embodiment of the present disclosure, the frequency point with the minimum power spectrum density can be found from the noisy frequency power spectrum by means of minimum value search, and used as the first noise component.
[0099] When searching, each frame in the time domain can be searched separately, so that the processing can be performed according to the time sequence, and then the frequency point with the minimum power spectrum density can be selected from the minimum frequency points of each frame at intervals, so as to find the frequency point with the minimum power spectrum density in the entire audio signal. In this way, as time goes by, the frequency point with the minimum power spectrum density is found from the audio signal, so as to more accurately estimate the steady-state noise and reduce the non-steady-state noise and audio signal contained in the first noise component.
[0100] In some embodiments, determining the frequency domain estimation signal according to the noisy frequency component and the second noise component includes:
[0101] Determining a posterior signal-to-noise ratio according to the noisy frequency component and the second noise component;
[0102] Determining a priori signal-to-noise ratio according to the a posteriori signal-to-noise ratio;
[0103] The frequency domain estimation signal is determined according to the priori signal-to-noise ratio and the noisy frequency power spectrum to be processed.
[0104] The a posteriori signal-to-noise ratio is the ratio of the power spectrum of the original noisy frequency signal obtained to the power spectrum of the noise. In the disclosed embodiment, the a posteriori signal-to-noise ratio is the noisy frequency component after the steady-state noise is removed from the power spectrum of the original noisy frequency signal. The power spectrum of the original noisy signal can be obtained by calculating the power of each frequency point of the frequency domain signal of the original noisy frequency signal, and the noise power spectrum can be obtained by calculating the power of each frequency point of the frequency domain signal of the noise signal obtained by noise detection. Then, the first noise component is subtracted respectively to remove the steady-state noise. The ratio of the noisy frequency component to the second noise component obtained in this way is the above-mentioned a posteriori signal-to-noise ratio.
[0105] The a priori signal-to-noise ratio is the ratio of the pure speech signal to the noise component contained in the original audio signal. Since the audio signals acquired by the terminal are all noisy signals, it is impossible to directly obtain the ideal pure speech signal. Therefore, the a priori signal-to-noise ratio can be estimated based on the above-mentioned a posteriori signal-to-noise ratio. The original noisy signal is processed according to the estimated a priori signal-to-noise ratio to achieve noise reduction of the audio signal. That is, the product of the a priori signal-to-noise ratio and the noisy frequency power spectrum to be processed is used as the frequency domain signal after noise reduction processing. Since the a priori signal-to-noise ratio is an estimated signal-to-noise ratio parameter, the frequency domain signal after noise reduction processing is also an estimated signal, that is, a frequency domain estimated signal.
[0106] In this way, the original noisy signal can be subjected to noise reduction processing based on the processing of the original noisy signal and the noise, thereby obtaining an audio signal that is as close to pure speech as possible.
[0107] In some embodiments, determining the a priori signal-to-noise ratio according to the a posteriori signal-to-noise ratio includes:
[0108] The a priori signal-to-noise ratio of the current frame is determined according to the a posteriori signal-to-noise ratio of the current frame and the a posteriori signal-to-noise ratio of the previous frame.
[0109] In the disclosed embodiment, the estimation of the a priori signal-to-noise ratio based on the a priori signal-to-noise ratio can be realized based on the a priori signal-to-noise ratio corresponding to the multi-frame audio signal. In this way, by utilizing the stability or regularity of the audio signal itself and processing the a priori signal-to-noise ratio in time sequence, the expected value of the a priori signal-to-noise ratio can be estimated.
[0110] In some embodiments, determining the a priori signal-to-noise ratio of the current frame according to the a posteriori signal-to-noise ratio of the current frame and the a posteriori signal-to-noise ratio of the previous frame includes:
[0111] The a priori signal-to-noise ratio of the current frame is determined according to the a priori signal-to-noise ratio of the current frame with a first weight and the a priori signal-to-noise ratio of the previous frame with a second weight; wherein the first weight is determined according to the a priori signal-to-noise ratio and a predetermined smoothing coefficient; and the second weight is determined according to the smoothing coefficient.
[0112] In the disclosed embodiment, the above-mentioned method of estimating the a priori signal-to-noise ratio of the current frame based on the a posteriori signal-to-noise ratio of the adjacent frames is a weighted average estimation method. The above-mentioned first weight can be determined based on the gain function containing the a priori signal-to-noise ratio and the smoothing coefficient, and the second weight is determined based on the smoothing coefficient. Therefore, the estimation of the a priori signal-to-noise ratio is also an estimation of the gain function containing the a priori signal-to-noise ratio. Reference may be made to the estimation method of the DD (Decision Directed) algorithm:
[0113] priorSNR(k,l)=w*H(k,l)*postSNR(k,l-1)+(1-w)*MAX(postSNR(k,l)-1,0)
[0114] Among them, k is the frequency, l is the number of frames, priorSNR(k,l) is the prior signal-to-noise ratio of the kth frequency in the lth frame, and postSNR(k,l) is the posterior signal-to-noise ratio of the kth frequency in the lth frame; w is the above-mentioned smoothing coefficient, which takes a value between 0 and 1, for example, 0.8; H(k,l) is the gain function of the Wiener filter, which is determined by the prior signal-to-noise ratio. Therefore, the algorithm can be used to estimate the prior signal-to-noise ratio based on the posterior signal-to-noise ratio.
[0115] In some embodiments, determining the frequency domain estimation signal according to the priori signal-to-noise ratio and the noisy frequency power spectrum to be processed includes:
[0116] Determining a gain function according to the priori signal-to-noise ratio;
[0117] The noisy frequency power spectrum to be processed is multiplied by the gain function to obtain the frequency domain estimation signal.
[0118] Here, the gain function is the ratio of the power spectrum of clean speech to the power spectrum of clean speech plus the power spectrum of noise. Since the noisy frequency signal can be understood as consisting of clean speech and noise, the power spectrum of the estimated clean speech can be obtained by multiplying the noisy frequency power spectrum by the gain function, that is, the above-mentioned frequency domain estimation signal.
[0119] The gain function can be calculated based on the prior signal-to-noise ratio, that is, the ratio of the prior signal-to-noise ratio to the prior signal-to-noise ratio plus 1.
[0120] In this way, the a priori signal-to-noise ratio can be obtained through the above-mentioned DD algorithm, that is, the above-mentioned gain function is obtained, and the noisy frequency power spectrum is denoised using the gain function, and then an inverse Fourier transform is performed to convert the frequency domain signal into the time domain, thereby obtaining an enhanced speech signal.
[0121] In some embodiments, the method further comprises:
[0122] Obtaining the audio signal to be processed;
[0123] Performing time-frequency conversion on the audio signal to obtain a frequency-domain noisy signal;
[0124] The noisy frequency spectrum to be processed is determined according to the frequency domain noisy signal.
[0125] In the disclosed embodiment, the audio signal can be collected by the audio collection component, or the audio signal in the audio format file can be directly obtained. The audio signal can be directly played by the time domain signal of the audio playback component. Therefore, when performing the above-mentioned noise reduction processing, the audio signal can be converted from the time domain to the frequency domain signal by Fourier transform, and then the above-mentioned noisy frequency power spectrum can be determined according to the power of the above-mentioned frequency domain noisy signal at each frequency point. Here, only simple time-frequency conversion and other calculation processing are required to realize noise reduction processing of the collected audio signal through the above-mentioned noise reduction method.
[0126] The present disclosure also provides the following examples:
[0127] When using a mobile phone for a call or audio processing, the gain function of the Wiener filter can be estimated based on the a posteriori signal-to-noise ratio, and then the noisy speech signal can be subjected to noise reduction processing. The Wiener filter is a filtering method that minimizes the mean square value of the estimation error and has good smoothing and noise reduction effects. Improving the accuracy of the gain function of the Wiener filter is the key to improving the filtering effect.
[0128] For an audio signal in the frequency domain, the gain function H(k,l) of the kth frequency point in the lth frame is Among them, P x (k, l) is the power spectrum of the pure speech at the kth frequency point and the lth frame; P d (k,l) is the noise power spectrum of the kth frequency point and the lth frame. The numerator and denominator of the above gain function are divided by P d (k,l), we can get the gain function based on the prior signal-to-noise ratio: in, Represents the prior signal-to-noise ratio of the kth frequency point in the lth frame, that is, H(k,l)=priorSNR(k,l) / (1+priorSNR(k,l))=gain. Based on the DD algorithm, the weighted average of the posterior signal-to-noise ratio can be used to estimate the prior signal-to-noise ratio:
[0129] priorSNR(k,l)=w*H(k,l)*postSNR(k,l-1)+(1-w)*MAX(postSNR(k,l)-1,0)
[0130] Among them, w is the smoothing factor, which is used as the weight of the posterior signal-to-noise ratio of two adjacent frames. PriorSNR(k,l) is the above-mentioned prior signal-to-noise ratio E k (k,l), postSNR(k,l) is the posterior signal-to-noise ratio: Among them, Y(k,l) is the power spectrum of the original noisy signal at the kth frequency point in the lth frame, and D(k,l) is the generated power spectrum of the detected noise.
[0131] In the actual environment, noise is divided into steady-state noise and non-steady-state noise. The noisy frequency power spectrum and the noise power spectrum of the noisy frequency signal mentioned above both contain steady-state noise. Therefore, the estimation of the posterior signal-to-noise ratio will be inaccurate, which will further affect the estimation of the prior signal-to-noise ratio and make the gain function of the Wiener filter inaccurate.
[0132] Therefore, in the embodiment of the present disclosure, the steady-state noise is removed from both the noisy frequency power spectrum and the noise power spectrum to obtain an improved a posteriori signal-to-noise ratio. Among them, P s (k, l) is steady-state noise, which can be estimated based on the power spectrum of the noise frequency band or the power spectrum of the noise: P s (k,l)=MIN(P s _Y(k,l),P s _D(k,l)), where P s _Y(k,l) is the estimated steady-state noise based on the power spectrum of the noise frequency band, P s _D(k,l) is the steady-state noise estimated based on the noise power spectrum.
[0133] In the disclosed embodiment, the steady-state noise may be estimated based on the noisy frequency power spectrum based on the MCRA (Minimum Control Recursive Average) algorithm:
[0134] Step S301: Smoothing the power spectrum of the noisy speech in two dimensions: time and frequency.
[0135] Frequency smoothing:
[0136] Time smoothing: S(k,l)=α s (k,l)S(k,l-1)+S f (k,l)
[0137] Among them, α s (0<α s <1) is the smoothing factor, b(i) is the window with a length of 2w-1, and the window length can be used to control the search speed of the minimum value.
[0138] Step S302: perform a minimum search on the noisy speech power spectrum after smoothing to obtain an estimated steady-state noise:
[0139] S min (k,l)=min{S min (k,l-1),S(k,l)}
[0140] S tmp (k,l)=min{S tmp(k,l-1),S(k,l)}
[0141] Among them, Stmp is the minimum value searched at intervals, and Smin is the overall minimum value. At the beginning, the two are equal, and statistics can be performed after L frames:
[0142] S min (k,l)=min{S tmp (k,l-1),S(k,l)}
[0143] S tmp (k,l)=S(k,l)
[0144] Finally, the frequency point with the minimum value can be tracked as the estimated steady-state noise P s (k,l).
[0145] Step S303: Update the posterior signal-to-noise ratio according to the estimated steady-state noise:
[0146]
[0147] Step S304: Based on the updated posterior signal-to-noise ratio, estimate the priori signal-to-noise ratio through the DD algorithm, and obtain the gain function of the Wiener filter:
[0148] priorSNR(k,l)=w*gain*postSNR_new(k,l-1)+(1-w)*MAX(postSNR_new(k,l)-1,0)
[0149] Here, gain is a more accurate gain function obtained based on the updated a posteriori SNR estimate.
[0150] Step S305: based on the obtained gain function, the speech signal is subjected to noise reduction:
[0151] P x (k,l)=gain(k,l)*Y(k,l), for P x After performing inverse FFT transform on (k, l), the enhanced speech signal in the time domain is obtained.
[0152] Through the technical solution of the embodiment of the present disclosure, the noise can be more consistent and has a better smoothing effect. At the same time, the method belongs to a dynamic estimation method, does not require the limitation of a fixed threshold, and can be applied to more scenarios.
[0153] Figure 4 is a structural block diagram of an audio signal processing device according to an exemplary embodiment. Figure 4 As shown, the device 400 comprises:
[0154] The first acquisition module 401 is used to acquire the noisy frequency power spectrum and the noise power spectrum to be processed;
[0155] A first determination module 402 is used to determine a first noise component according to power characteristics of the noisy frequency spectrum at each frequency point; wherein the first noise component is a steady-state noise component included in both the noisy frequency power spectrum and the noise power spectrum;
[0156] A first calculation module 403 is used to subtract the first noise component from the noisy frequency power spectrum to obtain a noisy frequency component;
[0157] A second calculation module 404 is configured to subtract the first noise component from the noise power spectrum to obtain a second noise component;
[0158] A second determination module 405, configured to determine a frequency domain estimation signal according to the noisy frequency component and the second noise component;
[0159] The first conversion module 406 is configured to perform time-frequency conversion based on the frequency domain estimation signal to obtain a noise-reduced frequency signal.
[0160] In some embodiments, the first determining module includes:
[0161] A filtering submodule, used for performing a bandpass filtering process on the noisy frequency power spectrum within a predetermined frequency band to obtain a frequency smoothed power spectrum;
[0162] A smoothing submodule, used for smoothing the frequency smoothed power spectrum according to a time smoothing parameter to obtain a time smoothed power spectrum;
[0163] The first determination submodule is used to determine the first noise component according to the frequency points that meet the power spectrum density condition in the time smoothed power spectrum at each frequency point.
[0164] In some embodiments, the first determining submodule is specifically configured to:
[0165] For each frame in the time domain, according to the noisy frequency power spectrum after filtering at each frequency point, determine the frequency point of the minimum power spectrum density of each frame to obtain the minimum frequency point of each frame;
[0166] A frequency point with minimum power spectrum density is selected from the minimum frequency points of each frame in the time domain as the first noise component.
[0167] In some embodiments, the second determining module includes:
[0168] A second determination submodule, configured to determine a posterior signal-to-noise ratio according to the noisy frequency component and the second noise component;
[0169] A third determination submodule, configured to determine a priori signal-to-noise ratio according to the a posteriori signal-to-noise ratio;
[0170] The fourth determination submodule is used to determine the frequency domain estimation signal according to the priori signal-to-noise ratio and the frequency domain noisy signal to be processed.
[0171] In some embodiments, the third determining submodule is specifically used to:
[0172] The a priori signal-to-noise ratio of the current frame is estimated according to the a posteriori signal-to-noise ratio of the current frame and the a posteriori signal-to-noise ratio of the previous frame.
[0173] In some embodiments, the third determining submodule is specifically used to:
[0174] The a priori signal-to-noise ratio of the current frame is determined according to the a priori signal-to-noise ratio of the current frame with a first weight and the a priori signal-to-noise ratio of the previous frame with a second weight; wherein the first weight is determined according to the a priori signal-to-noise ratio and a predetermined smoothing coefficient; and the second weight is determined according to the smoothing coefficient.
[0175] In some embodiments, the fourth determining submodule is specifically configured to:
[0176] Determining a gain function according to the priori signal-to-noise ratio;
[0177] The noisy frequency power spectrum to be processed is multiplied by the gain function to obtain the frequency domain estimation signal.
[0178] In some embodiments, the apparatus further comprises:
[0179] A second acquisition module, used to acquire an audio signal to be processed;
[0180] A second conversion module, used for performing time-frequency conversion on the audio signal to obtain a frequency domain noisy signal;
[0181] The third determination module is used to determine the noisy frequency power spectrum to be processed according to the frequency domain noisy signal.
[0182] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0183] Figure 5 is a block diagram of an apparatus 500 according to an exemplary embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0184] Reference Figure 5, the device 500 may include one or more of the following components: a processing component 501 , a memory 502 , a power component 503 , a multimedia component 504 , an audio component 505 , an input / output (I / O) interface 506 , a sensor component 507 , and a communication component 508 .
[0185] The processing component 501 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 501 may include one or more processors 510 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 501 may also include one or more modules to facilitate the interaction between the processing component 501 and other components. For example, the processing component 501 may include a multimedia module to facilitate the interaction between the multimedia component 504 and the processing component 501.
[0186] The memory 510 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 502 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0187] The power supply component 503 provides power to various components of the device 500. The power supply component 503 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 500.
[0188] The multimedia component 504 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 504 includes a front camera and / or a rear camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and / or the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0189] The audio component 505 is configured to output and / or input audio signals. For example, the audio component 505 includes a microphone (MIC), and when the device 500 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 510 or sent via the communication component 508. In some embodiments, the audio component 505 also includes a speaker for outputting audio signals.
[0190] I / O interface 506 provides an interface between processing component 501 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0191] The sensor assembly 507 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 507 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, and the sensor assembly 507 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500, and the temperature change of the device 500. The sensor assembly 507 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 507 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 507 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0192] The communication component 508 is configured to facilitate wired or wireless communication between the device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 508 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 508 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology or other technologies.
[0193] In an exemplary embodiment, the apparatus 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.
[0194] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 502 including instructions, and the instructions can be executed by a processor 510 of the device 500 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0195] The embodiments of the present disclosure also provide a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal can execute the method provided by any of the above embodiments.
[0196] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0197] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A method for processing an audio signal, characterized in that: include: Obtaining the noisy frequency power spectrum and the noise power spectrum to be processed; According to the power characteristics of the noisy frequency power spectrum at each frequency point, the frequency points satisfying the power spectrum density condition in the time smoothed power spectrum are obtained by smoothing, and the first noise component is determined; wherein the first noise component is the steady-state noise component contained in both the noisy frequency power spectrum and the noise power spectrum; Subtract the first noise component from the noisy frequency power spectrum to obtain a noisy frequency component; Subtracting the first noise component from the noise power spectrum to obtain a second noise component; Determine a frequency domain estimation signal according to the noisy frequency component and the second noise component; wherein, determining the frequency domain estimation signal according to the noisy frequency component and the second noise component comprises: determining a posteriori signal-to-noise ratio according to the noisy frequency component and the second noise component; determining a priori signal-to-noise ratio according to the posteriori signal-to-noise ratio; determining the frequency domain estimation signal according to the a priori signal-to-noise ratio and the noisy frequency power spectrum to be processed; A time-frequency conversion is performed based on the frequency domain estimation signal to obtain a noise-reduced frequency signal.
2. The method according to claim 1, characterized in that: The method of determining the first noise component by obtaining the frequency points satisfying the power spectrum density condition in the time smoothed power spectrum according to the power characteristics of the noisy frequency power spectrum at each frequency point through smoothing processing includes: Performing bandpass filtering on the noisy frequency power spectrum within a predetermined frequency band to obtain a frequency smoothed power spectrum; According to the time smoothing parameter, the frequency smoothed power spectrum is smoothed to obtain a time smoothed power spectrum; The first noise component is determined according to the frequency points that meet the power spectrum density condition in the time-smoothed power spectrum at each frequency point.
3. The method according to claim 2, characterized in that The determining the first noise component according to the frequency points satisfying the power spectrum density condition in the time-smoothed power spectrum at each frequency point includes: For each frame in the time domain, according to the noisy frequency power spectrum after filtering at each frequency point, determine the frequency point of the minimum power spectrum density of each frame to obtain the minimum frequency point of each frame; A frequency point with minimum power spectrum density is selected from the minimum frequency points of each frame in the time domain as the first noise component.
4. The method according to claim 1, characterized in that: The determining the a priori signal-to-noise ratio according to the a posteriori signal-to-noise ratio comprises: The a priori signal-to-noise ratio of the current frame is determined according to the a posteriori signal-to-noise ratio of the current frame and the a posteriori signal-to-noise ratio of the previous frame.
5. The method according to claim 4, characterized in that The determining the a priori signal-to-noise ratio of the current frame according to the a posteriori signal-to-noise ratio of the current frame and the a posteriori signal-to-noise ratio of the previous frame includes: The a priori signal-to-noise ratio of the current frame is determined according to the a priori signal-to-noise ratio of the current frame with a first weight and the a priori signal-to-noise ratio of the previous frame with a second weight; wherein the first weight is determined according to the a priori signal-to-noise ratio and a predetermined smoothing coefficient; and the second weight is determined according to the smoothing coefficient.
6. The method according to claim 1, characterized in that The determining the frequency domain estimation signal according to the priori signal-to-noise ratio and the noisy frequency power spectrum to be processed includes: Determining a gain function according to the priori signal-to-noise ratio; The noisy frequency power spectrum to be processed is multiplied by the gain function to obtain the frequency domain estimation signal.
7. The method according to claim 1, characterized in that The method further comprises: Obtaining the audio signal to be processed; Performing time-frequency conversion on the audio signal to obtain a frequency-domain noisy signal; The noisy frequency spectrum to be processed is determined according to the frequency domain noisy signal.
8. An audio signal processing device, characterized in that: include: A first acquisition module is used to acquire a noisy frequency power spectrum and a noise power spectrum to be processed; A first determination module is used to determine a first noise component by obtaining a frequency point that satisfies a power spectrum density condition in a time-smoothed power spectrum according to power characteristics of the noisy frequency spectrum at each frequency point through smoothing processing; wherein the first noise component is a steady-state noise component included in both the noisy frequency spectrum and the noise power spectrum; A first calculation module, configured to subtract the first noise component from the noisy frequency power spectrum to obtain a noisy frequency component; A second calculation module, configured to subtract the first noise component from the noise power spectrum to obtain a second noise component; a second determination module, configured to determine a frequency domain estimation signal according to the noisy frequency component and the second noise component; the second determination module comprising: a second determination submodule, configured to determine a posterior signal-to-noise ratio according to the noisy frequency component and the second noise component; a third determination submodule, configured to determine a priori signal-to-noise ratio according to the posterior signal-to-noise ratio; and a fourth determination submodule, configured to determine the frequency domain estimation signal according to the a priori signal-to-noise ratio and the frequency domain noisy signal to be processed; The first conversion module is used to perform time-frequency conversion based on the frequency domain estimation signal to obtain a noise reduction frequency signal.
9. The device according to claim 8, characterized in that The first determining module includes: A filtering submodule, used for performing a bandpass filtering process on the noisy frequency power spectrum within a predetermined frequency band to obtain a frequency smoothed power spectrum; A smoothing submodule, used for smoothing the frequency smoothed power spectrum according to a time smoothing parameter to obtain a time smoothed power spectrum; The first determination submodule is used to determine the first noise component according to the frequency points that meet the power spectrum density condition in the time smoothed power spectrum at each frequency point.
10. The device according to claim 9, characterized in that The first determining submodule is specifically used for: For each frame in the time domain, according to the noisy frequency power spectrum after filtering at each frequency point, determine the frequency point of the minimum power spectrum density of each frame to obtain the minimum frequency point of each frame; A frequency point with minimum power spectrum density is selected from the minimum frequency points of each frame in the time domain as the first noise component.
11. The device according to claim 8, characterized in that The third determining submodule is specifically used for: The a priori signal-to-noise ratio of the current frame is determined according to the a posteriori signal-to-noise ratio of the current frame and the a posteriori signal-to-noise ratio of the previous frame.
12. The device according to claim 11, characterized in that The third determining submodule is specifically used for: The a priori signal-to-noise ratio of the current frame is determined according to the a priori signal-to-noise ratio of the current frame with a first weight and the a priori signal-to-noise ratio of the previous frame with a second weight; wherein the first weight is determined according to the a priori signal-to-noise ratio and a predetermined smoothing coefficient; and the second weight is determined according to the smoothing coefficient.
13. The device according to claim 8, characterized in that The fourth determining submodule is specifically used for: Determining a gain function according to the priori signal-to-noise ratio; The noisy frequency power spectrum to be processed is multiplied by the gain function to obtain the frequency domain estimation signal.
14. The device according to claim 8, characterized in that The device also includes: A second acquisition module, used to acquire an audio signal to be processed; A second conversion module, used for performing time-frequency conversion on the audio signal to obtain a frequency domain noisy signal; The third determination module is used to determine the noisy frequency power spectrum to be processed according to the frequency domain noisy signal.
15. An audio signal processing device, characterized in that: The device comprises at least: a processor and a memory for storing executable instructions that can be run on the processor, wherein: When the processor is used to run the executable instructions, the executable instructions execute the steps in the audio signal processing method provided in any one of claims 1 to 7.
16. A non-transitory computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the steps in the audio signal processing method provided in any one of claims 1 to 7.
Citation Information
Cited By
Information processing system, information processing method, and non-transitory computer readable recording medium
US20240161771A1
