add record.sh

This commit is contained in:
2021-01-30 13:25:32 +00:00
parent 05d6bc6eab
commit 37891eee86
6 changed files with 75 additions and 52 deletions

View File

@@ -1,7 +1,8 @@
#!/bin/bash
. ./sumsel.conf
. ./sumsel_functions.incl
COUNTER=0
#SIM_EXAMPLE_FILE=./res/test.wav
#SIM_PREFIX=sums
@@ -13,6 +14,6 @@ while :
do
sleep 1
COUNTER=$[$COUNTER +1]
dst_fn="${REC_DIR}/${SIM_PREFIX}_${COUNTER}.wav"
dst_fn="${REC_DIR}/${REC_PREFIX}-${COUNTER}.wav"
cp ${SIM_EXAMPLE_FILE} ${dst_fn}
done