trim_mp3: Trim MP3 Audio File

Description Usage Arguments See Also

View source: R/audio.R

Description

This function trims MP3 files given a start and/or end numeric timestamp. Requires ffmpeg installed in your machine.

Usage

1
2
3
4
5
6
7
8
trim_mp3(
  file,
  start_time = 0,
  end_time = NA,
  overwrite = FALSE,
  ext = "mp3",
  quiet = FALSE
)

Arguments

file

Character. File name to trim.

start_time

Numeric. Start and end time to trim the audio output in seconds.

end_time

Numeric. Start and end time to trim the audio output in seconds.

overwrite

Boolean. Overwrite original file?

ext

Character. File extension/type.

quiet

Boolean. Keep quiet? If not, print messages.

See Also

Other Audio: get_mp3()


lares documentation built on June 9, 2021, 9:06 a.m.