hydrophonitor/scripts/start-audio.sh

21 lines
449 B
Bash
Raw Normal View History

#!/bin/bash
set -x
# Export the configuration values
SCRIPT_PATH=/home/pi/hydrophonitor/scripts
$SCRIPT_PATH/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_PATH/hydrophonitor/audio-logger/target/release && ./$AUDIO_TARGET_EXECUTABLE $OPTIONS