[Asterisk-Users] recording files for menues

Grzegorz Nosek blackfire at metal.art.pl
Mon Nov 3 16:29:48 MST 2003


On Sun, 2 Nov 2003 16:21:48 +0300, Shoval Tom wrote
> Either it's not working, or I don't know what I'm doing. 
> It's giving me the error "sox: effect '.gsm' is no known!
> 
> Let's say I need to convert file 1.wav to 1.gsm.
> How do I apply this command to it?
> 

[snip]

> #!/bin/sh
> for i in *.wav; do sox $i -r 8000 `basename $i *.wav`.gsm 
> resample -ql; done
> 

try removing the second *, as in:

for i in *.wav; do sox $i -r 8000 `basename $i .wav`.gsm resample -ql;
done

for a single wav file, try

sox 1.wav -r 8000 1.gsm resample -ql

(mindlessly copying the -ql, i don't really remember what it does ;)

hth,
 grzegorz nosek




More information about the asterisk-users mailing list