Radio Recorder
From xKyle.com - Notebook
The radio recorder is a simple radio recorder that uses a bash script to filter out all the noise and give me daily summaries of the radio chatter.
Hardware
Interface
The interface is simply a directory listing: [1]
Script
#!/bin/bash while [ 1 ]; do OUTFILE=`date +%F-%H-%M-%S` echo Recording Audio with noise reduction.... sox -S -t alsa default -t .wav /tmp/$OUTFILE.1.wav noisered /etc/channel-noise & PID=$! sleep 12h kill $PID echo Killed... Waiting for write... sleep 5s echo removing Scilence.... sox -S /tmp/$OUTFILE.1.wav -t .ogg /tmp/$OUTFILE.ogg silence -l 1 3000 1% -5 5000 1% echo Uploading... rsync -aPv /tmp/*.ogg root@a.xkyle.com:/raid/radio-recordings/ if [ $? -eq 0 ]; then echo Upload Done. rm /tmp/$OUTFILE.1.wav else echo Upload not done fi done

