recording waits for socket
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user