Description Usage Arguments Details Value Examples
Apply transformations for modelling ready audio files.
1 2 3 4 5 6 7 | tidy_audio_dir(
audio_files,
dest_dir = tempdir(),
sample_rate = 16000,
bits = 16,
parallel = 1
)
|
audio_files |
character vector with the full path for the mp3 files. |
dest_dir |
optional atomic character indicating the path where to store the files. Default is a tempdir(). Set NULL if you want the dest dir be the same as origin (warning: it will overwrite the original wave files!) |
sample_rate |
integer. Sample rate. |
bits |
integer. |
The transformations are:
- mp3 to wav - normalization - stereo to mono
a character vector of the same size of audio_files with the file names of the transformed wavs.
1 2 3 4 | mp3_dir <- system.file("mp3_sample", package = "mestrado")
mp3_files <- list.files(mp3_dir, full.names = TRUE)
wav_files <- tidy_audio(mp3_files)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.