Description Usage Arguments Details Value
View source: R/convert_audio.R
convert from mp3 and possibly other audio file formats to .wav
1 2 3 |
filein |
character, paths to input audio files |
outformat |
a list with specifications of the desired output format, see details |
overwrite |
logical, should output files be overwritten if they already exist |
pathout |
character, path were output is written, by default the same as the source |
pathtoffmpeg |
character, path to ffmpeg binary |
The outformat=
argument currently provides three options, and by default a mono (mono = TRUE
) .wav files is produced (filetpye = "wav"
) with 44.1kHz sampling rate (res = 441000
).
Files will be potentially renamed, i.e. the file extension of the new output file will change to '.wav'.
Note that if the input file has the same name and is in the same location as the output (e.g. if you convert x.wav with pathout = NULL
), nothing will happen even if you select overwrite = TRUE
because ffmpeg
won't overwrite its own source.
a data.frame
with diagnostics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.