trim_mp3: Trim MP3 Audio File

View source: R/audio.R

trim_mp3R Documentation

Trim MP3 Audio File

Description

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

Usage

trim_mp3(
  file,
  start_time = 0,
  end_time = NA,
  overwrite = FALSE,
  ext = "mp3",
  quiet = FALSE
)

Arguments

file

Character. File name to trim.

start_time, 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 Sept. 13, 2024, 1:08 a.m.