From 88030e71b65bc713a9b4a9a94e018a8fb955d353 Mon Sep 17 00:00:00 2001 From: Patrick McGuire <60325264+mcguirepr89@users.noreply.github.com> Date: Sun, 15 May 2022 14:39:10 -0400 Subject: [PATCH] Makes this thing actually work! In `sox`, the default syntax `trim` uses for `position` is `+`. This means it is necessary to specify the `=` symbol to get the proper syntax for the `trim` call. --- scripts/extract_new_birdsounds.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/extract_new_birdsounds.sh b/scripts/extract_new_birdsounds.sh index 093d09e..e5dfb14 100755 --- a/scripts/extract_new_birdsounds.sh +++ b/scripts/extract_new_birdsounds.sh @@ -117,7 +117,7 @@ for h in "${SCAN_DIRS[@]}";do fi sox "${h}/${OLDFILE}" "${NEWSPECIES_BYDATE}/${NEWFILE}" \ - trim "${START}" "${END}" + trim ="${START}" ="${END}" # Create spectrogram for extraction sox "${NEWSPECIES_BYDATE}/${NEWFILE}" -n remix 1 rate 24k spectrogram \