use wave.py to play and record audio at test.sh

This commit is contained in:
Roman Zeyde
2014-07-11 10:39:24 +03:00
parent 1eb7dff83c
commit bb336c157d
2 changed files with 41 additions and 7 deletions

20
test.sh
View File

@@ -1,9 +1,19 @@
#!/bin/bash
set -u
set -x
set -e
dd if=/dev/urandom of=data.send bs=1024 count=128
python send.py
python recv.py
python errors.py data.* #python show.py tx.int16 rx.int16
dd if=/dev/urandom of=data.send bs=1024 count=1
./send.py
./wave.py record rx.int16 &
PID=$!
./wave.py play tx.int16
sleep 1
kill -INT $PID
./recv.py
./errors.py data.*
if [ -z $? ]; then
./show.py tx.int16 rx.int16
fi