tidy_audio.Rd
Apply transformations on an wav object for modelling purposes.
tidy_audio(wav, sample_rate = 16000, bits = 16)
wav |
---|
a transformed Wave object.
The transformations are:
- mp3 to wav - normalization - stereo to mono
library(tuneR) mp3_dir <- system.file("mp3_sample", package = "mestrado") mp3_files <- list.files(mp3_dir, full.names = TRUE) wav <- readMP3(mp3_files[1]) transformed_wav <- tidy_audio(wav)