recording waits for socket

This commit is contained in:
mcguirepr89
2022-02-11 15:03:26 -05:00
parent 500419da05
commit 38bb74e895
+4
View File
@@ -13,7 +13,11 @@ fi
if pgrep arecord &> /dev/null ;then
echo "Recording"
else
until grep 5050 <(netstat -tulpn 2>&1);do
sleep 1
done
if [ -z ${REC_CARD} ];then
arecord -f S16_LE -c${CHANNELS} -r48000 -t wav --max-file-time ${RECORDING_LENGTH}\
--use-strftime ${RECS_DIR}/%B-%Y/%d-%A/%F-birdnet-${STAMP}.wav
else