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