1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 09:17:57 +01:00
tldr/pages/common/sox.md

26 lines
645 B
Markdown
Raw Normal View History

# sox
> SoX - Sound eXchange
> Play, record and convert audio files
> Audioformats are identified by extension
- Merge two audio files into one
`sox -m {{input_audiofile1}} {{input_audiofile2}} {{output_audiofile}}`
- Trim an audio file to the specified times
`sox {{input_audiofile}} {{output_audiofile}} trim {{start}} {{end}}`
- Normalize an audio file (adjust volume to the maximum peak level, without clipping)
`sox --norm {{input_audiofile}} {{output_audiofile}}`
- Reverse and save an audio file
`sox {{input_audiofile}} {{output_audiofile}} reverse`
- Print statistical data of an audio file
`sox {{input_audiofile}} -n stat`