You can use StreamTuner2 with [Streamripper (https://apps.ubuntu.com/cat/applications/streamripper/) (Install streamripper) to record Online Radio Streams.
To Grap Streamripper in terminal just do this:
sudo apt-get install streamripper
Streamripper and streamtuner2 are Linux applications that work in tandem, allowing you to listen and record streaming radio.
Streamtuner2 is a basic application used primarily for playing internet radio from any number of sources including Xiph, basic.ch, punkcast.com, Google Stations, Live365, and SHOUTcast. It will use
streamripper to record and an external player to play a stream.
Streamtuner2 can add favourite stations to bookmarks. New stations can be added by selecting some station, right-click, Edit, 'New', and, after setting a new name and URL, OK and then Reload button.
Clicking the play button after selecting a station will start the radio station in external player. The same happens when double-clicking a station in a list.
Clicking the record button after selecting a station will run
streamripper in a terminal window and by default each track will be saved separately in the Home folder.
To set custom folder for recordings in Streamtuner2, under 'Edit-Properties-Recording application', edit the line under 'Application' by adding
-d path_to_folder at the end (like
x-terminal-emulator -e streamripper %srv -d /home/user/Audio/Recordings). There can be added many other custom commands that
streamripper allows - see below on more options.
Search function doesn’t work as it should.
To save in a custom folder by using just streamripper in a terminal (CLI, without Streamtuner), open the terminal in that folder.
Multiple instances of streamripper (that is recording of multiple tracks) can be run at the same time in separate terminal windows.
On more options in Streamripper there are Ubuntu Guide, Reference,Tutorial, Ubuntu Man Page, My Ubuntu Blogspot.
Streamripper sits stealthily in the terminal recording and parsing all of the music piped through your system into MP3s. Leaving Streamripper running all day will rack you up a healthy dose of your favorite tunes. By itself
streamripper is able to record streams with the command:
$ streamripper <URL>
What is particularly nice about the combination of Streamripper and streamtuner2 is that once you choose a station to record, you can exit streamtuner2 leaving only a tiny, non-obtrusive terminal window for Streamripper.