Re: OT: sox help needed

2004-05-20 Thread Matthias Czapla
On Thu, May 20, 2004 at 04:58:52PM +0100, Colin Watson wrote: > > mpg123 -s $i | sox -t raw -r 44100 -s -w -c 1 - \ > > -t wav -r 8000 -w -c 1 "`echo $i | sed -e 's/mp3$/wav/'`" > > Quoted correctly: > > "`echo "$i" | sed -e 's/mp3$/wav/'`" > > A much simpler version of that if you know that $i

Re: OT: sox help needed

2004-05-20 Thread Jeff Elkins
On Thursday 20 May 2004 11:09 am, s. keeling wrote: >Incoming from Jeff Elkins: >> I'm trying to automate this: >> >> #!/bin/sh >> >> for i in *; do >> if test -f $i; then >> mpg123 -s $i | sox -t raw -r 44100 -s -w -c 1 - -t wav -r 8000 -w -c 1 >> $i.wav >> >> fi >> done >> >> which wo

Re: OT: sox help needed

2004-05-20 Thread Colin Watson
On Thu, May 20, 2004 at 04:25:34PM +0200, Matthias Czapla wrote: > On Thu, May 20, 2004 at 10:02:00AM -0400, Jeff Elkins wrote: > > I'm trying to automate this: > > > > #!/bin/sh > > > > for i in *; do > > if test -f $i; then > > > > fi > > done > > > > which works, but gives me: fi

Re: OT: sox help needed

2004-05-20 Thread s. keeling
Incoming from Jeff Elkins: > > I'm trying to automate this: > > #!/bin/sh > > for i in *; do > if test -f $i; then > mpg123 -s $i | sox -t raw -r 44100 -s -w -c 1 - -t wav -r 8000 -w -c 1 $i.wav > > fi > done > > which works, but gives me: filename.mp3.wav - anyway to end up with

Re: OT: sox help needed

2004-05-20 Thread Matthias Czapla
On Thu, May 20, 2004 at 10:02:00AM -0400, Jeff Elkins wrote: > I'm trying to automate this: > > #!/bin/sh > > for i in *; do > if test -f $i; then > > fi > done > > which works, but gives me: filename.mp3.wav - anyway to end up with > filename.wav? Yes: mpg123 -s $i | sox -t raw

Re: OT: sox help needed

2004-05-20 Thread Jeff Elkins
On Thursday 20 May 2004 08:34 am, Matthias Czapla wrote: >On Thu, May 20, 2004 at 04:43:48AM -0400, Jeff Elkins wrote: >> I need to convert a mess of mp3 files into PCM 8000 kHz, 16 Bit, Mono wav >> format. I tried using mpg123 and sox : >> >> mpg123 -b 1 -s test.mp3 | sox -t raw -r 8000 -s -w

Re: OT: sox help needed

2004-05-20 Thread Matthias Czapla
On Thu, May 20, 2004 at 04:43:48AM -0400, Jeff Elkins wrote: > I need to convert a mess of mp3 files into PCM 8000 kHz, 16 Bit, Mono wav > format. I tried using mpg123 and sox : > > mpg123 -b 1 -s test.mp3 | sox -t raw -r 8000 -s -w -c 2 - test.wav > > w/o success. The resulting wav file is

OT: sox help needed

2004-05-20 Thread Jeff Elkins
I need to convert a mess of mp3 files into PCM 8000 kHz, 16 Bit, Mono wav format. I tried using mpg123 and sox : mpg123 -b 1 -s test.mp3 | sox -t raw -r 8000 -s -w -c 2 - test.wav w/o success. The resulting wav file is molasses slow. Any help appreciated. thanks! Jeff Elkins -- To UNSU