Automatically 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
)

Arguments

df

A trial results data frame

.col

String: the name of the column containing the sound file paths

start_time

A single value or vector of start times (relative to sound file start) for the detection. Default: 0 s

volume_threshold

A single volume threshold. Default: 700

duration_threshold

A single duration threshold. Default: 0.06 s

Value

The data frame with a new logical column sound_detected added.