Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JasonWei512/code-radio-cli
π΅ A command line music radio client for https://coderadio.freecodecamp.org, written in Rust.
https://github.com/JasonWei512/code-radio-cli
cli code-radio command-line freecodecamp music music-player rust
Last synced: 3 months ago
JSON representation
π΅ A command line music radio client for https://coderadio.freecodecamp.org, written in Rust.
- Host: GitHub
- URL: https://github.com/JasonWei512/code-radio-cli
- Owner: JasonWei512
- License: mit
- Created: 2022-05-25T10:50:17.000Z (over 2 years ago)
- Default Branch: develop
- Last Pushed: 2024-01-29T23:09:45.000Z (11 months ago)
- Last Synced: 2024-08-17T09:35:30.142Z (4 months ago)
- Topics: cli, code-radio, command-line, freecodecamp, music, music-player, rust
- Language: Rust
- Homepage: https://crates.io/crates/code-radio-cli
- Size: 577 KB
- Stars: 348
- Watchers: 5
- Forks: 16
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Code Radio CLI
[![Crate](https://img.shields.io/crates/v/code-radio-cli.svg?color=orange)](https://crates.io/crates/code-radio-cli)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/JasonWei512/code-radio-cli)](https://github.com/JasonWei512/code-radio-cli/releases)π΅ 24/7 music designed for coding, now in your terminal!
A command line music radio client for https://coderadio.freecodecamp.org ([about](https://www.freecodecamp.org/news/code-radio-24-7/)), written in Rust.
![Screenshot](./.github/images/screenshot.jpg)
## Install
- Download prebuilt binary from [GitHub release page](https://github.com/JasonWei512/code-radio-cli/releases).
- πͺ On Windows, install with [WinGet](https://github.com/microsoft/winget-cli):
```
winget install code-radio-cli
```- π¦ Install with [Cargo](https://rustup.rs/):
```
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](https://github.com/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 / Ubuntu
- `alsa-lib-devel` on Fedora## Usage
```
code-radio [OPTIONS]OPTIONS:
-h, --help Print help information
-n, --no-logo Do not display logo
-s, --select-station Manually select a station
-v, --volume Volume, between 0 and 9 [default: 9]
-V, --version Print version information
```