Lines Matching defs:noise

36   // For spectral_flatness: used when noise is flatter than speech.
114 // For quantile noise estimation.
137 self->priorSpeechProb = 0.5f; // Prior prob for speech/noise.
142 // Current noise-spectrum.
143 memset(self->noise, 0, sizeof(float) * HALF_ANAL_BLOCKL);
144 // Previous noise-spectrum.
146 // Conservative noise spectrum estimate.
196 // Counter for update of conservative noise spectrum.
216 // Estimate noise.
219 float* noise) {
274 // Sequentially update the noise during startup.
276 // Use the last "s" to get noise during startup that differ from zero.
283 noise[i] = self->quantile[i];
336 // Extract parameters for speech/noise probability.
361 // Very low fluctuation, so likely noise.
495 // most likely just noise state.
558 // Compute prior and post SNR based on quantile noise estimation.
562 // * |noise| is the magnitude noise spectrum estimate.
568 const float* noise,
580 if (magn[i] > noise[i]) {
581 snrLocPost[i] = magn[i] / (noise[i] + 0.0001f) - 1.f;
591 // noise spectrum.
606 // Conservative smooth noise spectrum from pause frames.
636 // Compute speech/noise probability.
637 // Speech/noise probability is returned in |probSpeechFinal|.
639 // |noise| is the noise spectrum.
752 // Update the noise features.
761 // Compute difference of input spectrum with learned/estimated noise spectrum.
794 // Update the noise estimate.
800 // * |noise| is the updated noise magnitude spectrum estimate.
805 float* noise) {
808 // Time-avg parameter for noise update.
816 // Temporary noise update:
821 // Time-constant based on speech/noise state.
824 // Increase gamma (i.e., less noise update) for frame likely to be speech.
828 // Conservative noise update.
834 noise[i] = noiseUpdateTmp;
836 noise[i] = gammaNoiseTmp * self->noisePrev[i] +
839 // Allow for noise update downwards:
840 // If noise update decreases the noise, it is safe, so allow it to
842 if (noiseUpdateTmp < noise[i]) {
843 noise[i] = noiseUpdateTmp;
998 if (magn[i] > self->noise[i]) {
999 currentEstimateStsa = magn[i] / (self->noise[i] + 0.0001f) - 1.f;
1010 // Changes the aggressiveness of the noise suppression method.
1053 float magn[HALF_ANAL_BLOCKL], noise[HALF_ANAL_BLOCKL];
1078 // will be treated as speech and there is no noise suppression effect.
1080 // considerable amount of time for the system to learn what is noise and
1107 // Quantile noise estimate.
1108 NoiseEstimation(self, magn, noise);
1109 // Compute simplified noise model during startup.
1111 // Estimate White noise.
1113 // Estimate Pink noise parameters.
1127 // Constrain the pink noise power to be in the interval [0, 1].
1136 // Calculate frequency independent parts of parametric noise estimate.
1138 // Use pink noise estimate.
1145 // Estimate the background noise using the white and pink noise
1148 // Use white noise estimate.
1151 // Use pink noise estimate.
1156 // Weight quantile noise with modeled noise.
1157 noise[i] *= (self->blockInd);
1160 noise[i] += (tmpFloat2 / (float)(self->blockInd + 1));
1161 noise[i] /= END_STARTUP_SHORT;
1173 ComputeSnr(self, magn, noise, snrLocPrior, snrLocPost);
1177 UpdateNoiseEstimate(self, magn, snrLocPrior, snrLocPost, noise);
1179 // Keep track of noise spectrum for next frame.
1180 memcpy(self->noise, noise, sizeof(*noise) * self->magnLen);
1188 // Main routine for noise reduction.
1311 memcpy(self->noisePrev, self->noise, sizeof(self->noise[0]) * self->magnLen);
1339 // Combine both scales with speech/noise prob: