Hi,
We are developing a VoIP application where we are trying to apply gain and
noise reduction on captured PCM samples.
While we are able to successfully apply gain and observe the volume increase,
it is accompanied by noise.
It was possible to create a noise profile file and apply noise reduction on a
recorded file, and observed noise reduction.
However, considering this to be a VoIP app, we have accomplished the Gain
increase by applying SoX in memory instead of a file (sox_open_mem_read).
When noise reduction is applied along with Gain effect, we see zero voice
(absolute silence) as output (code snippet below).
I have tried searching web and forum but to avail. Please let me know if this
is the way to accomplish.
"e_noise = sox_create_effect(sox_find_effect("noisered"));
args[0] = filePathProf;
args[1] = "0.3";
if (sox_effect_options(e_noise, 2, args) == SOX_SUCCESS)
{
PJ_LOG(4, (THIS_FILE, " bqRecorderCallback: sox_effect_options NOISERED
SUCCESS"));
}
else
{
PJ_LOG(4, (THIS_FILE, " bqRecorderCallback: sox_effect_options NOISERED
FAILED"));
sox_quit();
return;
}
if (sox_add_effect(chain, e_noise, &in->signal, &in->signal) == SOX_SUCCESS)
{
PJ_LOG(4, (THIS_FILE, " bqRecorderCallback: sox_add_effect NOISERED
SUCCESS"));
}
else
{
PJ_LOG(4, (THIS_FILE, " bqRecorderCallback: sox_add_effect NOISERED
FAILED"));
sox_quit();
return;
}"
Regards,
Vadiraj.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
SoX-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sox-devel