This function uses SoX to clip multiple wav files to a desired length.

sox.clips(
  data,
  out.path = file.path(getwd(), "Clipped_Selection"),
  duration = list(start = 0, end = 180)
)

Arguments

data

String path to .wav file.

out.path

String path to where to save your file. Defaults to a folder "Clipped_Selection".

duration

A list for the start and end time of the clip in seconds. Default is start = 0 and end = 180 for a 3 min clip.

Value

Clipped .wav files.

Examples

sox.clips(data,out.path = file.path(getwd(),"Clipped_Selection"), duration = list(start = 0, end = 180))