summaryrefslogtreecommitdiff
path: root/utilities/modem_transmit
blob: 6101641c42129ec3154812aed236909a87cbb540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/zsh

OUT="$(mktemp)"

python modem.py =(echo -n "$1"$'\0') $OUT

case "$(uname -s)" in
Darwin)
   	play $OUT
   	;;
*) 
    aplay $OUT
    ;;
esac

rm $OUT