Record streaming radio with streamripper

Yes, many radio shows are available as podcasts. However, some are not. If a radio show is also broadcasted via a live stream online, then we could record it with streamripper. I did so as follow:

<pre class="src src-sh">sudo apt-get install streamripper <span style="color: #ff4500;">## </span><span style="color: #ff4500;">install</span>

## record for 60 seconds streamripper http://kpcclive1.publicradio.org:80/ -s -l 60 -a “Prarie – %d”

To have the show be recorded automatically, first create record.sh:

#! /bin/bash

## set in crontab: ## 59 17 * * 6 /path/to/record.sh cd /path/to/save/; streamripper http://kpcclive1.publicradio.org:80/ -s -l 3720 -a "Prarie - %d" &> /dev/null

Then add the following cron entry via crontab -e:

59 17 * * 6 /path/to/record.sh

(Batch) Amplify audio files from the command line

Audacity is great, but it’s a GUI and sometimes I just want to do basic things like amplify the sound of some mp3 files. Discovered mp3gain from this thread and wrote this script to batch amplify the files:

 <pre class="src src-sh"><span style="color: #ff4500;">#</span><span style="color: #ff4500;">! /bin/</span><span style="color: #00ffff;">bash</span>

## http://boards.straightdope.com/sdmb/archive/index.php/t-339352.html

gainval=10 for file in “$@” do mp3gain -g $gainval $file done

Note that mp3gain alters the original mp3 files directly. My default value is 10; feel free to alter it.