copy_audio: copy audio files with optional silence added at the end

Description Usage Arguments Details Value

View source: R/copy_audio.R

Description

copy audio files with optional silence added at the end

Usage

1
2
copy_audio(from, to, appendsilence = NULL,
  pathtosox = getOption("avutils_sox"))

Arguments

from

character, file path for the source

to

character, file path to the target location

appendsilence

numeric, number of seconds for added silence at the end of the file. NULL by default where the file is simply copied without any processing through sox.

pathtosox

character, path to sox binary

Details

In case you want to add silence to the audio file, sox is required (see set_binaries for details). In addition, the function creates an additional temporary copy of the wav file, because sox also requires 'clean' file names.

Value

logical, indicating whether the file to exists, i.e. whether copying was successful.


gobbios/avutils documentation built on Feb. 19, 2020, 9:44 a.m.