Skip to content

Instantly share code, notes, and snippets.

@aynik
Created June 13, 2022 11:22
mdin
#!/usr/bin/env bash
# usage: ./mdin.sh <input-file> <output-file.wav>
sox -G -M \
-t raw -r 16000 -c 1 -b 16 -e signed -L <(even-bytes < $1 | modem-tx) \
-t raw -r 16000 -c 1 -b 16 -e signed -L <(odd-bytes < $1 | modem-tx) \
-t wav -r 44100 $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment