21 lines
522 B
Bash
Executable File
21 lines
522 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Export the configuration values
|
|
. /home/pi/hydrophonitor/scripts/export-config-values.sh
|
|
|
|
AUDIO_TARGET_PATH="/home/pi/hydrophonitor/audio-logger/target/release"
|
|
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"
|
|
|
|
echo "cd $AUDIO_TARGET_PATH && ./$AUDIO_TARGET_EXECUTABLE $OPTIONS"
|
|
|
|
cd $AUDIO_TARGET_PATH && ./$AUDIO_TARGET_EXECUTABLE $OPTIONS
|