l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
October 20: Web Application Hacking: How to Make and Break Security on the Web
Next Installfest:
TBD
Latest News:
Oct. 10: LUGOD Installfests coming again soon
Page last updated:
2002 Jul 31 18:04

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] noise removal with sox?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] noise removal with sox?



I've not used sox before, but it looks cool--lots of basic DSP stuff.

Here are a few suggestions:
- if fan noise is within the same frequency band as the voice, it will be
  difficult to remove only the noise using sox.  you would need more
  sophisticated tools.
- if you can't tell just by listening, you can get an idea of where, in
  frequency, the noise is located but using a spectrum analysis tool.
  for example, xmms has a spectrum analyzer.  there are others.
  if you can find one that is used for analysis, rather than for pretty
  pictures of music, you'll get more information from it.  a spectrogram
  (frequency, vertically, vs. time) will be particularly useful for visually
  identified constant- or periodically-varying noise/interference.
- hopefully, the noise is either very low in frequency (few hundred Hz) 
  or relatively high in frequency (>> 4 kHz).
- if the noise is high in frequency, try the "lowp" or "lowpass"
  options with a frequency that is below the noise.  experiment with the
  frequency a bit.  also try the "filter" option:  use a "low" frequency of
  0 (creates lowpass filter); use a "high" frequency that is higher than the
  speech but less than the noise; you could probably use
  the default "window-len"; leave "beta" at the default.
- if the noise is low in frequency, try the "highp" or "highpass" options.
  the "frequency" is a cut-off: anything below it is attenuated.  you 
  could also try the "filter" option (similar procedure to above; see
  man page).
- if the noise is mixed up with the speech, you might still get some
  improvement by bandpass filtering the speech.  use a center frequency
  that is roughly in the center of the speech energy and experiment
  with the bandwidth and other filter options to see if the quality
  improves somewhat.
- you didn't mention the format of the speech data.  you may need to
  use sox to convert a coded format to, e.g., 16-bit linear before trying
  any of these ideas.

if you're getting the impression that this involves a bit of trial-and-error,
you are correct.

if you want more specifics, offer some more detail on the data format,
and do some leg work to look at it in a spectrum analysis program or
using a spectrogram.

shawn.

On Tuesday 30 July 2002 08:59 pm, Ryan wrote:
> Anyone here any good with sox? I'd like to use it to remove background
> noise from a recording (computer fans), but I can't figure out how to do it
> from the man page or google.
>
> I only want to keep the voice, if that helps any.
>
> I'd be willing to use a diffrent program, but I figure there must be a way
> to do it in sox....

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.