Play any radio around the globe right from the terminal
Project description
Features
- Supports more than 40K stations !! :radio:
- Saves last station information
- Favorite stations (Aliasing) :heart:
- Selection menu for favorite stations
- Supports user-added stations :wrench:
- Looks minimal and user-friendly
- Runs on Raspberry-Pi
- Finds nearby stations
- Discovers stations by genre
- Discovers stations by language
- I'm feeling lucky ! Play Random stations
- Record audio from live radio on demand :zap:
See my progress here
External Dependency
It needs FFmpeg to be installed on your system in order to play the audio
on Ubuntu based system >= 20.04 Run
sudo apt update
sudo apt install ffmpeg
For other systems including windows see the above link
Installing FFmpeg
FFmpeg is required for this program to work correctly. Install FFmpeg by following these steps :-
- On Linux - https://www.tecmint.com/install-ffmpeg-in-linux/
- On Windows - https://www.wikihow.com/Install-FFmpeg-on-Windows
Install
Just run: pip3 install --upgrade radio-active
I encourage you to install with pipx: pipx install radio-active
Run
Run with radioactive --station [STATION_NAME]
or as simply radio -U [UUID]
:zap:
Tips
- Use a modern terminal emulator, otherwise the UI might break! (gets too ugly sometimes)
- On Windows, instead of default Command Prompt, use the new Windows Terminal or web-based emulators like hyper,Cmdr,Terminus etc. for better UI
- Let the app run for at least 5 seconds (not a serious issue though, for better performance)
Demo
Options
Argument | Note | Description | Default |
---|---|---|---|
--station , -S |
Required (Optional from second run) | Station name | None |
--uuid , -U |
Optional | ID of the station | None |
--log-level , -L |
Optional | Log level of the program | Info |
--add-station , -A |
Optional | Add an entry to fav list | False |
--show-favorite-list ,-W |
Optional | Show fav list | False |
--add-to-favorite ,-F |
Optional | Add current station to fav list | False |
--flush |
Optional | Remove all the entries from fav list | False |
--discover-by-country ,-D |
Optional | Discover stations by country code | False |
--discover-by-state |
Optional | Discover stations by country state | False |
--discover-by-tag |
Optional | Discover stations by tags/genre | False |
--discover-by-language |
optional | Discover stations by | False |
--limit |
Optional | Limit the # of results in the Discover table | 100 |
--volume |
Optional | Change the volume passed into ffplay | 80 |
--kill |
Optional | Kill background radios. | False |
--station
,-S
: Expects a station name to be played (if not provided it will try to get the last played station). Example: "pehla nasha" , pehla_nasha, bbc_radio
--uuid
,-U
: When station names are too long or confusing (or multiple results for the same name) use the station's uuid to play . --uuid gets the greater priority than --station. Example: 96444e20-0601-11e8-ae97-52543be04c81
--log-level
,-L
: don't need to specify unless you are developing it.info
,warning
,error
,debug
-F
: Add current station to your favorite list. Example:-F my_fav_1
-A
: Add any stations to your list. You can add stations that are not currently available on our API. When adding a new station enter a name and direct URL to the audio stream.
Changes
see CHANGELOG
Community
Share you favorite list with our community 🌐 ➡️ Here
Your favorite list
.radio-active-alias
is under your home directory as a hidden file :)
Extra
If you ever face a situation where radio-active quits but the audio (ffplay) runs in the background. Kill the process ID (PID) of ffplay. Run ps -al
get the PID of ffplay and kill [PID]
. I know you Know that :)
Support
Visit my contribution page for more payment options.
Acknowledgements
Happy Listening
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Joe Smith ⚠️ 💻 🤔 |
salehjafarli 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file radio-active-2.6.0.tar.gz
.
File metadata
- Download URL: radio-active-2.6.0.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 853988be592124b1e26bdedc01fe40c92f1e6800d4255c2e331adf7c4bc5a47b |
|
MD5 | d0f5da8f68c49890a55fe05c0acbaf5c |
|
BLAKE2b-256 | ce2352fabc8c5c417d4b354613c94480854935f2f9c4697c5a987a9402595890 |
File details
Details for the file radio_active-2.6.0-py3-none-any.whl
.
File metadata
- Download URL: radio_active-2.6.0-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d5b82f0a2cfa06d03a718028dadd044c9e443b9ac06f30842651de8dfa9d5dc |
|
MD5 | 11dd3295916db7299f3111502dc34b01 |
|
BLAKE2b-256 | a89f65ecc3bb37c6f876a50149d7254bf3f85cb160bf9a99bc484f3716f6a2c4 |