setting recording interval to 9 seconds

extractions now works with date (defaults to current date since analysis
is so quick)
This commit is contained in:
Patrick McGuire
2021-09-29 16:49:55 -04:00
parent b186e5d6a1
commit 130901c680
2 changed files with 10 additions and 6 deletions
+2 -2
View File
@@ -6,10 +6,10 @@ if pgrep arecord &> /dev/null ;then
echo "Recording"
else
if [ -z ${REC_CARD} ];then
arecord -f S16_LE -c${CHANNELS} -r48000 -t wav --max-file-time 10\
arecord -f S16_LE -c${CHANNELS} -r48000 -t wav --max-file-time 9\
--use-strftime ${RECS_DIR}/%B-%Y/%d-%A/%F-birdnet-%I:%M:%S%P.wav
else
arecord -f S16_LE -c${CHANNELS} -r48000 -t wav --max-file-time 10\
arecord -f S16_LE -c${CHANNELS} -r48000 -t wav --max-file-time 9\
-D "${REC_CARD}" --use-strftime \
${RECS_DIR}/%B-%Y/%d-%A/%F-birdnet-%I:%M:%S%P.wav
fi