2022-10-11 06:19:01 +00:00
|
|
|
#!/bin/bash
|
2022-08-20 13:40:10 +00:00
|
|
|
|
2022-10-03 16:37:15 +00:00
|
|
|
# Export the configuration values
|
2022-10-11 06:19:01 +00:00
|
|
|
/home/pi/hydrophonitor/scripts/export-config-values.sh
|
2022-10-03 16:37:15 +00:00
|
|
|
|
2022-10-02 12:24:51 +00:00
|
|
|
AUDIO_TARGET_EXECUTABLE="audio"
|
2022-08-20 13:40:10 +00:00
|
|
|
|
2022-10-03 16:37:15 +00:00
|
|
|
OPTIONS="rec \
|
|
|
|
--name audio_data \
|
2022-10-04 18:12:00 +00:00
|
|
|
--output $OUTPUT_DIR/audio \
|
2022-10-03 16:37:15 +00:00
|
|
|
--batch-recording $BATCH_RECORD_LENGTH \
|
|
|
|
--sample-rate $SAMPLE_RATE \
|
|
|
|
--channels $CHANNELS \
|
|
|
|
--buffer-size 1024 \
|
|
|
|
alsa"
|
|
|
|
|
2022-10-11 06:19:01 +00:00
|
|
|
cd /home/pi/hydrophonitor/audio-logger/target/release && ./$AUDIO_TARGET_EXECUTABLE $OPTIONS
|