Recursively scans a raw data directory, classifies files (audio, short clips/memos, non-audio, corrupt), extracts audio properties, and parses recording datetimes.
Usage
pam_inspect_raw(
raw_dir,
recursive = TRUE,
min_duration_s = 60,
timezone = "Asia/Kolkata",
pattern = NULL
)Examples
ex <- pam_example_project()
# the example audio stands in for a raw dump; recordings under 1 s would count as memos
insp <- suppressMessages(pam_inspect_raw(ex$audio_dir, min_duration_s = 1))
as.data.frame(insp)[, c("filename", "duration_s", "grid", "category")]
#> filename duration_s grid category
#> 1 G0059_20260405_183000.wav 2 G0059 standardizable
#> 2 G0059_20260405_183002.wav 2 G0059 standardizable
#> 3 G0059_20260405_183004.wav 2 G0059 standardizable
#> 4 G0110_20260406_060000.wav 2 G0110 standardizable
#> 5 G0110_20260406_060002.wav 2 G0110 standardizable
#> 6 G0110_20260406_060004.wav 2 G0110 standardizable
