Usage
mp3Subsamp(files, from = ".", to, csv.dir = to, csv.name, duration = 600,
mins.between = 50, index = "hour", loc.prefix, CardRecorderID = NA,
kbps = 128, samp.rate = 44100, channels = 2, split = TRUE)
Arguments
files
Optional vector of mp3 file paths to extract surveys from.
from
Directory containing mp3 recordings to extract survey from; required only if files is missing.
to
Directory where surveys will be placed after extraction.
csv.dir
Directory where csv file of survey metadata will be saved; defaults to the to directory.
csv.name
Name assigned to csv file of metadata (character value ending in .csv).
duration
Duration of surveys to extract (numeric, units = 'seconds'). Defaults to 600 seconds (10 minutes).
mins.between
Number of minutes to skip between surveys (numeric). If index="hour", the value for mins.between + duration * 60 (duration converted to minutes) equals the repeat period. Defaults to 50 minutes, for a 60 minute repeat period.
index
Character value indicating whether to take the first survey at the next hour in the recording (identified based on file date modified) or simply from the start of the recording. In c("hour","time0"). Defaults to "hour".
loc.prefix
Six characters identifying the location at which the recording was made. Will be used in the file name (see Details) and the csv file name. Must be in tblLocation.fldLocationName in the acoustics database.
CardRecorderID
Numeric key value from tblCardRecorder.pkCardRecorderID, which links the recorder that made the recording with the location it was recorded.
kbps
Numeric value for mp3 bitrate. Common values are c(64,128,160,192,224,256,320). Must match the bitrate set by the recording device.
samp.rate
Numeric value for mp3 sample rate. Common values are c(22050,44100,48000). Must match the sample rate set by the recording device.
channels
Numeric value for number of audio channels in mp3 file. Both "Stereo" and "Joint Stereo" are 2-channel recordings. "Mono" is a 1-channel recording.
split
Logical. The default TRUE will send the call to mp3splt to subsample the surveys; FALSE will generate metadata only.