sox.clip: Clip wav to desired length

Description Usage Arguments Value Examples

View source: R/soxclip.R

Description

This function uses SoX to clip a .wav file to a desired length.

Usage

1
2
3
4
5
sox.clip(
  file.path,
  out.path = file.path(getwd(), "Clipped_Selection"),
  duration = list(start = 0, end = 180)
)

Arguments

file.path

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

A clipped .wav file.

Examples

1
sox.clip("C:/LV-01-01-01/LV-01-01-01_20170609_033500.wav",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.