2014-09-26 14:45:32 +01:00
|
|
|
# sox
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> SoX - Sound eXchange.
|
|
|
|
> Play, record and convert audio files.
|
|
|
|
> Audioformats are identified by extension.
|
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`
|