From 03b10514b7413f5e66e2adb73c73a8bb463eb411 Mon Sep 17 00:00:00 2001 From: Patrick McGuire <60325264+mcguirepr89@users.noreply.github.com> Date: Mon, 14 Feb 2022 15:37:54 -0500 Subject: [PATCH] Update update_birdnet2.sh --- scripts/update_birdnet2.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/scripts/update_birdnet2.sh b/scripts/update_birdnet2.sh index 19f4182..2b62e74 100755 --- a/scripts/update_birdnet2.sh +++ b/scripts/update_birdnet2.sh @@ -19,6 +19,21 @@ FULL_DISK=purge EOF fi +if ! grep AUDIOFMT ${birdnet_conf} &> /dev/null;then + cat<< EOF >> ${birdnet_conf} +## AUDIOFMT set the audio format that sox should use for the extractions. +## The default is mp3. Available formats are: 8svx aif aifc aiff aiffc al amb +## amr-nb amr-wb anb au avr awb caf cdda cdr cvs cvsd cvu dat dvms f32 f4 f64 f8 +## fap flac fssd gsm gsrt hcom htk ima ircam la lpc lpc10 lu mat mat4 mat5 maud +## mp2 mp3 nist ogg paf prc pvf raw s1 s16 s2 s24 s3 s32 s4 s8 sb sd2 sds sf sl +## sln smp snd sndfile sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 +## ub ul uw vms voc vorbis vox w64 wav wavpcm wv wve xa xi +## Note: Most have not been tested. + +AUDIOFMT=mp3 +EOF +fi + sudo -u${USER} sed -i 's/EXTRACTIONLOG_URL/WEBTERMINAL_URL/g' ${birdnetconf} # Replace Backup labels.txt