hydrophonitor/scripts/start-audio.sh
2022-10-22 14:41:27 +03:00

20 lines
422 B
Bash
Executable File

#!/bin/bash
set -x
# Export the configuration values
/home/pi/hydrophonitor/scripts/export-config-values.sh
AUDIO_TARGET_EXECUTABLE="audio"
OPTIONS="rec \
--name audio_data \
--output $OUTPUT_DIR/audio \
--batch-recording $BATCH_RECORD_LENGTH \
--sample-rate $SAMPLE_RATE \
--channels $CHANNELS \
--buffer-size 1024 \
alsa"
cd /home/pi/hydrophonitor/audio-logger/target/release && ./$AUDIO_TARGET_EXECUTABLE $OPTIONS