audio - Sox resample and convert -


i trying figure out how combine 2 commands in sox. master file 44.1khz. first want resample file 22khz , convert mp3/opus/ogg. how can single command?

sox determines files type looking @ extension. adjust rate of output file, add -r option output files formatting options. manual synopsis:

sox [global-options] [format-options] infile1      [[format-options] infile2] ... [format-options] outfile      [effect [effect-options]] ... 

here example of how perform both actions 1 command:

sox master.wav -r 22050 out.ogg 

alternatively, add rate manipulation effects chain:

sox master out.ogg rate 22050 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -