Skip to content

Instantly share code, notes, and snippets.

@ewpratten
Last active June 13, 2021 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ewpratten/55064889cbaf7586695d97bb16589896 to your computer and use it in GitHub Desktop.
Save ewpratten/55064889cbaf7586695d97bb16589896 to your computer and use it in GitHub Desktop.

Converting ITTY to a text stream

1. consume ITTY

mkfifo fifo.wav
curl http://internet-tty.net:8000/ITTY --output - | ffmpeg -i pipe:0 -f wav -ar 11025 pipe:1 > fifo.wav

2. Decode RTTY data to a file

minimodem rtty -a -5 -i --file ./fifo.wav > data.txt

Other method

mkfifo fifo.wav
ffmpeg -y -i http://internet-tty.net:8000/ITTY -r 8 -preset ultrafast -fflags nobuffer fifo.wav
minimodem rtty -a -5 -i --file ./fifo.wav | netcat -l 4080 -
nc localhost 4080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment