sox-devel@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: v vadiraj via SoX-devel <sox-devel@lists.sourceforge.net>
To: <sox-devel@lists.sourceforge.net>
Cc: v vadiraj <vvadiraj@yahoo.com>
Subject: SoX: Noise reduction muting voice when used with sox_open_mem_read
Date: Thu, 15 Mar 2018 06:22:21 +0000 (UTC)	[thread overview]
Message-ID: <1359626285.934269.1521094941531@mail.yahoo.com> (raw)
In-Reply-To: 1359626285.934269.1521094941531.ref@mail.yahoo.com


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
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel

           reply	other threads:[~2018-03-15  6:22 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1359626285.934269.1521094941531.ref@mail.yahoo.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-devel

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1359626285.934269.1521094941531@mail.yahoo.com \
    --to=sox-devel@lists.sourceforge.net \
    --cc=vvadiraj@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

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).