Skip to content

Instantly share code, notes, and snippets.

@edy555
Created December 13, 2012 01:32
Show Gist options
  • Select an option

  • Save edy555/4273289 to your computer and use it in GitHub Desktop.

Select an option

Save edy555/4273289 to your computer and use it in GitHub Desktop.
Remote FM broadcasting Receiver via HTTP
#!/bin/sh
echo "Content-Type: audio/wav"
echo
freq=$QUERY_STRING
if [ x$freq = x ]; then
freq="82.5M"
fi
rtl_fm -s 32000 -f $freq -W - | sox -r 32000 -c 1 -t s16 - -t wav -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment