This node performs postprocessing to improve the accuracy of speech recognition with the sound source separation node GHDSS for a separated complex spectrum. At the same time, it generates noise power spectra to generate Missing Feature Masks.
No files are required.
When to use
This node is used to form the spectrum that are separated by the GHDSS node and generate the noise spectra required to generate Missing Feature Masks.
Typical connection
Figure 382 shows an example of a connection for the PostFilter node. The output of the GHDSS node is connected to the INPUT_SPEC input and the output of the BGNEstimator node is connected to the INIT_NOISE_POWER input. Figure 382 shows examples for typical output connections
Speech feature extraction from separated sound (OUTPUT_SPEC) (MSLSExtraction node)
Generation of Missing Feature Masks from separated sound and power (EST_NOISE_POWER) of noise contained in it at the time of speech recognition (MFMGeneration node)
Input
Map<int, ObjectRef> type. The same type as the output from the GHDSS node. A pair of a sound source ID and a complex spectrum of the separated sound as Vector<complex<float> > type data.
Matrix<float> type. The power spectrum of the stationary noise estimated by the BGNEstimator node.
Output
Map<int, ObjectRef> type. The Object is the complex spectrum from the input INPUT_SPEC, with noise removed.
Map<int, ObjectRef> type. Power of the estimated noise to be contained is paired with IDs as Vector<float> type data for each separated sound of OUTPUT_SPEC.
Parameter
Parameter name |
Type |
Default value |
Description |
MCRA_SETTING |
false |
When the user set parameters for the MCRA estimation, which is a noise removal method, select true. |
|
MCRA_SETTING |
The following are valid when MCRA_SETTING is set to true |
||
STATIONARY_NOISE_FACTOR |
1.2 |
Coefficient at the time of stationary noise estimation. |
|
SPEC_SMOOTH_FACTOR |
0.5 |
Smoothing coefficient of an input power spectrum. |
|
AMP_LEAK_FACTOR |
1.5 |
Leakage coefficient. |
|
STATIONARY_NOISE_MIXTURE_FACTOR |
0.98 |
Mixing ratio of stationary noise. |
|
LEAK_FLOOR |
0.1 |
Minimum value of leakage noise. |
|
BLOCK_LENGTH |
80 |
Detection time width. |
|
VOICEP_THRESHOLD |
3 |
Threshold value of speech presence judgment. |
|
EST_LEAK_SETTING |
false |
When the user sets parameters related to the leakage rate estimation, select true. |
|
EST_LEAK_SETTING |
The followings are valid when EST_LEAK_SETTING is set to true. |
||
LEAK_FACTOR |
0.25 |
Leakage rate. |
|
OVER_CANCEL_FACTOR |
1 |
Leakage rate weighting factor. |
|
EST_REV_SETTING |
false |
When the user sets parameters related to the component estimation, select true. |
|
EST_REV_SETTING |
The followings are valid when EST_REV_SETTING is set to true. |
||
REVERB_DECAY_FACTOR |
0.5 |
Damping coefficient of reverberant power. |
|
DIRECT_DECAY_FACTOR |
0.2 |
Damping coefficient of a separated spectrum. |
|
EST_SN_SETTING |
false |
When the user sets parameters related to the SN ratio estimation, select true. |
|
EST_SN_SETTING |
The followings are valid when EST_SN_SETTING is set to true. |
||
PRIOR_SNR_FACTOR |
0.8 |
Ratio of priori and posteriori SNRs. |
|
VOICEP_PROB_FACTOR |
0.9 |
Amplitude coefficient of the probability of speech presence. |
|
MIN_VOICEP_PROB |
0.05 |
Probability of the minimum speech presence. |
|
MAX_PRIOR_SNR |
100 |
Maximum value of preliminary SNR. |
|
MAX_OPT_GAIN |
20 |
Maximum value of the optimal gain intermediate variable v. |
|
MIN_OPT_GAIN |
6 |
Minimum value of the optimal gain intermediate variable v. |
Parameter name |
Type |
Default value |
Description |
EST_VOICEP_SETTING |
false |
When the user sets parameters related to the speech probability estimation, select true. |
|
EST_VOICEP_SETTING |
The following are valid when EST_VOICEP_SETTING is set to true. |
||
PRIOR_SNR_SMOOTH_FACTOR |
0.7 |
Time smoothing coefficient. |
|
MIN_FRAME_SMOOTH_SNR |
0.1 |
Minimum value of the frequency smoothing SNR (frame). |
|
MAX_FRAME_SMOOTH_SNR |
0.316 |
Maximum value of the frequency smoothing SNR (frame). |
|
MIN_GLOBAL_SMOOTH_SNR |
0.1 |
Minimum value of the frequency smoothing SNR (global). |
|
MAX_GLOBAL_SMOOTH_SNR |
0.316 |
Maximum value of the frequency smoothing SNR (global). |
|
MIN_LOCAL_SMOOTH_SNR |
0.1 |
Minimum value of the frequency smoothing SNR (local). |
|
MAX_LOCAL_SMOOTH_SNR |
0.316 |
Maximum value of the frequency smoothing SNR (local). |
|
UPPER_SMOOTH_FREQ_INDEX |
99 |
Frequency smoothing upper limit bin index. |
|
LOWER_SMOOTH_FREQ_INDEX |
8 |
The frequency smoothing lower limit bin index. |
|
GLOBAL_SMOOTH_BANDWIDTH |
29 |
Frequency smoothing band width (global). |
|
LOCAL_SMOOTH_BANDWIDTH |
5 |
The frequency smoothing band width (local). |
|
FRAME_SMOOTH_SNR_THRESH |
1.5 |
Threshold value of frequency smoothing SNR. |
|
MIN_SMOOTH_PEAK_SNR |
1.0 |
Minimum value of the frequency smoothing SNR peak. |
|
MAX_SMOOTH_PEAK_SNR |
10.0 |
Maximum value of the frequency smoothing SNR peak. |
|
FRAME_VOICEP_PROB_FACTOR |
0.7 |
Speech probability smoothing coefficient (frame). |
|
GLOBAL_VOICEP_PROB_FACTOR |
0.9 |
Speech probability smoothing coefficient (global). |
|
LOCAL_VOICEP_PROB_FACTOR |
0.9 |
Speech probability smoothing coefficient (local). |
|
MIN_VOICE_PAUSE_PROB |
0.02 |
Minimum value of speech quiescent probability. |
|
MAX_VOICE_PAUSE_PROB |
0.98 |
Maximum value of speech quiescent probability. |
The subscripts used in the equations are based on the definitions in Table 6.1. Moreover, the time frame index is abbreviated in the following equations unless especially needed. Figure 6.49 shows a flowchart of the PostFilter node. A separated sound spectrum from the GHDSS node and a stationary noise power spectrum of the BGNEstimator node are obtained as inputs. Outputs are the separated sound spectrum for which the speech is emphasized, and a power spectrum of noise mixed with the separated sound. The processing flow is as follows.
Noise estimation
SNR estimation
Speech presence probability estimation
Noise removal
1) Noise estimation
Figure 6.50 shows the processing flow of noise estimation . The three kinds of noise that the PostFilter node processes are
a) The stationary noise for which contact points of microphones are a factor,
b) The sound of other sound sources that cannot be completely removed (leakage noise),
c) Reverberations from the previous frame.
The noise contained in the final separated sound is obtained by the following equation.
(56) |
Here, and indicate stationary noise, leakage noise and reverberation from the previous frame, respectively.
The parameters used in 1-a) are based on Table 6.40.
Parameter |
Description, Corresponding parameter |
|
Complex spectrum of separated sound corresponding to the frequency bin |
|
Initial value power spectrum used for the stationary noise estimation |
|
Estimated stationary noise power spectrum. |
|
Smoothing coefficient of the input power spectrum. Parameter SPEC_SMOOTH_FACTOR. The default value is 0.5 |
|
Temporary parameter for minimum power calculation. |
|
The parameter that maintains the minimum power. |
|
Maintained frame numbers of . Parameter BLOCK_LENGTH. The default value is 80 |
|
Threshold value of speech presence judgment. Parameter VOICEP_THRESHOLD. The default value is 3.0 |
|
Mixing ratio of estimated stationary noise. Parameter STATIONARY_NOISE_MIXTURE_FACTOR. The default value is 0.98 |
|
Power spectrum of leakage noise estimated, to be contained in separated sound |
|
Coefficient for when leakage noise is removed from the input separated sound power. Parameter AMP_LEAK_FACTOR. The default value is 1.5. |
|
Minimum value of leakage noise. Parameter LEAK_FLOOR. The default value is 0.1. |
|
Coefficient at the time of stationary noise estimation. Parameter STATIONARY_NOISE_FACTOR. The default value is 1.2 |
First, calculate the power spectrum for which the input spectrum is smoothed with the power from one frame before. .
(57) |
Next, update , .
(58) | |||||
(59) |
Here, indicates an arbitrary integer. maintains the minimum power after the noise estimation begins maintains an extremely small power of a recent frame. is updated every frames. Next, judge if the frame contains speech based on the power ratio of the minimum power and the input separated sound.
(60) | |||||
(61) |
When speech is included, is 1 and when it is not included, it is 0. Based on this result, we determine the mixing ratio of the frame’s estimated stationary noise.
(62) |
Next, subtract leakage noise contained in the power spectrum of the separated sound.
(63) | |||||
(64) |
Here, when , the valued is changed to below.
(65) |
Obtain stationary noise of the current frame by mixing the power spectrum with leakage noise removed and the estimated stationary noise of the former frame or , which is the output from BGNEstimator .
(66) |
The variables used in 1-b) are based on Table 6.41.
Variable |
Description, Corresponding parameter |
|
Power spectrum of leakage noise. Vector comprising elements of each separated sound. |
|
Leakage rate for the total of separated sound power. LEAK_FACTOR OVER_CANCEL_FACTOR |
|
Smoothing power spectrum obtained by Equation (57) |
Some parameters are calculated as follows.
(67) | |||||
(68) |
With this parameter, mix the smoothed spectrum , the power spectrum for which the power of the own separated sound is removed from the power of other separated sound obtained by Equation (63).
(69) |
Here, when , assume . The power spectrum of final leakage noise is obtained as follows.
(70) |
The variables used in 1-c) are based on Table 6.42.
Variable |
Description, Corresponding parameter |
|
Power spectrum of reverberant in the time frame |
|
(71) |
(72) |
2)SNR estimation
Figure 6.51 shows the flow of the SNR estimation. The SNR estimation consists of the followings
a) Calculation of SNR
b) Preliminary SNR estimation before noise mixture
c) Estimation of a speech content rate
d) Estimation of an optimal gain
Variable |
Description, corresponding parameter |
|
Complex spectra of the separated sound, which is an input of the PostFilter node |
|
Complex spectra of the formed separated sound, which is an output of the PostFilter node |
|
Power spectrum of noise estimated above |
|
SNR of the separated sound |
|
Speech content rate |
|
Preliminary SNR |
|
Optimal gain to improve SNR of the separated sound |
The vector elements in Table 6.43 indicate value of each separated sound.
The variables used in 2-a) are based on Table 6.43. Here, SNR is calculated based on the complex spectra of the input and the power spectrum of the noise estimated above.
(73) | |||||
(74) |
Here, when is satisfied, .
The variables used in 2-b) are based on Table 6.44.
Variable |
Description, corresponding parameter |
|
Preliminary SNR coefficient. Parameter VOICEP_PROB_FACTOR. The default value is 0.9. |
|
Minimum speech content rate. Parameter MIN_VOICEP_PROB. The default value is 0.05. |
The speech content rate is calculated as follows, with the preliminary SNR of the former frame.
(75) |
The variables used in 2-c) are based on Table 6.45.
Variable |
Description, corresponding parameter |
|
Internal ratio of the former frame SNR. Parameter PRIOR_SNR_FACTOR. The default value is 0.8. |
|
Upper limit of the preliminary SNR. Parameter MAX_PRIOR_SNR. The default value is 100. |
The preliminary SNR is calculated as follows.
(76) | |||||
(77) |
Here, is a temporary variable in the calculation, which is an interior division value of the estimated SNR and preliminary SNR of the former frame. Moreover, when is satisfied, change the value as .
The variables used in 2-d) are based on Table 6.46.
Variable |
Description, corresponding parameter |
|
Intermediate variable maximum value. Parameter MAX_OPT_GAIN. The default value is 20. |
|
The intermediate variable minimum value. Parameter MIN_OPT_GAIN. The default value is 6 |
Prior to calculating an optimal gain, the following intermediate variable is calculated with the preliminary SNR obtained above and the estimated SNR.
(78) |
When is satisfied, . The optimal gain when speech exists is obtained as sollows.
(79) |
Here,
(80) |
3) Estimation of probability of speech presence
Figure 6.52 shows the flow of estimation of probability of speech presence. Estimation of the probability of speech presence consists of
a) Smoothing of the preliminary SNR for each of the 3 types of bands
b) Estimation with the temporal probability of speech presence based on the smoothed SNR in each band
c) Speech quiescent probability is estimated based on three provisional probability.
d) Estimation of the final probability of speech presence.
The variables used in 3-a) are summarized in Table 6.47.
Variable |
Description, corresponding parameter |
|
Time preliminary SNR temporally-smoothed |
|
Preliminary SNR |
|
Frequency-smoothed SNR (frame) |
|
Frequency-smoothed SNR (global) |
|
Frequency smoothing SNR (local) |
|
Parameter PRIOR_SNR_SMOOTH_FACTOR. The default value is 0.7 |
|
Parameter LOWER_SMOOTH_FREQ_INDEX. The default value is 8 |
|
Parameter UPPER_SMOOTH_FREQ_INDEX. The default value is 99 |
|
Parameter GLOBAL_SMOOTH_BANDWIDTH. The default value is 29 |
|
Parameter LOCAL_SMOOTH_BANDWIDTH. The default value is 5 |
First, temporally-smoothing is performed with the preliminary SNR calculated by Equation (76) and the temporally-smoothed preliminary SNR of the former frame.
(81) |
Smoothing of the frequency direction is reduced in the order of frame, global, local depending on the size of the frame.
Frequency smoothing in frame
Smoothing by averaging is performed in the frequency bin range .
(82) |
Global frequency smoothing in global
Frequency smoothing with a hamming window in width is performed globally.
(83) | |||||
(84) |
Here, is a normalization coefficient so that can be satisfied.
Local frequency smoothing
Frequency smoothing with a triangle window in width is performed locally.
(85) |
The variables used in 3-b) are shown in Table 6.48.
Variable |
Description, corresponding parameter |
|
SNR smoothed in each band |
|
Probability of provisional speech in each band |
|
Peak of smoothed SNR |
|
Parameter MIN_SMOOTH_PEAK_SNR. The default value is 1. |
|
Parameter MAX_SMOOTH_PEAK_SNR. The default value is 10. |
|
FRAME_SMOOTH_SNR_THRESH. The default value is 1.5. |
|
Parameter MIN_FRAME_SMOOTH_SNR, |
MIN_GLOBAL_SMOOTH_SNR, |
|
MIN_LOCAL_SMOOTH_SNR. The default value is 0.1. |
|
|
Parameter MAX_FRAME_SMOOTH_SNRF, |
MAX_GLOBAL_SMOOTH_SNR, |
|
MAX_LOCAL_SMOOTH_SNR. The default value is 0.316. |
Calculation of and
First, calculate as follows.
(86) |
Here, the value of must be within the range of the parameter . That is,
(87) |
Next, is obtained as follows.
(88) |
Calculation of
Calculate as follows.
(89) |
Calculation of
Calculate as follows.
(90) |
The variables used in 3-c) are shown in Table 6.49.
Variable |
description, a corresponding parameter |
|
Probability of speech pause. |
|
FRAME_VOICEP_PROB_FACTOR. The default value is 0.7. |
|
GLOBAL_VOICEP_PROB_FACTOR. The default value is 0.9. |
|
LOCAL_VOICEP_PROB_FACTOR. The default value is 0.9. |
|
MIN_VOICE_PAUSE_PROB. The default value is 0.02. |
|
MAX_VOICE_PAUSE_PROB. The default value is 0.98. |
As shown below, the probability of speech pause is obtained by integrating the provisional probability of speech calculated from a smoothing result of the three frequency bands .
(91) |
Here, when , , and when , .
The probability of speech presence is obtained by the probability of speech suspension pause , the preliminary SNR and the intermediate variable derived by Equation (78).
(92) |
4 Noise removal
The enhanced separated sound as an output is derived by activating the optimal gain and the probability of speech presence for the separated sound spectrum as the input .
(93) |