mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 18:01:03 +01:00
Remove bats
This commit is contained in:
@@ -8,27 +8,6 @@ set -e
|
||||
|
||||
bashio::log.info "Adding optional features"
|
||||
|
||||
if bashio::config.true "BAT_MODEL_ENABLED"; then
|
||||
bashio::log.warning "... system will be modified to analyse bats!"
|
||||
sed -i '/thread_queue_size/a\ if [[ "$MODEL" == *"Bat"* ]]; then FFMPEG_PARAMS+="-vn -thread_queue_size 512 -i ${i} -map ${MAP_ID}:a:0 -t ${RECORDING_LENGTH} -acodec pcm_s16le -ac 2 file:${RECS_DIR}/StreamData/$(date "+%F")-birdnet-RTSP_${RTSP_STREAMS_STARTED_COUNT}-$(date "+%H:%M:%S").wav && python3 $HOME/BirdNET-Pi/scripts/bat_wav_translate.py ${RECS_DIR}/StreamData/$(date "+%F")-birdnet-RTSP_${RTSP_STREAMS_STARTED_COUNT}-$(date "+%H:%M:%S").wav"; fi' $HOME/*Pi/scripts/birdnet_recording.sh
|
||||
echo "... installing wav translator"
|
||||
cp /helpers/Bat_Model_BE_v1.py "$HOME"/BirdNET-Pi/scripts/bat_wav/translate.py
|
||||
chmod +x "$HOME"/BirdNET-Pi/scripts/bat_wav_translate.py
|
||||
echo "... moving model"
|
||||
cp /helpers/Bat_Model_BE_v1.tflite "$HOME"/BirdNET-Pi/model/
|
||||
chown pi:pi "$HOME"/BirdNET-Pi/model/*
|
||||
echo "... installing labels"
|
||||
mv /helpers/Bat_Model_BE_v1.txt "$HOME"/BirdNET-Pi/scripts/labels.txt
|
||||
echo "... changing model to bats"
|
||||
sed -i "/MODEL/c\MODEL=\"Bat_Model_BE_v1\"" /config/birdnet.conf
|
||||
fi
|
||||
|
||||
# Denoiser
|
||||
#if bashio::config.true "DENOISER_ANALYSIS_ENABLED"; then
|
||||
# sed -i "s|ar 48000|ar 48000 -af \"arnndn=m=sample.rnnn\"|g" "$HOME"/BirdNET-Pi/scripts/birdnet_recording.sh
|
||||
# sed -i "s|ar 48000|ar 48000 -af afftdn=nr=30:nt=w:om=o|g" "$HOME"/BirdNET-Pi/scripts/birdnet_recording.sh
|
||||
#fi
|
||||
|
||||
# Enable the Processed folder
|
||||
#############################
|
||||
|
||||
|
||||
Reference in New Issue
Block a user