mirror of
https://github.com/romanz/amodem.git
synced 2026-02-25 00:31:08 +08:00
use wave.py to play and record audio at test.sh
This commit is contained in:
20
test.sh
20
test.sh
@@ -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
|
||||
Reference in New Issue
Block a user