14 releases (3 stable)
1.0.2 | Jan 3, 2023 |
---|---|
1.0.1 | Nov 26, 2022 |
0.1.10 | Nov 12, 2022 |
0.1.6 | Oct 15, 2022 |
0.1.4 | May 31, 2022 |
#711 in Command line utilities
46 downloads per month
260KB
691 lines
Code Radio CLI
🎵 24/7 music designed for coding, now in your terminal!
A command line music radio client for https://coderadio.freecodecamp.org (about), written in Rust.
Install
-
Download prebuilt binary from GitHub release page.
-
🪟 On Windows, install with WinGet:
winget install code-radio-cli
-
🦀 Install with Cargo:
cargo install code-radio-cli
After installation, run
code-radio
in command line to start. You may need to restart your shell first.
⚠ About building and running on Linux 🐧
This program uses rustaudio/cpal lib to play audio, which requires ALSA development files on Linux.
In order to build and run this program on Linux, you need to install:
libasound2-dev
on Debian / Ubuntualsa-lib-devel
on Fedora
Usage
code-radio [OPTIONS]
OPTIONS:
-h, --help Print help information
-l, --list-stations List all stations
-n, --no-logo Do not display logo
-s, --station <STATION> The ID of the station to play from
-v, --volume <VOLUME> Volume, between 0 and 9 [default: 9]
-V, --version Print version information
Dependencies
~13–50MB
~1M SLoC