sox.clips: Clip muliple wavs to desired length

Description Usage Arguments Value Examples

View source: R/soxclip.R

Description

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

Usage

1
2
3
4
5
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

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

deanrobertevans/TrillR documentation built on Dec. 19, 2021, 10:06 p.m.