hydrophonitor/scripts/start-audio.sh

18 lines
414 B
Bash
Raw Normal View History

#!/bin/bash
# Export the configuration values
/home/pi/hydrophonitor/scripts/export-config-values.sh
2022-10-02 12:24:51 +00:00
AUDIO_TARGET_EXECUTABLE="audio"
OPTIONS="rec \
--name audio_data \
2022-10-04 18:12:00 +00:00
--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