sig2noise
measures signal-to-noise ratio across multiple files.
sig2noise(X, mar, parallel = 1, path = NULL)
manualoc
or any data frame with columns
for sound file name (sound.files), selection number (selec), and start and end time of signal
(start and end).NULL
(default) then the current working directory is used.autodetec
output, but also includes a new variable
with the signal-to-noise values.
snrspecs
can be used to troubleshoot different noise margins.
## Not run:
# # First set temporary folder
# setwd(tempdir())
#
# data(list = c("Phae.long1","manualoc.df"))
# writeWave(Phae.long1, "Phae.long1.wav") #save sound files
#
# # specifying the correct margin is important
# # use snrspecs to troubleshoot margins for sound files
# sig2noise(manualoc.df[grep("Phae.long1", manualoc.df$sound.files), ], mar = 0.2)
#
# # this smaller margin doesn't overlap neighboring signals
# sig2noise(manualoc.df[grep("Phae.long1", manualoc.df$sound.files), ], mar = 0.1)
# ## End(Not run)
Run the code above in your browser using DataLab