From 57778d405f668cf25c58a038bf743e83ab37afd4 Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Mon, 16 May 2022 10:43:33 -0400 Subject: [PATCH] disabling `sox` warnings --- scripts/extract_new_birdsounds.sh | 4 ++-- scripts/spectrogram.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/extract_new_birdsounds.sh b/scripts/extract_new_birdsounds.sh index e5dfb14..4d52982 100755 --- a/scripts/extract_new_birdsounds.sh +++ b/scripts/extract_new_birdsounds.sh @@ -116,11 +116,11 @@ for h in "${SCAN_DIRS[@]}";do END=${RECORDING_LENGTH} fi - sox "${h}/${OLDFILE}" "${NEWSPECIES_BYDATE}/${NEWFILE}" \ + sox -V1 "${h}/${OLDFILE}" "${NEWSPECIES_BYDATE}/${NEWFILE}" \ trim ="${START}" ="${END}" # Create spectrogram for extraction - sox "${NEWSPECIES_BYDATE}/${NEWFILE}" -n remix 1 rate 24k spectrogram \ + sox -V1 "${NEWSPECIES_BYDATE}/${NEWFILE}" -n remix 1 rate 24k spectrogram \ -t "${COMMON_NAME}" \ -c "${NEWSPECIES_BYDATE//$HOME\/}/${NEWFILE}" \ -o "${NEWSPECIES_BYDATE}/${NEWFILE}.png" diff --git a/scripts/spectrogram.sh b/scripts/spectrogram.sh index 84925d8..9fea456 100755 --- a/scripts/spectrogram.sh +++ b/scripts/spectrogram.sh @@ -3,4 +3,4 @@ source /etc/birdnet/birdnet.conf analyzing_now="$(cat $HOME/BirdNET-Pi/analyzing_now.txt)" spectrogram_png=${EXTRACTED}/spectrogram.png -sox "${analyzing_now}" -n remix 1 rate 24k spectrogram -c "${analyzing_now//$HOME\/}" -o "${spectrogram_png}" +sox -V1 "${analyzing_now}" -n remix 1 rate 24k spectrogram -c "${analyzing_now//$HOME\/}" -o "${spectrogram_png}"