2014-09-26 15:45:32 +02:00
|
|
|
# sox
|
|
|
|
|
|
|
|
> SoX - Sound eXchange
|
|
|
|
> Play, record and convert audio files
|
|
|
|
> Audioformats are identified by extension
|
|
|
|
|
|
|
|
- Merge two audio files into one
|
|
|
|
|
|
|
|
`sox -m {{audiofile1}} {{audiofile2}} {{output_filename}}`
|
|
|
|
|
2014-09-29 04:15:39 +02:00
|
|
|
- Trim an audio file to the specified times
|
2014-09-26 15:45:32 +02:00
|
|
|
|
|
|
|
`sox {{input_audiofile}} {{output_audiofile}} trim {{start}} {{end}}`
|
|
|
|
|
2014-09-29 04:15:39 +02:00
|
|
|
- Normalize an audio file (adjust volume to the maximum peak level, without clipping)
|
2014-09-26 15:45:32 +02:00
|
|
|
|
|
|
|
`sox --norm {{input_audiofile}} {{output_audiofile}}`
|
|
|
|
|
2014-09-29 04:15:39 +02:00
|
|
|
- Reverse and save an audio file
|
2014-09-26 15:45:32 +02:00
|
|
|
|
|
|
|
`sox {{input_audiofile}} {{output_audiofile}} reverse`
|
|
|
|
|
2014-09-29 04:15:39 +02:00
|
|
|
- Print statistical data of an audio file
|
2014-09-26 15:45:32 +02:00
|
|
|
|
|
|
|
`sox {{audiofile}} -n stat`
|