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-23 11:56:50 +01:00
|
|
|
> More information: <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
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`sox -m {{path/to/input_audio1}} {{path/to/input_audio2}} {{path/to/output_audio}}`
|
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
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`sox {{path/to/input_audio}} {{path/to/output_audio}} trim {{start}} {{end}}`
|
2014-09-26 14:45:32 +01:00
|
|
|
|
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
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`sox --norm {{path/to/input_audio}} {{path/to/output_audio}}`
|
2014-09-26 14:45:32 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Reverse and save an audio file:
|
2014-09-26 14:45:32 +01:00
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`sox {{path/to/input_audio}} {{path/to/output_audio}} reverse`
|
2014-09-26 14:45:32 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Print statistical data of an audio file:
|
2014-09-26 14:45:32 +01:00
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`sox {{path/to/input_audio}} -n stat`
|
2017-01-26 22:46:42 +00:00
|
|
|
|
|
|
|
- Increase the volume of an audio file by 2x:
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`sox -v 2.0 {{path/to/input_audio}} {{path/to/output_audio}}`
|