if (FALSE) {
# here replace with path where 'Raven' is installed in your computer
raven.path <- "PATH_TO_RAVEN_DIRECTORY_HERE"
# Run detector on raven example sound files
# single sound file using 'Amplitude Detector'
detec.res <- raven_batch_detec(raven.path = raven.path,
sound.files = "BlackCappedVireo.aif", path = file.path(raven.path, "Examples"),
detector.type = "Amplitude Detector")
# on raven examples 2 files
detec.res <- raven_batch_detec(raven.path = raven.path,
sound.files = c("BlackCappedVireo.aif", "CanyonWren.wav"),
path = file.path(raven.path, "Examples"), detector.type = "Amplitude Detector")
# using 'Band Limited Energy Detector'
detec.res <- raven_batch_detec(raven.path = raven.path,
sound.files = c("BlackCappedVireo.aif", "CanyonWren.wav"),
path = file.path(raven.path, "Examples"), detector = "Band Limited Energy Detector")
}
Run the code above in your browser using DataLab