Skip to content
Small shell script for streaming sounds
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Little shell script that streams internet radio stations I like.



This requires a Unix-like system.

  • bash (version 4)
  • git (to get the code)
  • mpv (to play the stream)
  • whiptail (to do the dialog box)

On Ubuntu, this will install what you need (whiptail is built in):

sudo apt install git mpv

On Mac OS X, run this to get whiptail:

brew install newt

It will even work on Android, with Termux. Open a shell, then run:

pkg install git dialog mpv


This command will download all the files without requiring a GitHub account:

git clone


Run the script on its own:

cd whipradio


Not a bug, but a needed code improvement. The script defines an associative array in a Bash script, where the keys are the station names and the values are the stream URLs. I can’t figure out how to pass the station names to whiptail to make them appear in the menu list, so I have to hard-code them. This means duplication, which I’d like to get rid of. Suggestions welcome.

You can’t perform that action at this time.