LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-20-2006, 12:59 PM   #1
bernd54321
LQ Newbie
 
Registered: Apr 2004
Distribution: fedora
Posts: 4

Rep: Reputation: 0
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.
 
Old 04-21-2006, 03:33 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Hi,

Sorry no answer, but I have noticed this is the second day without a response...
This is a rather specialized question, and you may have better luck finding an answer on the sox mailing list:
http://sox.sourceforge.net/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SoX karunesh General 1 08-09-2005 01:07 PM
Cannot install Sox! Sebastian Naitsabes Linux - Software 7 07-14-2005 12:31 PM
The Sox Parade H2O-linux General 4 11-01-2004 08:48 PM
WARN: sox Joey.Dale Linux - Security 1 08-11-2004 06:02 AM
SOX - Save Our X benjaminrtz Linux - General 6 09-01-2002 10:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration