2022-10-11 06:19:01 +00:00
|
|
|
#!/bin/bash
|
2022-08-20 13:40:10 +00:00
|
|
|
|
2022-10-22 11:41:27 +00:00
|
|
|
set -x
|
|
|
|
|
2022-10-03 16:37:15 +00:00
|
|
|
# Export the configuration values
|
2022-10-22 12:54:50 +00:00
|
|
|
SCRIPT_PATH=/home/pi/hydrophonitor/scripts
|
2022-10-23 14:03:54 +00:00
|
|
|
. $SCRIPT_PATH/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-22 12:54:50 +00:00
|
|
|
cd $HOME_PATH/hydrophonitor/audio-logger/target/release && ./$AUDIO_TARGET_EXECUTABLE $OPTIONS
|