Skip to content

dadilll/Radio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Radio Streaming Program

This Go program allows you to stream radio stations using the radio-browser.info API. It fetches a list of popular stations, lets you select one to listen to, and provides control commands to pause, resume, stop, or change the station.

Features

  • Fetches a list of the top 50 most clicked radio stations.
  • Plays selected radio station streams.
  • Supports pausing, resuming, stopping, and changing the stream.

Installation

  1. Clone the repository:
git clone https://github.com/dadilll/radio.git
cd radio-streaming
  1. Install the required Go packages:
go get github.com/gordonklaus/portaudio
  1. Build the program:
go build -o radio

Usage

  1. Run the program:
./radio
  1. Follow the prompts to select a radio station to listen to.

  2. Use the following commands to control the stream:

  • pause: Pauses the stream.
  • resume: Resumes the paused stream.
  • stop: Stops the stream.
  • change: Stops the current stream and lets you select a new station.

Dependencies

  • PortAudio
  • FFmpeg
  • Go standard library packages: bufio, encoding/binary, encoding/json, fmt, io, net/http, os, os/exec, sync

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages