PyRadio, radio player snap package for Ubuntu terminal

about Pyradium

In the next article we are going to take a look at PyRadio. This is a internet radio player based Races. It is open source and runs on the console of our Ubuntu system. The software is implemented in Python and uses Mplayer or VLC for media playback.

This Internet radio player used in the terminal can be installed in different ways. In the next article I'm going to test it on Ubuntu 16.04, but it should run fine on most of the UNIX-based operating systems and accept snap packages.

Pyradio requirements

First of all, we will have to make sure MPlayer or VLC is installed and is in the PATH of our operating system. To verify this, we will have to go to our favorite terminal (Ctrl + Alt + T) and make sure that these programs start when we write "mplayer" or "vlc" in it. If this happens, we will have the programs added to the PATH. If not, you should add them before continuing.

Another necessary requirement is have installed in our operating system Python 2.6/3.2 or higher to be able to run this program on our computer without problems.

Install Pyradio

Pyradio 1.3.2 installation via snap package

As always, the Ubuntu community has put to work so that this fantastic program is not left behind. The PyRadio snap package, which will greatly facilitate the installation of the tool in Ubuntu 16.04 and higher. The installation of this snap package can be done either through the Ubuntu software option:

Pyradio software center installation

or by running the following command In the terminal (Ctrl + Alt + T):

download snap pyradio terminal

sudo snap install pyradio

Since the snap app contains most of the required libraries and dependencies, the installation file is quite large. This means that if our connection does not have a "decent" speed, it will take a while to download.

Install Pyradio 0.5.2 via pip

In case we want to try an earlier version of this program, we will be able to install it from the terminal making use of PIP. Obviously we will have to have this installed Python package manager. Once we make sure that we have the package manager installed, we will only have to write in the terminal (Ctrl + Alt + T):

sudo pip install pyradio

Run Pyradio

Once the installation is finished, in any way, we can start radio player, executing in the terminal (Ctrl + Alt + T) the following command:

Pyradio working

pyradio --play

Pyradio keyboard shortcuts and help

Like this show lacks GUI, we will need to move through it with the keyboard. Next we are going to see the keyboard shortcuts that we will have at our disposal:

  • Up / Down / j / k / PgUp / PgDown → With these keys we can change the selection of the radio station.
  • Intro → Playback of the selected radio station will start.
  • - / + → Increase and decrease the volume.
  • m → Mute. Turn off the sound of the radio station.
  • r → Select and play a random station.
  • g → Jump to the first station.
  • Virtual → Stop / Start playback of the selected station.
  • esc /q → Exit the program.

In case we need helps In order to carry out the action that interests us with this program, we can always resort to the help that it offers us. We just have to open a terminal (Ctrl + Alt + T) and write in it:

Pyradio Help

pyradio -h

Uninstall Pyradio

Uninstall the Pyradio snap package

Removing a snap package from our operating system is always very easy. We just have to open a terminal (Ctrl + Alt + T) and write in it:

sudo snap remove pyradio

Uninstall Pyradio installed with PIP

To remove this version of Pyradio that we installed through the Python package manager, we will only have to open a terminal and write to it:

sudo pip uninstall pyradio

If someone needs or wants to know more about this program, they can consult la author's website. We can also consult the source code of the project in its page of GitHub.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.