You want to be able to play Internet radio on your Raspberry Pi.
Install the VLC media player by running the following command:
sudo apt-get install vlc |
Once it’s installed, you can find VLC in the Sound & Video section of your Start menu.
Run the program and select the Open Network Stream option on the Media menu. This will open a dialog box (see Figure 4-13) where you can enter the URL of the Internet radio station that you wish to play.
You will need to plug headphones or amplified speakers into the audio socket on the Raspberry Pi.
Discussion
VLC can also be run from the command line:
$ vlc http://www.a-1radio.com/listen.pls -I dummy |
VLC will probably produce a series of error messages, but then play the audio just fine.
See Also
This recipe borrows heavily from this tutorial, where Jan Holst takes things a step further and adds radio-style controls to the project.
For UK readers, you can find a list of the BBC radio stream URLs.