duration_wavs
measures the duration of sound files in '.wav' format
duration_wavs(files = NULL, path = NULL)
Character vector with the names of the sound files to be measured. The sound files should be in the working directory or in the directory provided in 'path'.
Character string containing the directory path where the sound files are located.
If NULL
(default) then the current working directory is used.
A data frame with the duration (in seconds) of the sound files.
This function returns the duration (in seconds) of sound files.
Araya-Salas, M., & Smith-Vidaurre, G. (2017). warbleR: An R package to streamline analysis of animal acoustic signals. Methods in Ecology and Evolution, 8(2), 184-191.
# NOT RUN {
{
data(list = c("Phae.long1", "Phae.long2", "Phae.long3"))
writeWave(Phae.long1, file.path(tempdir(), "Phae.long1.wav"))
writeWave(Phae.long2, file.path(tempdir(), "Phae.long2.wav"))
writeWave(Phae.long3, file.path(tempdir(), "Phae.long3.wav"))
duration_wavs(path = tempdir())
}
# }
Run the code above in your browser using DataLab