How do you trim the audio file’s end using SoX?
The syntax is sox input output trim <start> <duration> e.g. sox input.wav output.wav trim 0 00:35 will output the first 35 seconds into output.wav. (you can know what the length is using sox input -n stat) From the SoX documentation on the trim command: Cuts portions out of the audio. Any number of positions may … Read more