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
Post a Comment