Skip to content
Snippets Groups Projects
Commit b02e5893 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#959] Use -20 db attenuation for noise canceller

parent 5f6ae1f1
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ EchoCancel::EchoCancel(int smplRate, int frameLength) : _samplingRate(smplRate), ...@@ -93,7 +93,7 @@ EchoCancel::EchoCancel(int smplRate, int frameLength) : _samplingRate(smplRate),
_noiseState = speex_preprocess_state_init(_smplPerFrame, _samplingRate); _noiseState = speex_preprocess_state_init(_smplPerFrame, _samplingRate);
int i=1; int i=1;
speex_preprocess_ctl(_noiseState, SPEEX_PREPROCESS_SET_DENOISE, &i); speex_preprocess_ctl(_noiseState, SPEEX_PREPROCESS_SET_DENOISE, &i);
i=-10; i=-20;
speex_preprocess_ctl(_noiseState, SPEEX_PREPROCESS_SET_NOISE_SUPPRESS, &i); speex_preprocess_ctl(_noiseState, SPEEX_PREPROCESS_SET_NOISE_SUPPRESS, &i);
i=0; i=0;
speex_preprocess_ctl(_noiseState, SPEEX_PREPROCESS_SET_AGC, &i); speex_preprocess_ctl(_noiseState, SPEEX_PREPROCESS_SET_AGC, &i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment