Cutting of audio files

Audacity is capable of doing this.

About Audacity

Audacity is a free, easy-to-use and multilingual audio editor and recorder for Windows, Mac OS X, GNU/Linux and other operating systems. You can use Audacity to:

  • Record live audio.
  • Convert tapes and records into digital recordings or CDs.
  • Edit Ogg Vorbis, MP3, WAV or AIFF sound files.
  • Cut, copy, splice or mix sounds together.
  • Change the speed or pitch of a recording.
  • And more! See the complete list of features.

enter image description here


avconv can do this.

Example:

avconv -i infile.m4a  -ss *pos* -t *duration* outfile.mp3

pos is start time in seconds

duration is play time in seconds

Install libav-tools to make it happen.


If you are not sure about the start and end times and want to listen to the segment before making it a new file, you should know that avplay takes many of the same arguments as avconv does.

Example:

avplay -ss 5030 -t 970 infile.m4a

If you don't want to do math in your head and also would not like to pull up a calculator, you can use the Hour:Minute:Second format instead. The example given above would then be:

avplay -ss 1:23:50 -t 00:16:10 infile.m4a

Also, keep in mind that if the pieces are not the final output (e.g. you are going to combine them), you might want to keep using the same format as that of the input file.