recording waits for socket
This commit is contained in:
@@ -13,7 +13,11 @@ fi
|
|||||||
if pgrep arecord &> /dev/null ;then
|
if pgrep arecord &> /dev/null ;then
|
||||||
echo "Recording"
|
echo "Recording"
|
||||||
else
|
else
|
||||||
|
until grep 5050 <(netstat -tulpn 2>&1);do
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
if [ -z ${REC_CARD} ];then
|
if [ -z ${REC_CARD} ];then
|
||||||
|
|
||||||
arecord -f S16_LE -c${CHANNELS} -r48000 -t wav --max-file-time ${RECORDING_LENGTH}\
|
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
|
--use-strftime ${RECS_DIR}/%B-%Y/%d-%A/%F-birdnet-${STAMP}.wav
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user