R/processing_audio_functions.R
detect_sound_cols.RdAutomatically detect sounds across an entire data frame
detect_sound_cols(
df,
.col = "mic.wav_location_0",
start_time = 0,
volume_threshold = 700,
duration_threshold = 0.06
)A trial results data frame
String: the name of the column containing the sound file paths
A single value or vector of start times (relative to sound file start) for the detection. Default: 0 s
A single volume threshold. Default: 700
A single duration threshold. Default: 0.06 s
The data frame with a new logical column sound_detected added.