Noise estimation method, noise reduction method and electronic equipment

By obtaining the fundamental frequency and voice state of the audio signal, calculating the signal power of each frequency point and determining the noise estimate, the problem of balancing noise tracking speed and voice quality in VOIP conferences is solved, and fast noise with less damage to voice is achieved. It is estimated that the quality of conference calls has been improved.

CN112735458BActive Publication Date: 2024-08-27SUZHOU KEDA TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011582654.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-28
Publication Date
2024-08-27
Estimated Expiration
2040-12-28

AI Technical Summary

Technical Problem

Existing noise estimation methods are difficult to balance noise tracking speed and voice quality in VOIP conference scenarios, resulting in noise being underestimated or voice being damaged.

Method used

By obtaining the fundamental frequency and speech state of the audio signal, the signal power of each frequency point is calculated, and the noise estimate is determined based on the pitch tracking and speech state to avoid noise overestimation or speech damage and improve the noise tracking speed.

Benefits of technology

It achieves fast noise estimation with less damage to voice quality in VOIP conferences, balances noise tracking speed and voice quality, and improves the intelligibility and noise suppression effect of conference calls.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112735458B
    Figure CN112735458B
Patent Text Reader

Abstract

The present invention relates to the field of audio processing technology, and specifically to a noise estimation method, a noise reduction method and an electronic device, wherein the noise estimation method comprises obtaining audio to be processed, obtaining the fundamental frequency and speech state of the audio to be processed; calculating the signal power of each frequency point of the current frame in the audio to be processed; determining the audio state of each frequency point of the current frame based on the sequence number of each frequency point of the current frame, the fundamental frequency and the speech state; determining the noise estimation value of each frequency point of the current frame according to the audio state of each frequency point of the current frame and the signal power of each frequency point. Noise estimation based on pitch tracking can ensure speech quality; and it also ensures tracking speed in combination with the speech state, thereby balancing speech quality and tracking speed, and realizing fast noise estimation with less damage to speech.
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 a noise estimation method, a noise reduction method and an electronic device. Background Art

[0002] In VOIP applications, such as software video conferencing and VOIP telephone conferencing, noise reduction plays a vital role, and the performance of its algorithm directly affects the quality of user conference calls.

[0003] In theory, noise reduction can be achieved through noise estimation and Wiener filtering. However, in actual conference scenarios, there are many types of noise, such as current noise, fan noise, air conditioning noise, keyboard noise, mouse click noise, etc., and the composition of noise is relatively complex, so it is particularly difficult to estimate noise. Therefore, the timeliness and accuracy of noise estimation directly affect the effect of noise reduction.

[0004] In the existing technology, the main means of realizing noise estimation is the minimum statistical noise estimation method, which uses the search for the minimum value in the noise estimation window as the noise estimate. This noise estimation algorithm is sensitive to the selection of window length. When the window length is relatively long, the tracking speed of non-stationary noise is slow, and the noise is easily underestimated. After noise reduction, obvious noise is still perceived. When the window length is relatively short, it is easy to estimate speech with low energy as noise, causing damage to the speech and affecting the intelligibility of the conference speech. Therefore, this method is difficult to ensure a balance between noise tracking speed and speech quality. Summary of the invention

[0005] In view of this, embodiments of the present invention provide a noise estimation method, a noise reduction method and an electronic device to solve the problem of balancing the noise tracking speed and the voice quality.

[0006] According to a first aspect, an embodiment of the present invention provides a noise estimation method, the method comprising:

[0007] Acquire the audio to be processed, and acquire the fundamental frequency and voice status of the audio to be processed;

[0008] Calculating the signal power of each frequency point of the current frame in the audio to be processed;

[0009] Determine the audio state of each frequency point of the current frame based on the sequence number of each frequency point of the current frame, the fundamental frequency and the voice state;

[0010] The noise estimation value of each frequency point of the current frame is determined according to the audio state of each frequency point of the current frame and the signal power of each frequency point.

[0011] The noise estimation method provided by the embodiment of the present invention performs noise estimation based on the audio state of each frequency point and the signal power of each frequency point, that is, performs noise estimation based on pitch tracking, which can ensure voice quality; and also combines the voice state to ensure the tracking speed, thereby balancing the voice quality and the tracking speed, and realizing fast noise estimation with less damage to the voice.

[0012] In combination with the first aspect, in a first implementation of the first aspect, determining the audio state of each frequency point of the current frame based on the sequence number of each frequency point of the current frame, the fundamental frequency, and the voice state includes:

[0013] Determine whether each frequency point is a frequency point where the target speech is located by using the sequence number of each frequency point and the fundamental frequency;

[0014] The speech state is used to determine whether the current frame has speech.

[0015] The noise estimation method provided by the embodiment of the present invention determines the frequency point where the target speech is located to avoid frequency point noise damage of the target speech, and at the same time determines whether there is speech in the current frame, so as to accelerate the processing of the non-speech segment later and improve the noise tracking speed.

[0016] In combination with the first implementation of the first aspect, in the second implementation of the first aspect, using the sequence number of each frequency point and the fundamental frequency to determine whether each frequency point is a frequency point where the target speech is located includes:

[0017] Obtaining the sampling rate of the current frame;

[0018] Determine a fundamental frequency sequence number based on the sampling rate, the number of frequency points of the current frame, and the fundamental frequency;

[0019] It is determined whether the sequence number of each frequency point is an integer multiple of the fundamental pitch sequence number, so as to determine whether each frequency point is a frequency point where the target speech is located.

[0020] The noise estimation method provided in the embodiment of the present invention compares the serial number of each frequency point with the integer multiple of the gene serial number to determine whether each frequency point corresponds to the fundamental frequency or the harmonic frequency, which can effectively avoid over-estimation of noise in these frequency bands and reduce damage to speech.

[0021] In combination with the first implementation manner of the first aspect, in the third implementation manner of the first aspect, determining the noise estimation value of each frequency point of the current frame according to the audio state of each frequency point of the current frame and the signal power of each frequency point includes:

[0022] When the audio state of the current frequency point of the current frame is the frequency point where the target speech is located, obtaining a historical noise estimation value of a sequence number corresponding to the current frequency point in a previous frame of the current frame;

[0023] Based on the historical noise estimation value and the signal power of the current frequency point, a noise estimation value of the current frequency point is determined.

[0024] The noise estimation method provided by the embodiment of the present invention uses the noise estimation value of the previous frame to represent the current frame for the frequency point where the target speech is located, so as to stop updating the noise estimation for the current frame, thereby not causing damage to the key frequency points of the speech.

[0025] In combination with the third implementation manner of the first aspect, in the fourth implementation manner of the first aspect, the noise estimation value of the current frequency point is expressed by the following formula:

[0026] N(l,k)=min{N(l-1,k),P(l,k)};

[0027] Among them, N(l,k) is the noise estimation value of the current frequency point k, N(l-1,k) is the historical noise estimation value, is the signal power of the current frequency point k, and l is the sequence number of the current frame in the audio to be processed.

[0028] In combination with the third implementation manner of the first aspect, in the fifth implementation manner of the first aspect, determining the noise estimation value of each frequency point of the current frame according to the audio state of each frequency point of the current frame and the signal power of each frequency point includes:

[0029] When the audio state of the current frequency point of the current frame is a frequency point where a non-target voice is located and the current frame has no voice, obtaining a minimum signal power estimation value and an acceleration coefficient corresponding to the current frequency point;

[0030] A noise estimation value of the current frequency point is determined based on the minimum signal power estimation value, the acceleration coefficient, and the signal power of the current frequency point.

[0031] The noise estimation method provided by the embodiment of the present invention uses an acceleration coefficient to accelerate the estimation of noise when the frequency point where the non-target speech is located and there is no speech in the current frame, thereby improving the tracking speed.

[0032] In combination with the fifth implementation of the first aspect, in the sixth implementation of the first aspect, the noise estimation value of the current frequency point is expressed by the following formula:

[0033] N(l,k)=min{β*P min (l,k),P(l,k)};

[0034] Wherein, N(l,k) is the noise estimation value of the current frequency point k, β is the acceleration coefficient and β>0, P min (l, k) is the minimum signal power estimation value corresponding to the current frequency point k, P(l, k) is the signal power of the current frequency point k, and l is the sequence number of the current frame in the audio to be processed.

[0035] In combination with the third implementation manner of the first aspect, in the seventh implementation manner of the first aspect, determining the noise estimation value of each frequency point of the current frame according to the audio state of each frequency point of the current frame and the signal power of each frequency point includes:

[0036] When the audio state of the current frequency point of the current frame is a frequency point where a non-target voice is located and the current frame has voice, obtaining a minimum signal power estimation value corresponding to the current frequency point;

[0037] The minimum signal power estimation value is determined as the noise estimation value of the current frequency point.

[0038] The noise estimation method provided by the embodiment of the present invention can track a noise level that is relatively close to the actual level by using the minimum signal power estimation value to determine the noise estimation of the current frequency point when the frequency point where the non-target speech is located and the current frame has speech.

[0039] According to a second aspect, an embodiment of the present invention further provides a noise reduction method, the method comprising:

[0040] According to the first aspect of the present invention, or the noise estimation method described in any one of the embodiments of the first aspect, determining a noise estimation value in the audio to be processed;

[0041] The audio to be processed is subjected to noise reduction processing based on the noise estimation value to obtain a target speech signal.

[0042] The noise reduction method provided in the embodiment of the present invention realizes joint judgment through signal power, speech state and fundamental frequency, and determines different noise estimation methods based on different judgment results. It can quickly track a noise level that is relatively close to the actual level without causing damage to the key frequency points of the speech, thereby ensuring the quality of the obtained target speech signal.

[0043] According to a third aspect, an embodiment of the present invention further provides a noise estimation device, the device comprising:

[0044] An acquisition module, used to acquire the audio to be processed, and acquire the fundamental frequency and voice status of the audio to be processed;

[0045] A calculation module, used to calculate the signal power of each frequency point of the current frame in the audio to be processed;

[0046] A first determination module, configured to determine the audio state of each frequency point of the current frame based on the sequence number of each frequency point of the current frame, the fundamental frequency and the voice state;

[0047] The second determination module is used to determine the noise estimation value of each frequency point of the current frame according to the audio state of each frequency point of the current frame and the signal power of each frequency point.

[0048] The noise estimation device provided by the embodiment of the present invention performs noise estimation based on the audio state of each frequency point and the signal power of each frequency point, that is, performs noise estimation based on pitch tracking, which can ensure voice quality; and also combines the voice state to ensure the tracking speed, thereby balancing the voice quality and the tracking speed, and realizing fast noise estimation with less damage to the voice.

[0049] According to a fourth aspect, an embodiment of the present invention further provides a noise reduction device, the device comprising:

[0050] A noise estimation module, configured to determine a noise estimation value of the audio to be processed according to the noise estimation method described in the first aspect of the present invention or any one of the embodiments of the first aspect;

[0051] The noise reduction module is used to perform noise reduction processing on the audio to be processed based on the noise estimation value to obtain a target speech signal.

[0052] The noise reduction device provided in the embodiment of the present invention realizes joint judgment through signal power, speech state and fundamental frequency, and determines different noise estimation methods based on different judgment results. It can quickly track a noise level that is relatively close to the actual level without causing damage to the key frequency points of the speech, thereby ensuring the quality of the obtained target speech signal.

[0053] According to the fifth aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to execute the noise estimation method described in the first aspect or any one of the embodiments of the first aspect, or execute the noise reduction method described in the second aspect.

[0054] According to the sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the noise estimation method described in the first aspect or any one of the embodiments of the first aspect, or execute the noise reduction method described in the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0056] Figure 1 is a flow chart of a noise estimation method according to an embodiment of the present invention;

[0057] Figure 2 A schematic diagram of an application scenario of noise estimation in an embodiment of the present invention is shown;

[0058] Figure 3 is a flow chart of a noise estimation method according to an embodiment of the present invention;

[0059] Figure 4 is a flow chart of a noise estimation method according to an embodiment of the present invention;

[0060] Figure 5 is a flow chart of a noise estimation method according to an embodiment of the present invention;

[0061] Figure 6 is a flow chart of a noise reduction method according to an embodiment of the present invention;

[0062] Figure 7 is a structural block diagram of a noise estimation device according to an embodiment of the present invention;

[0063] Figure 8 is a structural block diagram of a noise reduction device according to an embodiment of the present invention;

[0064] Fig. 9 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0065] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0066] According to an embodiment of the present invention, a noise estimation method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0067] In this embodiment, a noise estimation method is provided, which can be used in electronic devices such as conference terminals, computers, mobile phones, tablet computers, etc. Figure 1 is a flow chart of a noise estimation method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0068] S11, obtaining the audio to be processed, and obtaining the fundamental frequency and voice status of the audio to be processed.

[0069] The audio to be processed may be collected by the electronic device in real time, or acquired by the electronic device from the outside world, etc., and may be specifically set accordingly according to actual conditions.

[0070] The base frequency of the audio to be processed may be detected by the base frequency detection module after the electronic device obtains the audio to be processed, or may be obtained by the electronic device from the outside, etc. The method for the electronic device to obtain the base frequency or the method for the electronic device to detect the base frequency is not limited in any way.

[0071] The voice status is used to indicate whether there is voice in each audio frame of the audio to be processed, that is, whether it is a silent frame or a non-silent frame. Furthermore, whether each audio frame is a valid voice frame or an invalid voice frame, and the valid voice frame is an audio frame with human voice. The electronic device may obtain the voice status of the audio to be processed from the outside, or the electronic device may detect the voice status using a voice activity detector after obtaining the audio to be processed, or obtain the voice status in other ways.

[0072] For example, Figure 2 As shown, the audio to be processed is input into the electronic device, and the electronic device uses a pitch detector to detect the fundamental frequency of the audio to be processed, and uses a voice activity detector to detect the voice state of the audio to be processed. Wherein, the pitch detector and the voice activity detector can be software processing modules pre-installed in the electronic device, and the corresponding functions are implemented by calling the corresponding modules through the interface. Wherein, the voice state is represented by the voice state flag VadFlag, and the fundamental frequency output by the pitch detector is represented as PitchFreq. When VadFlag=1, it indicates that there is voice in the current frame, and when VadFlag=0, it indicates that there is no voice in the current frame.

[0073] S12, calculating the signal power of each frequency point of the current frame in the audio to be processed.

[0074] After the electronic device obtains the audio to be processed, it calculates the signal power of each frequency point in each frame of the audio to be processed in sequence. For example, it can first perform frame splicing and windowing on each frame; then perform Fourier transform on the windowed signal frame to convert it into a frequency-domain signal; finally, calculate the signal power of each frame at each frequency point.

[0075] Specifically, the electronic device performs frame splicing and windowing on the current frame x(n) (a speech signal with a sampling rate of 48 kHz) in the audio to be processed. Considering the short-term stationarity of speech, frame splicing is performed with a 50% frame shift, and windowing is performed with a Hanning window of length N = 1024 points. Its expression is:

[0076]

[0077] The electronic device performs a fast Fourier transform on the signal after windowing the current l frame to convert it into a frequency-domain signal Y(l,k). Its expression is:

[0078] where N is the number of Fourier transform points.

[0079] Calculate the signal power P(l,k) at the k frequency point (0 < k ≤ N) on the current frame (l frame). Its calculation expression is:

[0080] P(l,k) = α * P(l - 1,k) + (1 - α) * |Y(l,k)| 2 ;

[0081] where α is the smoothing coefficient, and its value is 0.93.

[0082] It should be noted that the method for calculating the signal power described above is only a feasible implementation manner, but the protection scope of the present invention is not limited thereto, and other methods can also be used to calculate the signal power of each frequency point of the current frame.

[0083] S13. Based on the sequence numbers of each frequency point, the fundamental frequency, and the speech state of the current frame, determine the audio state of each frequency point of the current frame.

[0084] After the electronic device obtains the fundamental frequency, it can convert the fundamental frequency into a pitch number by using the sampling rate of the current frame, that is, the sequence number of the frequency point where the pitch is located. Among them, the frequency point where the target speech is located is the frequency point where the pitch is located or the frequency point where the harmonic is located. Therefore, the electronic device can first convert the fundamental frequency into the sequence number of the frequency point where the pitch is located, and then use the sequence numbers of each frequency point of the current frame and the sequence number of the frequency point where the pitch is located to determine whether each frequency point of the current frame is the frequency point where the target speech is located.

[0085] As mentioned above, the speech state can be represented by the state flag bit, and the electronic device can use the value of the state flag bit to determine whether there is speech in the current frame. Furthermore, by combining the above two comparison judgments, the audio state of each frequency point in the current frame can be determined.

[0086] S14, determining a noise estimation value of each frequency point of the current frame according to the audio state of each frequency point of the current frame and the signal power of each frequency point.

[0087] When the electronic device determines the audio status of each frequency point, it adopts different noise estimation methods for different audio states. For example, if the current frequency point of the current frame is the frequency point where the target voice is located, the noise estimation is stopped at the current frequency point; when there is no voice at the current frequency point of the current frame, the noise estimation can be accelerated at the current frequency point; when there is voice at the current frequency point of the current frame, the noise estimation needs to be performed on the current frequency point.

[0088] This step will be described in detail below.

[0089] The noise estimation method provided in this embodiment performs noise estimation based on the audio state of each frequency point and the signal power of each frequency point, that is, performs noise estimation based on pitch tracking, which can ensure voice quality; and also combines the voice state to ensure the tracking speed, thereby balancing the voice quality and the tracking speed, and realizing fast noise estimation with less damage to the voice.

[0090] In this embodiment, a noise estimation method is provided, which can be used in electronic devices such as computers, mobile phones, tablet computers, etc. Figure 3 is a flow chart of a noise estimation method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:

[0091] S21, obtaining the audio to be processed, and obtaining the fundamental frequency and voice status of the audio to be processed.

[0092] For details, please see Figure 1 S11 of the illustrated embodiment will not be described in detail here.

[0093] S22, calculating the signal power of each frequency point of the current frame in the audio to be processed.

[0094] For details, please see Figure 1 S11 of the illustrated embodiment will not be described in detail here.

[0095] S23, determining the audio status of each frequency point of the current frame based on the sequence number, fundamental frequency and the speech status of each frequency point of the current frame.

[0096] Specifically, the above S23 may include the following steps:

[0097] S231, using the sequence number and fundamental frequency of each frequency point, determine whether each frequency point is the frequency point where the target voice is located.

[0098] As described above, after obtaining the fundamental frequency, the electronic device can convert the fundamental frequency into a fundamental tone sequence number using the sampling rate of the current frame.

[0099] Specifically, the above S231 may include the following steps:

[0100] (1) Get the sampling rate of the current frame.

[0101] The sampling rate of the current frame may be set, or may be acquired by the electronic device from the outside, etc. As shown in the above S12, the sampling rate of the current frame is 48 khz.

[0102] (2) Determine the fundamental frequency sequence number based on the sampling rate, the number of frequency points in the current frame, and the fundamental frequency.

[0103] The number of frequency points in the current frame is the number of Fourier transform points N. Electronic equipment can calculate the fundamental frequency number using the following formula: N*PitchFreq / fs

[0104] Wherein, N is the number of Fourier transform points, that is, the number of frequency points of the current frame, and fs is the sampling rate.

[0105] (3) Determine whether the sequence number of each frequency point is an integer multiple of the fundamental pitch sequence number to determine whether each frequency point is the frequency point where the target speech is located.

[0106] When the electronic device estimates the noise at each frequency point, it first determines whether the sequence number of each frequency point is an integer multiple of the fundamental tone sequence number. If it is an integer multiple of the fundamental tone sequence number, the current frequency point is considered to be the frequency point where the target speech is located; if it is not an integer multiple of the fundamental tone sequence number, the current frequency point is considered not to be the frequency point where the target speech is located.

[0107] Comparing the serial number of each frequency point with the integer multiple of the gene serial number to determine whether each frequency point corresponds to the fundamental frequency or the harmonic frequency can effectively avoid overestimation of noise in these frequency bands and reduce damage to speech.

[0108] S232, using the speech status to determine whether there is speech in the current frame.

[0109] Furthermore, the electronic device also uses the voice status of each frame to determine whether there is voice in each frame. If the value of the voice status flag VadFlag corresponding to the current frame is 0, it means that there is no voice in the current frame; if the value of the voice status flag VadFlag corresponding to the current frame is 1, it means that there is voice in the current frame.

[0110] That is, the electronic device can determine the audio status of each frequency point through the processing of S231 to S232.

[0111] S24, determining a noise estimation value of each frequency point of the current frame according to the audio state of each frequency point of the current frame and the signal power of each frequency point.

[0112] For details, please see Figure 1 S14 of the illustrated embodiment will not be described in detail here.

[0113] The noise estimation method provided in this embodiment determines the frequency point where the target speech is located to avoid frequency point noise damage of the target speech, and at the same time determines whether there is speech in the current frame, so as to accelerate the processing of the non-speech segment later and improve the noise tracking speed.

[0114] In this embodiment, a noise estimation method is provided, which can be used in electronic devices such as computers, mobile phones, tablet computers, etc. Figure 4 is a flow chart of a noise estimation method according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:

[0115] S31, obtaining the audio to be processed, and obtaining the fundamental frequency and voice status of the audio to be processed.

[0116] For details, please see Figure 3 S21 of the illustrated embodiment will not be described in detail here.

[0117] S32, calculating the signal power of each frequency point of the current frame in the audio to be processed.

[0118] For details, please see Figure 3 S22 of the illustrated embodiment will not be described in detail here.

[0119] S33, determining the audio status of each frequency point of the current frame based on the sequence number, fundamental frequency and the voice status of each frequency point of the current frame.

[0120] For details, see Figure 3 S23 of the illustrated embodiment will not be described in detail here.

[0121] S34, determining a noise estimation value of each frequency point of the current frame according to the audio state of each frequency point of the current frame and the signal power of each frequency point.

[0122] Specifically, the above S34 may include the following steps:

[0123] S341, when the audio state of the current frequency point of the current frame is the frequency point where the target speech is located, obtain the historical noise estimation value of the sequence number corresponding to the current frequency point in the previous frame of the current frame.

[0124] As described above, the electronic device has determined the audio state of the current frequency point of the current frame in the above S33, specifically including whether the current frequency point is the frequency point where the target voice is located, and whether the current frame where the current frequency point is located has voice.

[0125] The electronic device can perform different noise estimation based on different speech states of the current frequency. Specifically, when the audio state of the current frequency of the current frame is the frequency of the target speech, that is, the sequence number of the current frequency is an integer multiple of the fundamental tone sequence number, the noise estimation needs to be stopped.

[0126] The electronic device needs to obtain the historical noise estimation value of the serial number corresponding to the current frequency point in the previous frame of the current frame, and use the historical noise estimation value to realize the noise estimation of the current frequency point.

[0127] S342: Determine a noise estimation value at a current frequency based on historical noise estimation values ​​and the signal power at the current frequency.

[0128] The electronic device can take the minimum value of the historical noise estimation value and the signal power of the current frequency as the noise estimation value of the current frequency; it can also calculate the average value of the historical noise estimation value and the signal power of the current frequency as the noise estimation value of the current frequency, and so on.

[0129] Specifically, the noise estimation value of the current frequency point is expressed by the following formula:

[0130] N(l,k)=min{N(l-1,k),P(l,k)}

[0131] Among them, N(l,k) is the noise estimation value of the current frequency point k, N(l-1,k) is the historical noise estimation value, is the signal power of the current frequency point k, and l is the sequence number of the current frame in the audio to be processed.

[0132] S343, when the audio state of the current frequency point of the current frame is a frequency point where a non-target voice is located and there is no voice in the current frame, obtain a minimum signal power estimation value and an acceleration coefficient corresponding to the current frequency point.

[0133] When the current frequency point is not the frequency point where the target speech is located and there is no speech in the current frame, the current frequency point needs to be estimated by accelerating the noise. The electronic device needs to estimate the signal power of the current frequency point and determine the minimum signal power estimation value corresponding to the current frequency point; at the same time, the acceleration coefficient is used to estimate the noise of the current frequency point.

[0134] Among them, the electronic device can obtain the signal power P(l,k) of the current frequency point, perform D consecutive estimates on it, and then calculate the minimum signal power estimation value P minFor example, the following formula is used to calculate the minimum signal power estimate P corresponding to the current frequency point: min (l,k):

[0135] ifmod(l / D)=0

[0136] P min (l,k)=min{P tmp (l-1,k),P(l,k)}

[0137] P tmp (l,k)=P(l,k)

[0138] else

[0139] P min (l,k)=min{P tmp (l-1,k),P(l,k)}

[0140] P tmp (l,k)=min{P tmp (l-1,k),P(l,k)}

[0141] end

[0142] Wherein, D is a relatively large value. Considering the influence of speech gap and reverberation in different conference environments, in this embodiment, the value of D can be 150, which is about 1.5 seconds. tmp (l,k) is a temporary variable in the estimation process.

[0143] S344, determining a noise estimation value of the current frequency point based on the minimum signal power estimation value, the acceleration coefficient, and the signal power of the current frequency point.

[0144] Specifically, the noise estimation value of the current frequency point is expressed by the following formula:

[0145] N(l,k)=min{β*P min (l,k),P(l,k)};

[0146] Wherein, N(l,k) is the noise estimation value of the current frequency point k, β is the acceleration coefficient and β>0, P min (l, k) is the minimum signal power estimation value corresponding to the current frequency point k, P(l, k) is the signal power of the current frequency point k, and l is the sequence number of the current frame in the audio to be processed.

[0147] S345, when the audio state of the current frequency point of the current frame is a frequency point where a non-target voice is located and there is voice in the current frame, obtain a minimum signal power estimation value corresponding to the current frequency point.

[0148] When the audio state of the electronic device at the current frequency point is the frequency point where the target speech is located and there is speech in the current frame, the minimum signal power estimation value corresponding to the current frequency point is calculated. The specific calculation method can be referred to the above S343 and will not be repeated here.

[0149] S346, determining the minimum signal power estimation value as the noise estimation value of the current frequency point.

[0150] After acquiring the minimum signal power estimation value corresponding to the current frequency point, the electronic device determines the minimum signal power estimation value as the noise estimation value of the current frequency point.

[0151] The noise estimation method provided in this embodiment uses the noise estimation value of the previous frame to represent the current frame for the frequency point where the target speech is located, so as to stop updating the noise estimation for the current frame, thereby not causing damage to the key frequency points of the speech; for the frequency point where the non-target speech is located and there is no speech in the current frame, the acceleration coefficient is used to accelerate the estimation of the noise, thereby improving the tracking speed; for the frequency point where the non-target speech is located and there is speech in the current frame, the minimum signal power estimation value is used to determine the noise estimation of the current frequency point, so as to track a noise that is relatively close to the actual level.

[0152] As a specific application example of this embodiment, Figure 5 As shown, the noise estimation method may include the following steps:

[0153] (1) The electronic device calculates the signal power of each frequency point in the current frame of the audio to be processed;

[0154] (2) determining whether the current frequency is the frequency of the target speech. If the current frequency is the frequency of the target speech, executing step (3); otherwise, executing step (4);

[0155] (3) Stop noise estimation and use the above S342 to determine the noise estimation value of the current frequency point;

[0156] (4) Determine whether there is speech at the current frequency point. If there is no speech at the current frequency point, execute step (5); otherwise, execute step (6);

[0157] (5) Accelerating noise estimation, using the above S344 to determine the noise estimation value of the current frequency point;

[0158] (6) Search for the minimum signal power signal estimation value and update the noise estimation, using the above S346 to determine the noise estimation value of the current frequency point.

[0159] The noise estimation method provided in this embodiment has a fast noise reduction tracking speed: the accelerated tracking of noise in the speech-free segment can quickly improve the noise estimation and avoid the design of a long statistical window length that leads to a small estimated noise; the speech intelligibility is high: the fundamental frequency and harmonic frequency of the speech signal can be quickly identified by tracking the fundamental frequency of the speech signal, which can effectively avoid over-estimation of noise in these frequency bands and reduce the damage to the speech.

[0160] According to an embodiment of the present invention, a noise reduction method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0161] In this embodiment, a noise reduction method is provided, which can be used in electronic devices such as computers, mobile phones, tablet computers, etc. Figure 6 is a flow chart of a noise estimation method according to an embodiment of the present invention. Figure 6 As shown, the process includes the following steps:

[0162] S41: Determine a noise estimation value in the audio to be processed according to the noise estimation method described in any one of the above implementations.

[0163] Please refer to the description of the above embodiment for details, which will not be repeated here.

[0164] S42, performing noise reduction processing on the audio to be processed based on the noise estimation value to obtain a target speech signal.

[0165] After determining the noise estimation value of the current frequency point, the electronic device suppresses the noise to achieve speech enhancement. Figure 2 As shown, a Wiener filter suppression function can be used to filter out the noise estimation value in the audio to be processed, thereby obtaining a noise-reduced target speech signal out(n).

[0166] The Wiener filter suppression function can be expressed by the following formula:

[0167]

[0168] Among them, H(l,k) is the result of filtering at the current frequency point.

[0169] The noise reduction method provided in this embodiment realizes joint judgment through signal power, speech state and fundamental frequency, and determines different noise estimation methods based on different judgment results. It can not only quickly track a noise level that is relatively close to the actual level, but also will not cause damage to the key frequency points of the speech, thereby ensuring the quality of the obtained target speech signal.

[0170] In the present embodiment, a noise estimation device or a noise reduction device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions thereof will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and contemplated.

[0171] This embodiment provides a noise estimation device, such as Figure 7 As shown, including:

[0172] An acquisition module 51 is used to acquire the audio to be processed, and acquire the fundamental frequency and voice state of the audio to be processed;

[0173] A calculation module 52, used to calculate the signal power of each frequency point of the current frame in the audio to be processed;

[0174] A first determination module 53, configured to determine the audio state of each frequency point of the current frame based on the sequence number of each frequency point of the current frame, the fundamental frequency and the speech state;

[0175] The second determination module 54 is configured to determine the noise estimation value of each frequency point of the current frame according to the audio state of each frequency point of the current frame and the signal power of each frequency point.

[0176] The noise estimation device provided in this embodiment performs noise estimation based on the audio state of each frequency point and the signal power of each frequency point, that is, performs noise estimation based on pitch tracking, which can ensure voice quality; and also combines the voice state to ensure the tracking speed, thereby balancing the voice quality and the tracking speed, and realizing fast noise estimation with less damage to the voice.

[0177] This embodiment provides a noise reduction device, such as Figure 8 As shown, including:

[0178] A noise estimation module 61, configured to determine a noise estimation value of the audio to be processed according to the noise estimation method described in the first aspect of the present invention or any one of the embodiments of the first aspect;

[0179] The noise reduction module 62 is used to perform noise reduction processing on the audio to be processed based on the noise estimation value to obtain a target speech signal.

[0180] The noise reduction device provided in this embodiment realizes joint judgment through signal power, speech state and fundamental frequency, and determines different noise estimation methods based on different judgment results. It can not only quickly track a noise level that is relatively close to the actual level, but also will not cause damage to the key frequency points of the speech, thereby ensuring the quality of the obtained target speech signal.

[0181] The noise estimation device or noise reduction device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0182] The further functional description of each of the above modules is the same as that of the above corresponding embodiments and will not be repeated here.

[0183] The embodiment of the present invention also provides an electronic device having the above Figure 7 The noise estimation device shown, or Figure 8 The noise reduction device shown.

[0184] See also Fig. 9 , Fig. 9 is a schematic diagram of the structure of an electronic device provided by an optional embodiment of the present invention, such as Fig. 9 As shown, the electronic device may include: at least one processor 71, such as a CPU (Central Processing Unit), at least one communication interface 73, a memory 74, and at least one communication bus 72. The communication bus 72 is used to realize the connection and communication between these components. The communication interface 73 may include a display screen (Display) and a keyboard (Keyboard), and the optional communication interface 73 may also include a standard wired interface and a wireless interface. The memory 74 may be a high-speed RAM memory (Random Access Memory) or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 74 may optionally be at least one storage device located away from the aforementioned processor 71. The processor 71 may be combined with Figure 7 Or the device described in 8, the memory 74 stores an application program, and the processor 71 calls the program code stored in the memory 74 to execute any of the above method steps.

[0185] The communication bus 72 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The communication bus 72 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0186] Among them, the memory 74 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviated: RAM); the memory may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (English: hard disk drive, abbreviated: HDD) or a solid-state drive (English: solid-state drive, abbreviated: SSD); the memory 74 may also include a combination of the above types of memory.

[0187] The processor 71 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP.

[0188] The processor 71 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0189] Optionally, the memory 74 is also used to store program instructions. The processor 71 can call the program instructions to implement the present application Figure 1 , 3 -4 The noise estimation method shown in the embodiment, or Figure 6 The noise reduction method shown in the embodiment.

[0190] The embodiment of the present invention further provides a non-transitory computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the noise estimation method or noise reduction method in any of the above method embodiments. The storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memory.

[0191] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A noise estimation method, characterized in that: The method comprises: Acquire the audio to be processed, and acquire the fundamental frequency and voice status of the audio to be processed; Calculating the signal power of each frequency point of the current frame in the audio to be processed; Determine the audio state of each frequency point of the current frame based on the sequence number of each frequency point of the current frame, the fundamental frequency and the voice state; Determine, according to the audio states of the respective frequencies of the current frame and the signal powers of the respective frequencies, the noise estimation values ​​of the respective frequencies of the current frame; When the audio state of the current frequency point of the current frame is the frequency point where the target speech is located, the noise estimation for the current frequency point is stopped; When the current frequency point is not the frequency point where the target speech is located and there is no speech in the current frame, the estimation of the noise at the current frequency point is accelerated; The determining, according to the audio states of the respective frequency points of the current frame and the signal powers of the respective frequency points, the noise estimation values ​​of the respective frequency points of the current frame comprises: When the audio state of the current frequency point of the current frame is the frequency point where the target speech is located, obtaining a historical noise estimation value of a sequence number corresponding to the current frequency point in a previous frame of the current frame; and determining a noise estimation value of the current frequency point based on the historical noise estimation value and the signal power of the current frequency point; When the audio state of the current frequency of the current frame is a frequency where the non-target speech is located and the current frame has no speech, obtain the minimum signal power estimation value and the acceleration coefficient corresponding to the current frequency; based on the minimum signal power estimation value, the acceleration coefficient and the signal power of the current frequency, determine the noise estimation value of the current frequency, and the noise estimation value of the current frequency is expressed by the following formula: ; in, is the current frequency The noise estimate of is the acceleration factor and , is the current frequency The corresponding minimum signal power estimate, is the current frequency The signal power, is the sequence number of the current frame in the audio to be processed.

2. The method according to claim 1, characterized in that The determining the audio state of each frequency point of the current frame based on the sequence number of each frequency point of the current frame, the fundamental frequency and the voice state includes: Determine whether each frequency point is a frequency point where the target speech is located by using the sequence number of each frequency point and the fundamental frequency; The speech state is used to determine whether the current frame has speech.

3. The method according to claim 2, characterized in that The determining, using the sequence number of each frequency point and the fundamental frequency, whether each frequency point is a frequency point where the target speech is located includes: Obtaining the sampling rate of the current frame; Determine a fundamental frequency sequence number based on the sampling rate, the number of frequency points of the current frame, and the fundamental frequency; It is determined whether the sequence number of each frequency point is an integer multiple of the fundamental pitch sequence number, so as to determine whether each frequency point is a frequency point where the target speech is located.

4. The method according to claim 1, characterized in that: When the audio state of the current frequency point of the current frame is the frequency point where the target speech is located, the noise estimation value of the current frequency point is expressed by the following formula: in, is the current frequency The noise estimate of is the historical noise estimate, is the current frequency The signal power, is the sequence number of the current frame in the audio to be processed.

5. The method according to claim 1, characterized in that The determining, according to the audio states of the respective frequency points of the current frame and the signal powers of the respective frequency points, the noise estimation values ​​of the respective frequency points of the current frame comprises: When the audio state of the current frequency point of the current frame is a frequency point where a non-target voice is located and the current frame has voice, obtaining a minimum signal power estimation value corresponding to the current frequency point; The minimum signal power estimation value is determined as the noise estimation value of the current frequency point.

6. A noise reduction method, characterized in that: The method comprises: Determine a noise estimation value in the audio to be processed according to the noise estimation method according to any one of claims 1 to 5; The audio to be processed is subjected to noise reduction processing based on the noise estimation value to obtain a target speech signal.

7. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the noise estimation method according to any one of claims 1 to 5, or the noise reduction method according to claim 6, by executing the computer instructions.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the noise estimation method according to any one of claims 1 to 5, or the noise reduction method according to claim 6.