Anti-interference improved voice noise reduction device based on spectrum flatness, device, equipment, medium and program product

By calculating the low spectrum flatness of the audio data, the noise spectrum is obtained and filtered, which solves the problem of misjudgment of low-frequency interference signals in the existing technology, improves the noise reduction effect, and reduces the interference residue of the speech signal.

CN118609585APending Publication Date: 2024-09-06SHENZHEN JIAYZ PHOTO IND LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410886921.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

During noise reduction processing in the existing technology, it is easy to misjudge low-frequency interference signals as speech signals, resulting in residual interference in the speech signal after noise reduction.

Method used

By calculating the low spectrum flatness of the current frame of audio data, the noise spectrum is obtained, and based on the noise spectrum, the next frame of audio data is filtered and denoised to avoid treating low-frequency interference signals as speech signals.

Benefits of technology

Effectively remove noise signals in low-frequency speech signals, improve the noise reduction effect, and reduce the interference residue of speech signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609585A
    Figure CN118609585A
Patent Text Reader

Abstract

The embodiment of the invention discloses an anti-interference improved voice noise reduction device and device based on spectrum flatness, equipment, a medium and a program product, and the method comprises the steps: obtaining a sub-band signal corresponding to current frame audio data, obtaining a current frame sub-band, calculating the spectrum flatness of low-frequency components in the current frame sub-band, and obtaining low spectrum flatness; the low-frequency component comprises a plurality of frequency spectrum signals of the lowest frequency in the current frame sub-band; obtaining a noise spectrum of the current frame sub-band based on the low frequency spectrum flatness and the power spectrum of the current frame sub-band; and performing filtering and noise reduction processing on the corresponding sub-band of the next frame based on the noise spectrum to obtain the corresponding sub-band of the next frame after noise reduction, and obtaining the audio data after noise reduction corresponding to the audio data of the next frame based on the corresponding sub-band of the next frame after noise reduction. According to the embodiment of the invention, the noise signal in the low-frequency voice signal can be effectively removed, and the noise reduction effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of audio processing, and in particular to an improved speech noise reduction device, apparatus, equipment, medium and program product based on spectral flatness anti-interference. Background Art

[0002] In the modern digital era, audio processing technology has developed rapidly and has been widely used in various fields. One of the most common requirements is noise reduction. In many scenarios, noise can seriously affect the clarity and quality of audio signals. Therefore, everyone is actively exploring various audio noise reduction algorithms to reduce or eliminate the impact of noise on audio signals.

[0003] In the prior art, when performing noise reduction processing on audio, the noise spectrum of the next frame is usually estimated based on the speech information of the previous frame, and then the noise spectrum is filtered out. However, when estimating the noise spectrum of low-frequency speech in the prior art, the low-frequency interference signal is often regarded as the speech signal, which will cause the final noise-reduced speech signal to have residual interference noise. Summary of the invention

[0004] The embodiments of the present invention provide an improved speech noise reduction device, apparatus, equipment, medium and program product based on spectral flatness anti-interference, which can effectively remove noise signals in low-frequency speech signals and improve the noise reduction effect.

[0005] In a first aspect, an embodiment of the present invention provides an improved speech noise reduction method based on spectral flatness anti-interference, comprising: obtaining a subband signal corresponding to current frame audio data to obtain a current frame subband, and calculating the spectral flatness of a low-frequency component in the current frame subband to obtain a low-frequency spectrum flatness, wherein the low-frequency component includes a plurality of spectrum signals with the lowest frequencies in the current frame subband;

[0006] Acquire the noise spectrum of the current frame subband based on the low frequency spectrum flatness and the power spectrum of the current frame subband; and

[0007] Based on the noise spectrum, filtering and noise reduction processing is performed on the corresponding sub-band of the next frame to obtain the corresponding sub-band of the next frame after noise reduction, and based on the corresponding sub-band of the next frame after noise reduction, the noise reduced audio data corresponding to the audio data of the next frame is obtained.

[0008] In a second aspect, an embodiment of the present invention provides an improved speech noise reduction device based on spectral flatness anti-interference, comprising:

[0009] A low frequency spectrum flatness acquisition module, used to acquire a subband signal corresponding to the current frame audio data to obtain a current frame subband, and calculate the spectrum flatness of a low frequency component in the current frame subband to obtain a low frequency spectrum flatness, wherein the low frequency component includes a plurality of spectrum signals with the lowest frequencies in the current frame subband;

[0010] A noise spectrum acquisition module, configured to acquire the noise spectrum of the current frame sub-band based on the low frequency spectrum flatness and the power spectrum of the current frame sub-band; and

[0011] The noise reduction audio frame acquisition module is used to perform filtering and noise reduction processing on the corresponding sub-band of the next frame based on the noise spectrum to obtain the corresponding sub-band of the next frame after noise reduction, and obtain the noise reduced audio data corresponding to the next frame audio data based on the corresponding sub-band of the next frame after noise reduction.

[0012] In a third aspect, an embodiment of the present invention further 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, an improved speech noise reduction method based on spectral flatness anti-interference is implemented as described in any one of the embodiments of the present invention.

[0013] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements an improved speech noise reduction method based on spectral flatness anti-interference as described in any one of the embodiments of the present invention.

[0014] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the improved speech noise reduction method based on spectral flatness anti-interference as described in any one of the embodiments of the present invention.

[0015] The embodiments of the present invention provide an improved speech noise reduction device, apparatus, device, medium and program product based on spectral flatness anti-interference. By calculating the spectral flatness of the low-frequency component in the current frame subband and obtaining the noise spectrum of the corresponding current frame subband based on the corresponding low-frequency spectrum flatness, the noise spectrum in the low-frequency subband component of the current frame audio data can be accurately identified and obtained according to the spectral flatness characteristics of the noise spectrum, so as to avoid treating the low-frequency interference signal as a speech signal, and then obtain a more accurate noise spectrum corresponding to the corresponding subband of the next frame; then, by further filtering and noise reduction processing on the corresponding subband of the next frame based on the more accurate noise spectrum corresponding to the corresponding subband of the next frame, the noise signal in the low-frequency speech signal can be effectively removed, thereby improving the noise reduction effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 It is a flow chart of an improved speech noise reduction method based on spectral flatness anti-interference provided by an embodiment of the present invention;

[0018] Figure 2 It is another flow chart of an improved speech noise reduction method based on spectral flatness anti-interference provided by an embodiment of the present invention;

[0019] Figure 3 It is another flow chart of an improved speech noise reduction method based on spectral flatness anti-interference provided by an embodiment of the present invention;

[0020] Figure 4 It is another flow chart of an improved speech noise reduction method based on spectral flatness anti-interference provided by an embodiment of the present invention;

[0021] Figure 5 It is a structural schematic diagram of an improved speech noise reduction device based on spectral flatness anti-interference provided by an embodiment of the present invention;

[0022] Figure 6 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 should fall within the scope of protection of the present invention.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] Figure 1 A flowchart of an improved speech noise reduction method based on spectral flatness anti-interference provided in an embodiment of the present invention is provided. The method can be performed by an improved speech noise reduction device based on spectral flatness anti-interference provided in an embodiment of the present invention, and the device can be implemented in software and / or hardware. In a specific embodiment, the device can be integrated in an electronic device, such as a computer, a server, etc. The following embodiments will be described by taking the device integrated in an electronic device as an example. Reference Figure 1 , the method may specifically include the following steps:

[0026] Step 101, obtain the subband signal corresponding to the current frame audio data to obtain the current frame subband, and calculate the spectral flatness of the low-frequency component in the current frame subband to obtain the low-frequency spectrum flatness, where the low-frequency component includes the spectrum signals of multiple lowest frequencies in the current frame subband. This step can facilitate obtaining a more accurate noise spectrum corresponding to the corresponding subband of the next frame based on the obtained low-frequency spectrum flatness.

[0027] Specifically, the current frame audio data may be time domain data of a noisy speech signal, which may be expressed as:

[0028] y(n)=x(n)+d(n),(1)

[0029] Among them, y(n) represents noisy speech; x(n) represents pure speech; d(n) represents noise.

[0030] Specifically, the current frame audio data may be each frame audio data of a noisy speech signal.

[0031] Optionally, the process of obtaining the subband signal corresponding to the current frame audio data to obtain the current frame subband includes: converting the noisy speech into a frequency domain signal to a corresponding spectrum signal.

[0032] Specifically, the current frame noisy frequency data y(n,k) can be subjected to a short-time Fourier transform (STFT) to obtain the corresponding spectrum signal Y(n,k). Specifically, the above short-time Fourier transform can be performed based on a Hamming window with a window function of 512 and an overlap of 50%. The change process can be expressed as:

[0033] Y(n,k)=STFT(y(n,k)), (2)

[0034] Among them, n represents the frame number, the frame number; k represents the frequency.

[0035] Optionally, the current frame subband includes each subband corresponding to the current frame audio data.

[0036] Optionally, the multiple lowest frequency spectrum signals in the current frame subband include multiple lowest frequency spectrum signals whose proportion to the total frequency quantity in the corresponding current frame subband is a preset proportion, for example, multiple lowest frequency spectrum signals whose proportion to the total frequency quantity is 25%.

[0037] Optionally, the process of calculating the spectral flatness of the low-frequency component in the current frame subband to obtain the low-frequency spectrum flatness can be expressed as:

[0038]

[0039] Wherein, N represents the number of frequencies in the frequency band component; i represents the frequency point.

[0040] Specifically, spectral flatness is usually used to measure the uniformity of the spectrum. The closer the spectral flatness is to 1, the flatter the signal is, with no obvious peaks; when the spectral flatness is close to 0, the signal spectrum will have obvious peaks, indicating that there may be noise interference, so this can be used to judge noise interference.

[0041] Step 102, based on the low frequency spectrum flatness and the power spectrum of the current frame subband, obtain the noise spectrum of the current frame subband. This step can accurately identify the noise spectrum in the low frequency subband component corresponding to the current frame audio data based on the spectrum flatness characteristics of the noise spectrum, avoid treating the low frequency interference signal as a speech signal, and then obtain a more accurate noise spectrum corresponding to the corresponding subband of the next frame.

[0042] In an optional specific embodiment of the present invention, the process of obtaining the noise spectrum of the current frame subband based on the low frequency spectrum flatness and the power spectrum of the current frame subband includes:

[0043] When the low frequency spectrum flatness satisfies a first preset condition, a noise spectrum smoothing coefficient corresponding to the current frame subband is obtained, and a noise spectrum is obtained based on the noise spectrum smoothing coefficient and the power spectrum.

[0044] Specifically, the first preset condition may be that the low frequency spectrum flatness belongs to a preset low frequency spectrum flatness value range.

[0045] Optionally, the first preset condition is that the low frequency spectrum flatness is not less than a preset low frequency spectrum flatness threshold.

[0046] Optionally, when the low frequency spectrum flatness is not less than a preset low frequency spectrum flatness threshold, a noise spectrum smoothing coefficient having a first preset value is acquired.

[0047] Optionally, before obtaining the noise spectrum based on the noise spectrum smoothing coefficient and the power spectrum, the noise spectrum of the corresponding subband of the previous frame is obtained to obtain the corresponding noise spectrum of the previous frame; the above process of obtaining the noise spectrum based on the noise spectrum smoothing coefficient and the power spectrum includes: obtaining the noise spectrum based on the noise spectrum smoothing coefficient, the power spectrum and the corresponding noise spectrum of the previous frame.

[0048] Specifically, the embodiment of the present invention is applicable to the scenario where the current frame audio data is not the first frame.

[0049] Specifically, the corresponding sub-band of the previous frame may be understood as a sub-band signal corresponding to the audio data of the previous frame and having the same frequency band as the sub-band of the current frame.

[0050] Specifically, the process of obtaining the noise spectrum based on the noise spectrum smoothing coefficient, the power spectrum and the corresponding noise spectrum of the previous frame can be expressed as:

[0051]

[0052] Where k represents the frequency corresponding to the subband of the current frame; λ d (n, k) represents the noise spectrum of the subband of the current frame; λ d (n-1,k) represents the corresponding noise spectrum of the previous frame; represents the noise spectrum smoothing coefficient of the current frame subband; |Y(n,k)| 2 Represents the power spectrum of the subband of the current frame.

[0053] Specifically, smoothing the noise spectrum based on the noise spectrum smoothing coefficient can make the noise estimation more stable and will not affect the noise reduction performance due to sudden noise or other abnormal conditions.

[0054] Specifically, for a subband of the first frame of audio data, the noise spectrum of the subband may be determined based on the power spectrum of the corresponding subband, which may be specifically expressed as:

[0055] λ d (1,k)=|Y(1,k)| 2 , (5)

[0056] Among them, λ d(1,k) represents the noise spectrum of the subband of the current frame; |Y(1,k)| 2 Represents the power spectrum of the subband of the current frame.

[0057] Optionally, when the low frequency spectrum flatness is not less than a preset low frequency spectrum flatness threshold, the process of obtaining a noise spectrum smoothing coefficient having a value of a first preset value comprises: when the low frequency spectrum flatness F 1 Not less than the preset low spectrum flatness threshold F th1 When , the noise spectrum smoothing coefficient with a value of 1 is obtained, that is, Determined to be 1.

[0058] Specifically, the low spectrum flatness threshold F th1 Can be set according to pure voice.

[0059] Optionally, the first preset condition is that the low frequency spectrum flatness is not greater than a preset low frequency spectrum flatness threshold.

[0060] Optionally, the process of obtaining the noise spectrum of the current frame subband based on the low spectrum flatness and the power spectrum of the current frame subband includes: when the low spectrum flatness does not meet the first preset condition, obtaining the noise spectrum smoothing coefficient based on the power spectrum of the current frame subband and the IMCRA algorithm.

[0061] Specifically, the IMCRA algorithm is the Improved Minima Controlled Recursive Averaging algorithm.

[0062] Step 103, filtering and denoising the corresponding subband of the next frame based on the noise spectrum to obtain the corresponding subband of the next frame after denoising, and obtaining the denoised audio data corresponding to the next frame audio data based on the corresponding subband of the next frame after denoising. This step is based on steps 101 and 102, by calculating the spectral flatness of the low-frequency component in the subband of the current frame, and obtaining the noise spectrum of the corresponding subband of the current frame based on the corresponding low-frequency spectrum flatness, it is possible to accurately identify and obtain the noise spectrum in the low-frequency subband component of the current frame audio data according to the spectral flatness characteristics of the noise spectrum, avoid treating the low-frequency interference signal as a speech signal, and then obtain a more accurate noise spectrum corresponding to the corresponding subband of the next frame; then, by further filtering and denoising the corresponding subband of the next frame based on the more accurate noise spectrum corresponding to the corresponding subband of the next frame, the noise signal in the low-frequency speech signal can be effectively removed, and the noise reduction effect can be improved.

[0063] Specifically, the corresponding sub-band of the next frame may be understood as a sub-band signal corresponding to the next frame of audio data and having the same frequency band as the sub-band of the current frame.

[0064] Optionally, the process of filtering and denoising the corresponding subband of the next frame based on the noise spectrum to obtain the corresponding subband of the next frame after denoising includes: filtering and denoising the subband through a Wiener filter based on the noise spectrum to obtain the corresponding subband of the next frame after denoising.

[0065] Optionally, the process of obtaining the denoised audio data corresponding to the next frame of audio data based on the corresponding sub-bands of the next frame after denoising includes: obtaining a denoised spectrum signal composed of the corresponding sub-bands of the next frame after denoising corresponding to the next frame of audio data, and converting the denoised spectrum signal into a time domain signal to obtain the denoised audio data.

[0066] Specifically, the denoised spectral signal can be converted into a time domain signal by inverse short-time Fourier transform (ISTFT) to obtain the denoised audio data, which can be specifically performed based on the following formula:

[0067]

[0068] in, Indicates the corresponding subband of the next frame after noise reduction; Represents the audio data after noise reduction.

[0069] The following further introduces an improved speech noise reduction method based on spectral flatness anti-interference provided by another embodiment of the present invention. Figure 2 As shown, the following steps may be included:

[0070] Step 201 : obtaining a subband signal corresponding to the current frame audio data to obtain the current frame subband, and calculating the spectrum flatness of the low frequency component in the current frame subband to obtain the low frequency spectrum flatness.

[0071] Step 202: Calculate the spectrum flatness of the non-low-frequency component in the current frame sub-band to obtain the non-low-frequency spectrum flatness.

[0072] Specifically, the non-low-frequency components in the current frame subband include other spectrum signals except the low-frequency components in the corresponding current frame subband, for example, spectrum signals of other frequencies except a plurality of lowest frequencies, which account for 75% of the total number of frequencies.

[0073] Optionally, the current frame subband is divided into four parts, in order from low to high frequency, the first 25% of the frequency points are low frequencies, the next 25%-50% are low-frequency components, the next 50%-75% are high-frequency components, and the highest frequency 75%-100% are high-frequency components.

[0074] Optionally, the process of calculating the spectral flatness of the non-low-frequency components in the current frame subband to obtain the non-low-frequency spectrum flatness includes: calculating the spectral flatness of the non-low-frequency components as a whole to obtain the non-low-frequency spectrum flatness.

[0075] Optionally, the above process of calculating the spectral flatness of the non-low-frequency components in the current frame subband to obtain the non-low frequency spectrum flatness includes: respectively calculating the spectral flatness of the mid-low frequency components, mid-high frequency components and high frequency components in the non-low frequency components to obtain the mid-low frequency spectrum flatness, mid-high frequency spectrum flatness, and high frequency spectrum flatness.

[0076] Step 203: Acquire a noise spectrum based on the non-low frequency spectrum flatness, the low frequency spectrum flatness and the power spectrum.

[0077] Optionally, the process of acquiring the noise spectrum based on the non-low spectrum flatness, the low spectrum flatness and the power spectrum includes:

[0078] When the low frequency spectrum flatness does not meet the first preset condition and the non-low frequency spectrum flatness meets the second preset condition, a noise spectrum smoothing coefficient corresponding to the current frame subband is obtained, and a noise spectrum is obtained based on the noise spectrum smoothing coefficient and the power spectrum.

[0079] Specifically, the second preset condition may be that the non-low frequency spectrum flatness belongs to a preset non-low frequency spectrum flatness range.

[0080] Specifically, the second preset condition may be that the mid-low spectrum flatness belongs to a preset mid-low spectrum flatness range, the mid-high spectrum flatness belongs to a preset mid-high spectrum flatness range, and the high spectrum flatness belongs to a preset high spectrum flatness range.

[0081] Optionally, when the second preset condition is that the flatness of the mid-low spectrum is not less than the preset mid-low spectrum flatness threshold, the mid-high spectrum flatness is not less than the preset mid-high spectrum flatness threshold, and the high spectrum flatness is not less than the preset high spectrum flatness threshold, the acquired value is a noise spectrum smoothing coefficient of the second preset value.

[0082] Specifically, the middle-low frequency spectrum flatness threshold, the middle-high frequency spectrum flatness threshold, and the high frequency spectrum flatness threshold can be set according to pure speech.

[0083] Specifically, the second preset value may range from 0.6 to 0.8, and may specifically be 0.7.

[0084] Optionally, the corresponding noise spectrum smoothing coefficient is obtained based on the following formula.

[0085]

[0086] in, Indicates the noise spectrum smoothing coefficient of the current frame subband; F 1 Indicates the low frequency spectrum flatness of the current frame subband; F 2 Indicates the flatness of the mid- and low-frequency spectrum of the current frame subband; F 3Indicates the flatness of the mid- and high-frequency spectrum of the current frame subband; F 4 Indicates the high frequency spectrum flatness of the current frame subband; F th1 represents the low spectrum flatness threshold, F th2 Indicates the low to medium spectrum flatness threshold; F th3 Indicates the medium and high spectrum flatness threshold; F th4 Indicates the high spectral flatness threshold.

[0087] Optionally, the process of acquiring the noise spectrum based on the non-low spectrum flatness, the low spectrum flatness and the power spectrum includes:

[0088] When the low frequency spectrum flatness does not meet the first preset condition and the non-low frequency spectrum flatness does not meet the second preset condition, a noise spectrum smoothing coefficient is obtained based on the power spectrum and the IMCRA algorithm, and a noise spectrum is obtained based on the noise spectrum smoothing coefficient and the power spectrum.

[0089] Optionally, the process of obtaining the noise spectrum smoothing coefficient based on the power spectrum and the IMCRA algorithm includes:

[0090] Based on the power spectrum of the specific current frame subband, the noise spectrum smoothing coefficient of the current frame subband is obtained by using a traditional IMCRA algorithm or an improved IMCRA algorithm in the prior art.

[0091] Step 204 , filtering and denoising the corresponding sub-band of the next frame based on the noise spectrum to obtain the corresponding sub-band of the next frame after denoising, and obtaining the denoised audio data corresponding to the next frame of audio data based on the corresponding sub-band of the next frame after denoising.

[0092] When the low-frequency component of the current frame subband contains a noise spectrum, the embodiment of the present invention can accurately obtain the noise spectrum in the low-frequency component of the current frame subband based on the flatness characteristics of the low-frequency spectrum flatness, the non-low-frequency spectrum flatness and the noise spectrum. At the same time, when the low-frequency component of the current frame subband does not contain a noise spectrum, the noise spectrum is obtained based on the IMCRA algorithm. By combining the spectral flatness noise identification method and the IMCRA algorithm, the processing of the low-frequency noise interference signal in the corresponding subband of the next frame is improved, while maintaining the protection of the speech signal.

[0093] An improved speech noise reduction method based on spectral flatness anti-interference provided by another embodiment of the present invention is further described below.

[0094] The embodiment of the present invention is applicable to the scenario where the low frequency spectrum flatness does not meet the first preset condition, and the non-low frequency spectrum flatness does not meet the second preset condition. Figure 3 As shown, Figure 2 Step 203 in the method may include the following steps:

[0095] Step 2031, the power spectrum is smoothed in the frequency domain and then in the time domain to obtain a first smoothed power spectrum, and based on the first smoothed power spectrum and the first tracking smoothing coefficient, continuous minimum value tracking is performed to obtain the global power spectrum minimum value of the current frame subband.

[0096] Optionally, the process of successively performing frequency domain smoothing processing and time domain smoothing processing on the power spectrum to obtain a first smoothed power spectrum includes performing frequency domain smoothing processing based on the following formula:

[0097]

[0098] Among them, S f (n,k) represents the frequency domain smoothed power spectrum of the current frame subband; b(i) represents the window function, ω represents the window length, and the total length is 2ω+1; |Y(n,k)| 2 Represents the power spectrum of the subband of the current frame.

[0099] Optionally, the process of successively performing frequency domain smoothing processing and time domain smoothing processing on the power spectrum to obtain a first smoothed power spectrum includes performing time domain smoothing processing based on the following formula:

[0100] S(n,k)=a s S(n-1,k)+(1-a s )S f (n,k), (8)

[0101] Where S(n,k) represents the first smoothed power spectrum of the subband of the current frame; S(n-1,k) represents the first smoothed power spectrum of the previous frame; a s Represents the time domain smoothing coefficient, which is a constant and the default setting is 0.8.

[0102] Specifically, for a subband of the first frame of audio data, the first smoothed power spectrum may be determined according to the corresponding frequency domain smoothed power spectrum.

[0103] Optionally, for each subband of the first frame of audio data, the first smoothed power spectrum can be expressed as:

[0104] S(1,k)=S f (1,k), (9).

[0105] Optionally, the process of performing continuous minimum value tracking to obtain the minimum value of the global power spectrum of the current frame subband based on the first smoothed power spectrum and the first tracking smoothing coefficient includes:

[0106] The global power spectrum minimum value of each frequency point of each subband of the current frame is obtained based on the following formula:

[0107]

[0108] Among them, S min (n, k) represents the minimum value of the global power spectrum of each frequency point of the current frame subband; S min (n-1, k) represents the minimum value of the global power spectrum of each frequency point of the corresponding sub-band in the previous frame; γ and β represent the first tracking smoothing coefficients.

[0109] Specifically, for the sub-band of the first frame of audio data, the minimum value of the global power spectrum of each frequency point can be determined according to the corresponding first smoothed power spectrum.

[0110] Optionally, for the subband of the first frame of audio data, the minimum value of the global power spectrum of each frequency point can be expressed as:

[0111] S min (1,k)=S f (1,k), (11).

[0112] Step 2032: determine whether there is a speech signal in the current frame subband based on the minimum value of the global power spectrum, and obtain the speech-free power spectrum corresponding to the current frame subband based on the determination result.

[0113] Specifically, it can be determined whether there is speech at each frequency point of each sub-band of the current frame based on the following formula:

[0114]

[0115] Where I(n,k) indicates whether there is speech judgment result at each frequency point of the current frame subband, 0 means there is speech, 1 means there is no speech; γ 0 Indicates that the decision threshold constant is 4.6; ζ 0 Indicates that the decision threshold constant is 1.67; B min The default constant coefficient is 1.66.

[0116] Optionally, the process of obtaining the speech absence power spectrum corresponding to the current frame subband includes: obtaining the power spectrum corresponding to the frequency spectrum signal whose speech presence judgment result is 1.

[0117] Optionally, for each current frame subband, the process of obtaining the speech non-existent power spectrum corresponding to the current frame subband may be performed based on the following formula:

[0118]

[0119] Where b(i) represents the window function; Indicates that the speech in the current frame subband does not have a power spectrum; Indicates that there is no speech power in the corresponding subband of the previous frame.

[0120] Optionally, for a subband of the first frame of audio data, it is determined based on a corresponding power spectrum that no power spectrum exists for the speech.

[0121] Step 2033, performing time domain smoothing processing on the speech non-existent power spectrum to obtain a second smoothed power spectrum, and performing continuous minimum value tracking based on the second smoothed power spectrum and the second tracking smoothing coefficient to obtain the local power spectrum minimum corresponding to the current frame subband.

[0122] Optionally, the process of performing time domain smoothing on the speech non-existent power spectrum to obtain the second smoothed power spectrum may be performed based on the following formula:

[0123]

[0124] in, Represents the second smoothed power spectrum of the subband of the current frame; represents the second smoothed power spectrum of the corresponding subband of the previous frame; a s Represents the time domain smoothing coefficient, the default constant is 0.8.

[0125] Optionally, the process of performing continuous minimum value tracking to obtain the local power spectrum minimum value corresponding to the current frame subband based on the second smoothed power spectrum and the second tracking smoothing coefficient may be performed based on the following formula:

[0126]

[0127] in, Indicates the local power spectrum minimum value of each frequency point of the current frame sub-band; Indicates the local power spectrum minimum value of each frequency point of the corresponding sub-band in the previous frame; Represents the second smoothed power spectrum of the subband of the current frame; represents the second smoothed power spectrum of the corresponding subband of the previous frame; γ 2 and β 2 Represents the second tracking smoothing coefficient.

[0128] Specifically, for the sub-band of the first frame of audio data, the minimum value of the local power spectrum of each frequency point can be determined according to the corresponding first smoothed power spectrum.

[0129] Optionally, for each sub-band of the first frame of audio data, the minimum value of the global power spectrum of each frequency point can be expressed as:

[0130]

[0131] Optionally, the first tracking smoothing coefficient is greater than the second tracking smoothing coefficient.

[0132] Specifically, when obtaining the global power spectrum minimum, using a larger tracking smoothing coefficient can help obtain more power spectra without speech and retain more noise interference information, so as to improve the accuracy when obtaining the local power spectrum minimum; when obtaining the local power spectrum minimum, using a smaller tracking smoothing coefficient can help reduce the adaptation time when switching application scenarios.

[0133] Specifically, the values ​​of the first tracking smoothing coefficient and the second tracking smoothing coefficient may be determined according to factors such as user demand and device status.

[0134] Specifically, γ in the first tracking smoothing coefficient may be determined to be 0.998, and β in the first tracking smoothing coefficient may be determined to be 0.96.

[0135] Specifically, the γ in the second tracking smoothing coefficient can be 2 Determine it to be 0.98, and change the β in the second tracking smoothing coefficient 2 Determined to be 0.9.

[0136] Step 2034: Obtain the speech non-existence probability of the sub-band of the current frame based on the local power spectrum minimum, and obtain the noise spectrum smoothing coefficient based on the speech non-existence probability.

[0137] Optionally, the above-mentioned acquisition of the probability of speech non-existence of the sub-band of the current frame based on the local power spectrum minimum value may be performed based on the following formula:

[0138]

[0139] in, Indicates the probability of speech non-existence in the current frame subband, 1 for non-existence, 0 for existence, and the middle [0,1] for probabilistic non-existence; γ 1 represents the default fixed threshold, usually 3; ζ 0 Indicates the default fixed threshold of 1, usually 1.67.

[0140] The embodiment of the present invention utilizes a continuous minimum value tracking process to replace a specific window statistical minimum value process in a traditional IMCRA algorithm, thereby significantly reducing the delay in the noise estimation process and improving real-time performance. In addition, the embodiment of the present invention sets a first tracking smoothing coefficient when performing the first continuous minimum value tracking to be greater than a second tracking smoothing coefficient when performing the second continuous minimum value tracking. This ensures the accuracy in obtaining the local power spectrum minimum while reducing the adaptation time when switching application scenarios. This improves the applicability of the embodiment of the present invention while ensuring the noise reduction effect by accurately locating the noise.

[0141] The following further introduces an improved speech noise reduction method based on spectral flatness anti-interference provided by another embodiment of the present invention. Figure 4 As shown, Figure 1 Step 103 in or Figure 2 Step 204 in may include the following steps:

[0142] Step 401 : acquiring a posteriori signal-to-noise ratio of a corresponding subband of a next frame based on a noise spectrum to obtain a posteriori signal-to-noise ratio of the next frame.

[0143] Optionally, the process of obtaining the a posteriori signal-to-noise ratio of the corresponding subband of the next frame based on the noise spectrum to obtain the a posteriori signal-to-noise ratio of the next frame may be performed based on the following formula:

[0144]

[0145] Among them, γ(n+1,k) represents the posterior signal-to-noise ratio of the next frame; λ d (n,k) represents the noise spectrum; |Y(n+1,k)| 2 Represents the power spectrum of the corresponding subband in the next frame.

[0146] Step 402: acquiring the a priori signal-to-noise ratio of the corresponding subband of the next frame based on the a posteriori signal-to-noise ratio of the next frame to obtain the a priori signal-to-noise ratio of the next frame.

[0147] Step 403: Obtain the Wiener filter coefficients of the corresponding subband of the next frame based on the priori signal-to-noise ratio of the next frame to obtain the Wiener filter coefficients of the next frame.

[0148] Optionally, the process of obtaining the a priori signal-to-noise ratio of the corresponding subband of the next frame based on the a posteriori signal-to-noise ratio of the next frame to obtain the a priori signal-to-noise ratio of the next frame may be performed based on the following formula:

[0149]

[0150] Among them, ξ(n+1,k) represents the a priori signal-to-noise ratio of the next frame; Y(n,k) represents the amplitude of the spectrum signal of the current frame; G(n,k) represents the Wiener filter coefficient of the subband of the current frame; λ d (n, k) represents the noise spectrum of the subband of the current frame; γ(n+1, k) represents the posterior signal-to-noise ratio of the next frame; a k represents the smoothing parameter with a default value of 0.98.

[0151] Optionally, the process of obtaining the Wiener filter coefficients of the corresponding subband of the next frame based on the priori signal-to-noise ratio of the next frame to obtain the Wiener filter coefficients of the next frame is performed based on the following formula:

[0152]

[0153] Among them, G(n+1,k) represents the Wiener filter coefficient of the next frame; ξ(n+1,k) represents the priori signal-to-noise ratio of the next frame.

[0154] Specifically, for the first frame of audio data, the Wiener filter coefficient can be assigned a preset value. Specifically, the value can be assigned to 1, which can be expressed as:

[0155] G(1,k)=1, (21)

[0156] Step 404 , based on the Wiener filter coefficients of the next frame, a filtering and noise reduction process is performed on the corresponding sub-band of the next frame using a Wiener filter to obtain a noise-reduced corresponding sub-band of the next frame.

[0157] Optionally, the process of filtering and denoising the corresponding sub-band of the next frame using the Wiener filter based on the Wiener filter coefficient of the next frame to obtain the corresponding sub-band of the next frame after denoising is performed based on the following formula:

[0158]

[0159] in, represents the corresponding subband of the next frame after denoising; Y(n+1,k) represents the corresponding subband of the next frame; G(n+1,k) represents the Wiener filter coefficient of the next frame.

[0160] Optionally, before obtaining the noise spectrum smoothing coefficient based on the speech non-existence probability, the posterior signal-to-noise ratio and the prior signal-to-noise ratio of the subband of the current frame are obtained to obtain the posterior signal-to-noise ratio and the prior signal-to-noise ratio of the current frame accordingly.

[0161] Optionally, the process of obtaining the a posteriori signal-to-noise ratio and the a priori signal-to-noise ratio of the current frame subband includes: obtaining the a posteriori signal-to-noise ratio and the a priori signal-to-noise ratio of the current frame subband from a memory.

[0162] Specifically, based on the aforementioned embodiments of the present invention, when obtaining the Wiener filter coefficients of the current frame subband to perform filtering and noise reduction processing on the current frame subband, the posterior signal-to-noise ratio and the prior signal-to-noise ratio of the current frame subband are obtained, and are stored in the memory, so that when the Wiener filter coefficients of the next frame are needed, they can be directly obtained from the memory.

[0163] Optionally, the above process of obtaining the noise spectrum smoothing coefficient based on the probability of speech absence includes: obtaining the probability of speech presence in the current frame subband based on the probability of speech absence, the current frame posterior signal-to-noise ratio and the current frame prior signal-to-noise ratio; and obtaining the noise spectrum smoothing coefficient based on the speech presence probability.

[0164] Optionally, the above-mentioned acquisition of the speech presence probability of the subband of the current frame based on the speech absence probability, the current frame posterior signal-to-noise ratio and the current frame priori signal-to-noise ratio may be performed based on the following formula:

[0165]

[0166] Among them, p(n,k) represents the probability of speech existence in the subband of the current frame; represents the probability of speech non-existence in the subband of the current frame; ξ(n,k) represents the priori signal-to-noise ratio of the current frame; γ(n,k) represents the posteriori signal-to-noise ratio of the current frame.

[0167] Optionally, the process of obtaining the noise spectrum smoothing coefficient based on the speech existence probability may be performed based on the following formula:

[0168]

[0169] in, represents the noise spectrum smoothing coefficient, p(n,k) represents the probability of speech existence in the current frame subband, a d represents a constant parameter with a value of 0.85.

[0170] The embodiment of the present invention is based on the use of a Wiener filter and the characteristic of low computational complexity of the Wiener filter. While ensuring the noise reduction effect, it also saves computing resources, improves the efficiency of running on an embedded platform, and enhances stability and robustness in complex environments.

[0171] Figure 5 1 is a structural diagram of an improved speech noise reduction device based on spectral flatness anti-interference provided by an embodiment of the present invention, and the device is suitable for executing an improved speech noise reduction method based on spectral flatness anti-interference provided by an embodiment of the present invention. Figure 5 As shown, the device may specifically include:

[0172] The low frequency spectrum flatness acquisition module 501 is used to acquire the subband signal corresponding to the current frame audio data to obtain the current frame subband, and calculate the spectrum flatness of the low frequency component in the current frame subband to obtain the low frequency spectrum flatness, where the low frequency component includes the spectrum signals of multiple lowest frequencies in the current frame subband. It is helpful to acquire a more accurate noise spectrum corresponding to the corresponding subband of the next frame based on the acquired low frequency spectrum flatness.

[0173] The noise spectrum acquisition module 502 is used to acquire the noise spectrum of the sub-band of the current frame based on the low frequency spectrum flatness and the power spectrum of the sub-band of the current frame. Based on the spectrum flatness characteristics of the noise spectrum, the noise spectrum in the low-frequency sub-band component corresponding to the current frame audio data can be accurately identified and acquired to avoid treating the low-frequency interference signal as a speech signal, and then a more accurate noise spectrum corresponding to the corresponding sub-band of the next frame can be acquired.

[0174] Optionally, the noise spectrum acquisition module 502 can be specifically used to obtain a noise spectrum smoothing coefficient corresponding to the current frame subband whose value is a first preset value when the low frequency spectrum flatness meets a first preset condition, and obtain the noise spectrum based on the noise spectrum smoothing coefficient and the power spectrum.

[0175] The noise reduction audio frame acquisition module 503 is used to filter and reduce noise on the corresponding subband of the next frame based on the noise spectrum to obtain the corresponding subband of the next frame after noise reduction, and obtain the noise-reduced audio data corresponding to the next frame audio data based on the corresponding subband of the next frame after noise reduction. In combination with modules 501 and 502, by calculating the spectral flatness of the low-frequency component in the subband of the current frame, and obtaining the noise spectrum of the corresponding subband of the current frame based on the corresponding low-frequency spectrum flatness, the noise spectrum in the low-frequency subband component of the current frame audio data can be accurately identified and obtained according to the spectral flatness characteristics of the noise spectrum, so as to avoid treating the low-frequency interference signal as a speech signal, and then obtain a more accurate noise spectrum corresponding to the corresponding subband of the next frame; then, by further filtering and reducing noise on the corresponding subband of the next frame through a Wiener filter based on the more accurate noise spectrum corresponding to the corresponding subband of the next frame, the noise signal in the low-frequency speech signal can be effectively removed, and the noise reduction effect can be improved.

[0176] Optionally, the noise reduction frequency frame acquisition module 503 can be specifically used to obtain the a posteriori signal-to-noise ratio of the corresponding subband of the next frame based on the noise spectrum to obtain the a posteriori signal-to-noise ratio of the next frame; obtain the a priori signal-to-noise ratio of the corresponding subband of the next frame based on the a posteriori signal-to-noise ratio of the next frame to obtain the a priori signal-to-noise ratio of the next frame; obtain the Wiener filter coefficient of the corresponding subband of the next frame based on the a priori signal-to-noise ratio of the next frame to obtain the Wiener filter coefficient of the next frame; and perform filtering and noise reduction processing on the corresponding subband of the next frame using the Wiener filter based on the Wiener filter coefficient of the next frame to obtain the corresponding subband of the next frame after noise reduction.

[0177] Optionally, the improved speech noise reduction device based on spectral flatness anti-interference provided by the present invention further includes: a non-low frequency spectrum flatness calculation module, which is used to calculate the spectral flatness of the non-low frequency component in the current frame subband to obtain the non-low frequency spectrum flatness.

[0178] Optionally, the aforementioned noise spectrum acquisition module 502 can also be specifically used to acquire the noise spectrum based on non-low frequency spectrum flatness, low frequency spectrum flatness and power spectrum.

[0179] Optionally, the aforementioned noise spectrum acquisition module 502 can also be specifically used to, when the low-frequency spectrum flatness does not meet the first preset condition and the non-low-frequency spectrum flatness meets the second preset condition, obtain the noise spectrum smoothing coefficient whose value corresponding to the current frame subband is the second preset value, and obtain the noise spectrum based on the noise spectrum smoothing coefficient and the power spectrum; and when the low-frequency spectrum flatness does not meet the first preset condition and the non-low-frequency spectrum flatness does not meet the second preset condition, obtain the noise spectrum smoothing coefficient based on the power spectrum and the IMCRA algorithm, and obtain the noise spectrum based on the noise spectrum smoothing coefficient and the power spectrum.

[0180] Optionally, the aforementioned noise spectrum acquisition module 502 can also be specifically used to perform frequency domain smoothing and time domain smoothing on the power spectrum in sequence to obtain a first smoothed power spectrum, and based on the first smoothed power spectrum and the first tracking smoothing coefficient, perform continuous minimum value tracking to obtain the global power spectrum minimum of the current frame subband; based on the global power spectrum minimum, determine whether there is a speech signal in the current frame subband, and based on the determination result, obtain a speech non-existence power spectrum corresponding to the current frame subband; perform time domain smoothing on the speech non-existence power spectrum to obtain a second smoothed power spectrum, and based on the second smoothed power spectrum and the second tracking smoothing coefficient, perform continuous minimum value tracking to obtain the local power spectrum minimum corresponding to the current frame subband; and obtain the speech non-existence probability of the current frame subband based on the local power spectrum minimum, and obtain the noise spectrum smoothing coefficient based on the speech non-existence probability.

[0181] Optionally, the first tracking smoothing coefficient is greater than the second tracking smoothing coefficient.

[0182] Optionally, the improved speech noise reduction device based on spectral flatness anti-interference provided by the present invention further includes: a previous frame data acquisition module, which is used to acquire the noise spectrum of the corresponding subband of the previous frame to obtain the corresponding noise spectrum of the previous frame.

[0183] Optionally, the aforementioned noise spectrum acquisition module 502 can also be specifically used to acquire the noise spectrum based on the noise spectrum smoothing coefficient, the power spectrum and the corresponding noise spectrum of the previous frame.

[0184] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the functional modules described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0185] An embodiment of the present invention further 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, the improved speech noise reduction method based on spectral flatness anti-interference provided in any of the above embodiments is implemented.

[0186] An embodiment of the present invention further provides a computer-readable medium having a computer program stored thereon, and when the program is executed by a processor, the improved speech noise reduction method based on spectrum flatness anti-interference provided in any of the above embodiments is implemented.

[0187] An embodiment of the present invention further provides a computer program product, including a computer program. When the computer program is executed by a processor, the improved speech noise reduction method based on spectrum flatness anti-interference as described in any one of the embodiments of the present invention is implemented.

[0188] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of an electronic device suitable for implementing an embodiment of the present invention. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0189] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0190] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0191] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.

[0192] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0193] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0194] The modules and / or units involved in the embodiments of the present invention may be implemented by software or hardware. The modules and / or units described may also be arranged in a processor, for example, may be described as: a processor including a low frequency spectrum flatness acquisition module, a noise spectrum acquisition module and a noise reduction frequency frame acquisition module. The names of these modules do not, in some cases, constitute limitations on the modules themselves.

[0195] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: obtaining a subband signal corresponding to the current frame audio data to obtain the current frame subband, and calculating the spectral flatness of the low-frequency component in the current frame subband to obtain the low-frequency spectrum flatness, the low-frequency component includes the spectrum signals of multiple lowest frequencies in the current frame subband; obtaining the noise spectrum of the current frame subband based on the low-frequency spectrum flatness and the power spectrum of the current frame subband; and filtering and denoising the corresponding subband of the next frame based on the noise spectrum to obtain the corresponding subband of the next frame after denoising, and obtaining the denoised audio data corresponding to the next frame audio data based on the corresponding subband of the next frame after denoising.

[0196] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. An improved speech noise reduction method based on spectral flatness anti-interference, characterized in that: include: Acquire a subband signal corresponding to the current frame audio data to obtain a current frame subband, and calculate the spectral flatness of a low-frequency component in the current frame subband to obtain a low-frequency spectrum flatness, wherein the low-frequency component includes a plurality of spectrum signals with the lowest frequencies in the current frame subband; Acquire the noise spectrum of the current frame subband based on the low frequency spectrum flatness and the power spectrum of the current frame subband; as well as Based on the noise spectrum, filtering and noise reduction processing is performed on the corresponding sub-band of the next frame to obtain the corresponding sub-band of the next frame after noise reduction, and based on the corresponding sub-band of the next frame after noise reduction, the noise reduced audio data corresponding to the audio data of the next frame is obtained.

2. The improved speech noise reduction method based on spectral flatness anti-interference according to claim 1 is characterized in that: The acquiring the noise spectrum of the current frame subband based on the low frequency spectrum flatness and the power spectrum of the current frame subband includes: When the low frequency spectrum flatness satisfies a first preset condition, a noise spectrum smoothing coefficient whose value corresponding to the current frame subband is a first preset value is obtained, and the noise spectrum is obtained based on the noise spectrum smoothing coefficient and the power spectrum.

3. The improved speech noise reduction method based on spectral flatness anti-interference according to claim 1 is characterized in that: Before acquiring the noise spectrum of the current frame subband based on the low frequency spectrum flatness and the power spectrum of the current frame subband, the improved speech noise reduction method based on spectrum flatness anti-interference also includes: Calculating the spectral flatness of the non-low-frequency component in the sub-band of the current frame to obtain the non-low-frequency spectrum flatness; The acquiring the noise spectrum of the current frame subband based on the low frequency spectrum flatness and the power spectrum of the current frame subband includes: The noise spectrum is obtained based on the non-low frequency spectrum flatness, the low frequency spectrum flatness, and the power spectrum.

4. The improved speech noise reduction method based on spectral flatness anti-interference according to claim 3 is characterized in that: The acquiring the noise spectrum based on the non-low frequency spectrum flatness, the low frequency spectrum flatness and the power spectrum comprises: When the low frequency spectrum flatness does not satisfy a first preset condition and the non-low frequency spectrum flatness satisfies a second preset condition, obtaining a noise spectrum smoothing coefficient whose value corresponding to the current frame subband is a second preset value, and obtaining the noise spectrum based on the noise spectrum smoothing coefficient and the power spectrum; and When the low frequency spectrum flatness does not meet the first preset condition and the non-low frequency spectrum flatness does not meet the second preset condition, the noise spectrum smoothing coefficient is obtained based on the power spectrum and the IMCRA algorithm, and the noise spectrum is obtained based on the noise spectrum smoothing coefficient and the power spectrum.

5. The improved speech noise reduction method based on spectrum flatness anti-interference according to claim 4 is characterized in that: The obtaining the noise spectrum smoothing coefficient based on the power spectrum and the IMCRA algorithm includes: The power spectrum is subjected to frequency domain smoothing and time domain smoothing to obtain a first smoothed power spectrum, and based on the first smoothed power spectrum and a first tracking smoothing coefficient, continuous minimum value tracking is performed to obtain a global power spectrum minimum value of the current frame subband; Determine whether there is a speech signal in the current frame subband based on the minimum value of the global power spectrum, and obtain a speech non-existence power spectrum corresponding to the current frame subband based on the determination result; Performing time-domain smoothing on the speech-absent power spectrum to obtain a second smoothed power spectrum, and performing continuous minimum value tracking based on the second smoothed power spectrum and a second tracking smoothing coefficient to obtain a local power spectrum minimum corresponding to the current frame subband; and The speech non-existence probability of the sub-band of the current frame is obtained based on the local power spectrum minimum value, and the noise spectrum smoothing coefficient is obtained based on the speech non-existence probability.

6. The improved speech noise reduction method based on spectrum flatness anti-interference according to claim 5 is characterized in that: The first tracking smoothing coefficient is greater than the second tracking smoothing coefficient.

7. The improved speech noise reduction method based on spectrum flatness anti-interference according to claim 1 is characterized in that: The filtering and denoising the corresponding sub-band of the next frame based on the noise spectrum to obtain the corresponding sub-band of the next frame after denoising includes: Acquire the a posteriori signal-to-noise ratio of the corresponding subband of the next frame based on the noise spectrum to obtain the a posteriori signal-to-noise ratio of the next frame; Acquiring the a priori signal-to-noise ratio of the corresponding subband of the next frame based on the a posteriori signal-to-noise ratio of the next frame to obtain the a priori signal-to-noise ratio of the next frame; Acquire the Wiener filter coefficients of the corresponding subband of the next frame based on the priori signal-to-noise ratio of the next frame to obtain the Wiener filter coefficients of the next frame; and Based on the Wiener filter coefficient of the next frame, a filtering and noise reduction process is performed on the corresponding sub-band of the next frame using a Wiener filter to obtain the corresponding sub-band of the next frame after noise reduction.

8. The improved speech noise reduction method based on spectrum flatness anti-interference according to claim 5 is characterized in that: Before acquiring the noise spectrum smoothing coefficient based on the speech non-existence probability, the improved speech noise reduction method based on spectral flatness anti-interference further includes: acquiring the a posteriori signal-to-noise ratio and the a priori signal-to-noise ratio of the subband of the current frame, and correspondingly obtaining the a posteriori signal-to-noise ratio and the a priori signal-to-noise ratio of the current frame; The obtaining the noise spectrum smoothing coefficient based on the speech non-existence probability comprises: Based on the speech non-existence probability, the current frame a posteriori signal-to-noise ratio, and the current frame a priori signal-to-noise ratio, acquiring the speech existence probability of the subband of the current frame; and The noise spectrum smoothing coefficient is obtained based on the speech existence probability.

9. The improved speech noise reduction method based on spectrum flatness anti-interference according to claim 2 or 4, characterized in that: Before acquiring the noise spectrum based on the noise spectrum smoothing coefficient and the power spectrum, the improved speech noise reduction method based on spectrum flatness anti-interference further includes: Obtain the noise spectrum of the corresponding subband of the previous frame to obtain the corresponding noise spectrum of the previous frame; The acquiring the noise spectrum based on the noise spectrum smoothing coefficient and the power spectrum comprises: The noise spectrum is acquired based on the noise spectrum smoothing coefficient, the power spectrum and the corresponding noise spectrum of the previous frame.

10. An improved speech noise reduction device based on spectrum flatness anti-interference, characterized in that: include: A low frequency spectrum flatness acquisition module, used to acquire a subband signal corresponding to the current frame audio data to obtain a current frame subband, and calculate the spectrum flatness of a low frequency component in the current frame subband to obtain a low frequency spectrum flatness, wherein the low frequency component includes a plurality of spectrum signals with the lowest frequencies in the current frame subband; A noise spectrum acquisition module, configured to acquire the noise spectrum of the current frame sub-band based on the low frequency spectrum flatness and the power spectrum of the current frame sub-band; as well as The noise reduction audio frame acquisition module is used to perform filtering and noise reduction processing on the corresponding sub-band of the next frame based on the noise spectrum to obtain the corresponding sub-band of the next frame after noise reduction, and obtain the noise reduced audio data corresponding to the next frame audio data based on the corresponding sub-band of the next frame after noise reduction.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the improved speech noise reduction method based on spectral flatness anti-interference as described in any one of claims 1 to 9 is implemented.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the improved speech noise reduction method based on spectrum flatness anti-interference as claimed in any one of claims 1 to 9 is implemented.

13. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the improved speech noise reduction method based on spectrum flatness and anti-interference according to any one of claims 1 to 9 is implemented.

Citation Information

Cited By

  • Voice noise reduction method and device based on Mel energy feature dimensionality reduction extraction, and storage medium

    CN121171241A

  • Audio processing method and device, electronic equipment and storage medium

    CN122511282A