BreakingExpress

Listen to the radio on the Linux terminal

You’ve discovered your technique to our 24-day-long Linux command-line toys introduction calendar. If that is your first go to to the collection, you could be asking your self what a command-line toy even is. It might be a recreation or any easy diversion that helps you might have enjoyable on the terminal.

Some of you should have seen numerous alternatives from our calendar earlier than, however we hope there’s no less than one new factor for everybody.

There are some ways to hearken to music on the command line; when you’ve acquired media saved domestically, cmus is a superb possibility, however there are plenty of others as effectively.

Lots of occasions once I’m on the terminal, although, I might actually reasonably simply zone out and never pay shut consideration to selecting every tune, and let another person do the work. While I’ve acquired loads of playlists that work for simply such a objective, after some time, although go stale, and I will change over to an web radio station.

Today’s toy, MPlayer, is a flexible multimedia participant that can assist nearly any media format you throw at it. If MPlayer is just not already put in, you possibly can most likely discover it packaged on your distribution. On Fedora, I discovered it in RPM Fusion (bear in mind that this isn’t an “official” repository for Fedora, so train warning):

$ sudo dnf set up mplayer

MPlayer has a slew of command-line choices to set relying in your state of affairs. I wished to hearken to the native school radio station right here in Raleigh (88.1 WKNC, they’re fairly good!), and so after grabbing the streaming URL from their web site, all that took to get my radio up and working, no GUI or internet participant wanted, was:

$ mplayer -nocache -afm ffmpeg http://wknc.sma.ncsu.edu:8000/wknchd1.mp3

MPlayer is open supply below the GPLv3, and you could find out extra concerning the challenge and obtain supply code from the challenge’s website.

As I discussed in yesterday’s article, I am attempting to make use of a screenshot of every toy because the lead picture for every article, however as we moved into the world of audio, I needed to fudge it a bit. So right now’s picture was created from a public area icon of a radio tower utilizing img2txt, which is supplied by the libcaca bundle.

Do you might have a favourite command-line toy that you just we must always have included? Our calendar is mainly set for the rest of the collection, however we would nonetheless like to function some cool command-line toys within the new yr. Let me know within the feedback beneath, and I will test it out. And let me know what you considered right now’s amusement.

Be positive to take a look at yesterday’s toy, Let you Linux terminal speak its mind, and are available again tomorrow for one more!

Exit mobile version