sox input.wav output.wav trim 0 10

Category: Media & Conversion

sox input.wav output.wav trim 0 10

Keep only the first 10 seconds

Keeps only the first 10 seconds of audio and writes it out. The trim effect takes a start position and an optional duration. Related: trim 10 starts at the 10-second mark instead.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.