noise with sox
Hi,
just started to digitize some old platters.
Therfore I installed a good 32 bit soundcard.
Recording with this script in CD quality works fine:
#!/bin/sh
rec -s w -c 2 -r 44100 $1
exit 0;
Then eliminating some background noise with:
#!/bin/sh
sox $1 -t nul /dev/null trim 0 3 noiseprof null
sox $1 {$1%%.wav}1.wav noisered null
normalize -a 1 {$1%%.wav}1.wav
sox {$1%%.wav}1.wav -c 1 $1
#mv {$1%%.wav}1.wav $1
rm -f {$1%%.wav}1.wav
rm -f null
exit 0
is great!
(Using the first three seconds (trim 0 3) as time of no music and just noise,
this is important)
Now I want to eliminate the clicks and think the ncompand is the right method.
sox input.wav -t wav result.wav mcompand "0.5,1 -10,-5 -20 -20 -20" 1600 "0.5,1 -60,-60 0 0 0"
Just the parameters, this is just a trial, are not really working. If somebody can explain, what the values means, or have some good parameters, to eliminate the clicks, typical for platter, I would be very happy for response.
Best regards
bernd54321
Last edited by bernd54321; 04-21-2006 at 01:19 AM.
|