Apply transformations on an wav object for modelling purposes.

tidy_audio(wav, sample_rate = 16000, bits = 16)

Arguments

wav

Wave object. Usualy returned by readMP3/readWave.

Value

a transformed Wave object.

Details

The transformations are:

- mp3 to wav - normalization - stereo to mono

Examples

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)