LinuxCommandLibrary

sox

sox

TLDR

Merge two audio files into one

$ sox -m [input_audiofile1] [input_audiofile2] [output_audiofile]
copy


Trim an audio file to the specified times
$ sox [input_audiofile] [output_audiofile] trim [start] [end]
copy


Normalize an audio file (adjust volume to the maximum peak level, without clipping)
$ sox --norm [input_audiofile] [output_audiofile]
copy


Reverse and save an audio file
$ sox [input_audiofile] [output_audiofile] reverse
copy


Print statistical data of an audio file
$ sox [input_audiofile] -n stat
copy


Increase the volume of an audio file by 2x
$ sox -v 2.0 [input_audiofile] [output_audiofile]
copy

Copied to clipboard