2014-09-26 14:45:32 +01:00
|
|
|
# sox
|
|
|
|
|
2016-10-12 16:58:04 +01:00
|
|
|
> Sound eXchange: play, record and convert audio files.
|
|
|
|
> Audio formats are identified by the extension.
|
2019-05-15 09:07:05 +01:00
|
|
|
> Homepage: <http://sox.sourceforge.net>.
|
2014-09-26 14:45:32 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Merge two audio files into one:
|
2014-09-26 14:45:32 +01:00
|
|
|
|
2014-09-29 03:18:13 +01:00
|
|
|
`sox -m {{input_audiofile1}} {{input_audiofile2}} {{output_audiofile}}`
|
2014-09-26 14:45:32 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Trim an audio file to the specified times:
|
2014-09-26 14:45:32 +01:00
|
|
|
|
|
|
|
`sox {{input_audiofile}} {{output_audiofile}} trim {{start}} {{end}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Normalize an audio file (adjust volume to the maximum peak level, without clipping):
|
2014-09-26 14:45:32 +01:00
|
|
|
|
|
|
|
`sox --norm {{input_audiofile}} {{output_audiofile}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Reverse and save an audio file:
|
2014-09-26 14:45:32 +01:00
|
|
|
|
|
|
|
`sox {{input_audiofile}} {{output_audiofile}} reverse`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Print statistical data of an audio file:
|
2014-09-26 14:45:32 +01:00
|
|
|
|
2014-09-29 03:18:13 +01:00
|
|
|
`sox {{input_audiofile}} -n stat`
|
2017-01-26 22:46:42 +00:00
|
|
|
|
|
|
|
- Increase the volume of an audio file by 2x:
|
|
|
|
|
|
|
|
`sox -v 2.0 {{input_audiofile}} {{output_audiofile}}`
|