1 Jan 2010 06:59
Re: Automatic Gain Control
Doug Cook <idigdoug <at> users.sourceforge.net>
2010-01-01 05:59:19 GMT
2010-01-01 05:59:19 GMT
On Thu, Dec 31, 2009 at 7:25 AM, Jan Stary <hans <at> stare.cz> wrote:
> > I would like to be able to have some sort of automatic gainGiven it's voice files, you might also want to try
> > control in sox when processing voice files..
speexenc(1), which apparently has an AGC option:
--agc Apply adaptive gain control (AGC) before encoding
(Haven't used it myself, though)
Yes, this is the "speexdsp" library I mentioned earlier. If you use speexenc as-is, it encodes your audio to speex format, but you can use the speexdsp library without using the speex format.
I've got a private patch to sox that adds a "speexdsp" effect so that you can use the speex AGC and noise reduction filters by themselves (without encoding to speex format). I don't know if the speex AGC is any better or worse than the existing compand effect, but it only takes one parameter (target volume from 0-100%) so it is easier to get something working that sounds reasonable. I don't really know what algorithm speexdsp uses for noise reduction, but it seems to work better than the existing noisered effect for reducing generic background noise and doesn't require any training or parameter adjustment. Unfortunately, it seems to introduce the occasional "pop" into the signal.
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ Sox-users mailing list Sox-users <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users
RSS Feed