powered by
Get the length of a recording in seconds
get_wav_length(path, return_numeric = FALSE)
Length of recording in seconds
Character. Path to wave file.
Logical. Return numeric or character?
f <- tempfile() w <- tuneR::sine(440, duration = 100000) tuneR::writeWave(w, f) get_wav_length(f)
Run the code above in your browser using DataLab