Home | History | Annotate | Download | only in ns

Lines Matching refs:noise

37   // used when noise is flatter than speech
126 // for quantile noise estimation
149 inst->priorSpeechProb = (float)0.5; // prior prob for speech/noise
152 inst->noisePrev[i] = (float)0.0; // previous noise-spectrum
155 inst->magnAvgPause[i] = (float)0.0; // conservative noise spectrum estimate
203 0; // counter for update of conservative noise spectrum
254 // Estimate noise
255 void WebRtcNs_NoiseEstimation(NSinst_t* inst, float* magn, float* noise) {
310 // Sequentially update the noise during startup
312 // Use the last "s" to get noise during startup that differ from zero.
319 noise[i] = inst->quantile[i];
373 // extract parameters for speech/noise probability
399 // very low fluct, so likely noise
533 // most likely just noise state
596 // noise spectrum
610 // conservative smooth noise spectrum from pause frames
641 // Compute speech/noise probability
642 // speech/noise probability is returned in: probSpeechFinal
644 // noise is the noise spectrum
771 float magn[HALF_ANAL_BLOCKL], noise[HALF_ANAL_BLOCKL];
811 // will be treated as speech and there is no noise suppression effect.
813 // considerable amount of time for the system to learn what is noise and
866 // quantile noise estimate
867 WebRtcNs_NoiseEstimation(inst, magn, noise);
868 // compute simplified noise model during startup
870 // Estimate White noise
873 // Estimate Pink noise parameters
887 // Constrain the pink noise power to be in the interval [0, 1];
896 // Calculate frequency independent parts of parametric noise estimate.
898 // Use pink noise
905 // Estimate the background noise using the white and pink noise
908 // Use white noise estimate
911 // Use pink noise estimate
916 // Weight quantile noise with modeled noise
917 noise[i] *= (inst->blockInd);
920 noise[i] += (tmpFloat2 / (float)(inst->blockInd + 1));
921 noise[i] /= END_STARTUP_SHORT;
933 // STEP 1: compute prior and post snr based on quantile noise est
938 if (magn[i] > noise[i]) {
939 snrLocPost[i] = magn[i] / (noise[i] + (float)0.0001) - (float)1.0;
954 // STEP 2: compute speech/noise likelihood
955 // compute difference of input spectrum with learned/estimated noise
987 // compute speech/noise probability
989 // time-avg parameter for noise update
994 // temporary noise update:
1001 // time-constant based on speech/noise state
1004 // increase gamma (i.e., less noise update) for frame likely to be speech
1008 // conservative noise update
1013 // noise update
1015 noise[i] = noiseUpdateTmp;
1017 noise[i] =
1021 // allow for noise update downwards:
1022 // if noise update decreases the noise, it is safe, so allow it to
1024 if (noiseUpdateTmp < noise[i]) {
1025 noise[i] = noiseUpdateTmp;
1029 // done with step 2: noise update
1031 // keep track of noise spectrum for next frame
1033 inst->noisePrev[i] = noise[i];
1045 // main routine for noise reduction
1167 // Compute dd update of prior snr and post snr based on new noise estimate
1262 // combine both scales with speech/noise prob: