Skip to content

Instantly share code, notes, and snippets.

@tomfanning
Created February 21, 2017 00:21
Show Gist options
  • Save tomfanning/99717f68b2ea15951e0c598d91daf320 to your computer and use it in GitHub Desktop.
Save tomfanning/99717f68b2ea15951e0c598d91daf320 to your computer and use it in GitHub Desktop.
rtl_fm sox ices2 direwolf icecast experiments
rtl_fm -f 144800000 -p 42 - | sox --buffer 128 -t raw -r 24k -es -b 16 -c 1 > /root/144800.wav
rtl_fm -f 144800000 -p 42 - | sox --buffer 128 -t raw -r 24k -es -b 16 -c 1 - -t wav -r 24k - > /root/144800.wav
rtl_fm -f 144800000 -p 42 - | tee /root/144800.raw | sox --buffer 128 -t raw -r 24k -es -b 16 -c 1 - -t wav -r 24k - > /root/144800.wav
rtl_fm -f 144800000 -p 42 - | tee <(direwolf -t 0 -c /root/direwolf.conf -r 24000 -D 1 -q d > /tmp/dw.log) | sox --buffer 128 -t raw -r 24k -es -b 16 -c 1 - -t wav -r 24k - > /root/144800.wav
rtl_fm -f 144800000 -p 42 - | tee <(direwolf -t 0 -c /root/direwolf.conf -r 24000 -D 1 -q d > /tmp/dw.log) | sox --buffer 128 -t raw -r 24k -es -b 16 -c 1 - -t wav -r 24k - | nc -l 1234
rtl_fm -f 144800000 -p 42 - | tee <(direwolf -t 0 -c /root/direwolf.conf -r 24000 -D 1 -q d > /tmp/dw.log 2>&1) | sox --buffer 128 -t raw -r 24k -es -b 16 -c 1 - -t wav -r 24k - > test.wav
- half to sox
- half to dw
rtl_fm -f 144800000 -p 42 - | tee >(sox --buffer 128 -t raw -r 24k -es -b 16 -c 1 - -t wav -r 24k - > test.wav) | (direwolf -t 0 -c /root/direwolf.conf -r 24000 -D 1 -q d > /tmp/dw.log 2>&1)
ices2 ices-alsa.xml
rtl_fm -f 144800000 -p 42 - | tee >(sox --buffer 128 -t raw -r 24k -es -b 16 -c 1 - -t wav -r 24k -) >(ices2 ices-alsa.xml) | (direwolf -t 0 -c /root/direwolf.conf -r 24000 -D 1 -q d > /tmp/dw.log 2>&1)
rtl_fm -f 144800000 -p 42 - \
| tee >(direwolf -t 0 -c /root/direwolf.conf -r 24000 -D 1 -q d > /tmp/dw.log 2>&1) \
| sox --buffer 128 -t raw -r 24k -es -b 16 -c 1 - -t wav -r 24k - \
| ices2 ices-alsa.xml
rtl_fm -f 144800000 -p 37 - | tee >(direwolf -t 0 -c /root/direwolf.conf -r 24000 -D 1 -q d > /tmp/dw.log 2>&1) | ices2 ices-alsa.xml
CMD="/bin/bash -c 'rtl_fm -f 144800000 -p 37 - | tee >(direwolf -t 0 -c /root/direwolf.conf -r 24000 -D 1 -q d > /tmp/dw.log 2>&1) | ices2 ices-alsa.xml' > /dev/null 2>&1 &"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment