There are a few ways to listen to Internet radio in
StreamTuner2 is one that's able to tune to various online radios and are able to easily record them via its integration with
Online radio stream can be saved by installing both
Streamripper, and configure
StreamTuner2 to record online radio to use
Record Internet radio in Linux:
$ sudo apt update && sudo apt install --assume-yes streamripper streamtuner2 # Ubuntu and Debian
$ mkdir -p ~/streamripper
Savebutton to exit the configuration screen.
Make sure you have codec.
How to install extra media codec in Ubuntu
Streamripper_ripsdirectory in your previously configured target directory to see the list of recorded radio stream.
$ cd ~/streamripper/Streamripper_rips