Tuesday, July 8, 2014

Audio file conversion using sox

Example : 
convert a .ulaw file to .sln16 file

Command :
sox -t ul -c 1 -r 8k  file.ulaw  -D -V0 -s -r 16k -t s2 -c 1 file.sln16

Switch : 
-t type  
-c channel
-r sample rate
-D no diether (no white noise added to source file during conversion)
-V0 verbosity level set to 0 (no error or warning messages are shown) 

Reference :