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