NS-SWB: Actived SWB processing at once, i.e., no startup phase.
Performance verified on a few 32 kHz files. BUG= TEST=audioproc, audioproc_unittest Updated output_data_float.pb Changes in SWB tests (3, 6, 9 and 12) as Running test 3 of 12... src/modules/audio_processing/test/unit_test.cc:1182: Failure Value of: max_output_average Actual: 1363 Expected: test->max_output_average() Which is: 1386 Running test 6 of 12... src/modules/audio_processing/test/unit_test.cc:1182: Failure Value of: max_output_average Actual: 2070 Expected: test->max_output_average() Which is: 2109 Running test 9 of 12... src/modules/audio_processing/test/unit_test.cc:1182: Failure Value of: max_output_average Actual: 1314 Expected: test->max_output_average() Which is: 1336 Running test 12 of 12... src/modules/audio_processing/test/unit_test.cc:1182: Failure Value of: max_output_average Actual: 2049 Expected: test->max_output_average() Which is: 2085 Review URL: https://webrtc-codereview.appspot.com/344013 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1465 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
17585856f5
commit
12cccddc63
@ -1254,7 +1254,6 @@ int WebRtcNs_ProcessCore(NSinst_t* inst,
|
||||
for (i = 0; i < inst->magnLen; i++) {
|
||||
inst->speechProbHB[i] = probSpeechFinal[i];
|
||||
}
|
||||
if (inst->blockInd > END_STARTUP_LONG) {
|
||||
// average speech prob from low band
|
||||
// avg over second half (i.e., 4->8kHz) of freq. spectrum
|
||||
avgProbSpeechHB = 0.0;
|
||||
@ -1278,7 +1277,6 @@ int WebRtcNs_ProcessCore(NSinst_t* inst,
|
||||
gainTimeDomainHB = (float)0.25 * gainModHB + (float)0.75 * avgFilterGainHB;
|
||||
}
|
||||
gainTimeDomainHB = gainTimeDomainHB * decayBweHB;
|
||||
} // end of converged
|
||||
//make sure gain is within flooring range
|
||||
// flooring bottom
|
||||
if (gainTimeDomainHB < inst->denoiseBound) {
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user