Step 4: Over the internet radio.

mpg123.png
Lots of radio stations broad cast over the internet now, so you do not need an antenna to get quite a few stations. You will need to get the music feed. Some site have it right there for you. Some you have to extract the feed form a file. Newer stations no longer allow you to easily use a feed to play it in your computer.

$ sudo apt-get install mpg123

you will need to get the website and port mo.

mpg321 website:portnimber

i.e.
$ mpg321 http://sc1.audiorealm.com:10074/e

in some cases you will have to download the playlist file and extract the the url:port. you can use links2 ot or elinks to grab the playlist name and then use wget to grab the file. once you have file you can extrat the url:portnumber.

i.e.
$ wget http://provisioning.streamtheworld.com/pls/KBPAFMAAC.pls

Som stations use the m3u format.
$ cat 96-32.m3u
http://sc1.audiorealm.com:10074/

The it is just a matter of running mpg123

$ mpg123 http://sc1.audiorealm.com:10074/

Some newer station require flash of a particular player to listen to their music.  That is a subject for another day.

 
Remove these adsRemove these ads by Signing Up
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!