fix automatic calibration script.

This commit is contained in:
Roman Zeyde
2014-08-10 10:02:33 +03:00
parent ecae434282
commit 71991daa90

View File

@@ -1,7 +1,12 @@
#!/bin/bash
killall -q aplay arecord
python -m calib send &
SENDER_PID=$!
python -m calib recv
./scripts/calib.py send &
SENDER_PID=$!
echo "Playing audio (PID=${SENDER_PID})..."
echo "Recording audio (Stop with Ctrl+C)..."
./scripts/calib.py recv
echo "Stopping player..."
kill -INT $SENDER_PID