User Tools

Site Tools


unix:sox

sox

The swiss army knife of Unix audio.

Because it's a Swiss army knife it has myriad options so I use this page to annotate the options/commands useful to me. ( besides >play <somefile> )
My main requirement is to know my file format for converting: Here for example is a Vigils MIX file:

/2014-01-10-KCC_Mix.wav:

 File Size: 1.22G     Bit Rate: 1.41M
  Encoding: Signed PCM    
  Channels: 2 @ 16-bit   
Samplerate: 44100Hz      
Replaygain: off         
  Duration: 01:55:18.30

And an incorrect Church podcast file (it should be 128k mono.

soxi /media/INTENSO/audprg/2014-01-05-RevAlanMurray-WhoWasFirst.mp3 

Input File     : '/media/INTENSO/audprg/2014-01-05-RevAlanMurray-WhoWasFirst.mp3'
Channels       : 2
Sample Rate    : 44100
Precision      : 16-bit
Duration       : 00:02:20.08 = 6177572 samples = 10506.1 CDDA sectors
File Size      : 3.36M
Bit Rate       : 192k
Sample Encoding: MPEG audio (layer I, II or III)
Comments       : 
Title=Who recognized Jesus
Artist=RevAlanMurray
Album=Sermon
Year=2014
Genre=Speech
unix/sox.txt · Last modified: 2020/04/08 00:24 (external edit)