unofficial mirror
 help / color / mirror / Atom feed
* SoX: Noise reduction muting voice when used with sox_open_mem_read
       [not found] <>
@ 2018-03-15  6:22 ` v vadiraj via SoX-devel
  0 siblings, 0 replies; only message in thread
From: v vadiraj via SoX-devel @ 2018-03-15  6:22 UTC (permalink / raw)
  To: sox-devel; +Cc: v vadiraj


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"));
	PJ_LOG(4, (THIS_FILE, " bqRecorderCallback: sox_effect_options NOISERED FAILED"));

if (sox_add_effect(chain, e_noise, &in->signal, &in->signal) == SOX_SUCCESS)
	PJ_LOG(4, (THIS_FILE, " bqRecorderCallback: sox_add_effect NOISERED SUCCESS"));
	PJ_LOG(4, (THIS_FILE, " bqRecorderCallback: sox_add_effect NOISERED FAILED"));

Check out the vibrant tech community on one of the world's most
engaging tech sites,!
SoX-devel mailing list

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-03-15  6:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <>
2018-03-15  6:22 ` SoX: Noise reduction muting voice when used with sox_open_mem_read v vadiraj via SoX-devel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).