Re: normalize from command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 23, 2011 at 01:47:43PM +0200, Renato wrote:
> Hello, what is a cheap and easy way to normalize a bunch of audio files
> from command line / shell script? Preferably something that works with
> various formats (.wav, .aiff, .flac and possibly even .ogg and .mp3)
> 
> 

Sorry, forgot to copy list. Been using this for ~10 years now.

#!/bin/sh
#normalize everything

for i in `ls *wav`; do 
	FOO=`sox $i -e stat -v 2>&1`
	BN=`basename $i .wav`
	echo "norming $i with factor $FOO ..."
	sox -v $FOO $i -t wav ${BN}.norm.wav
done

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user


[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux