[Music Playlist / Scheduled Events] ──┐
├──► [Radio Controller Core] ──► [FFmpeg Encoder] ──► [Icecast 2] ──► [HTTPS 443]
[TeamTalk 5 Live Studio / Voice] ──┘ (Rust / Real-time Pacing) (OGG Vorbis / MP3) (Port 8000) (ProxyPass)
Overview
Radio Controller is a production-grade, 24/7 internet radio broadcast automation engine and live studio relay engineered in Rust (powered by the Tokio asynchronous runtime). Designed for maximum resilience, low latency, and zero-dropout audio delivery, it maintains an uninterrupted raw PCM audio stream to Icecast broadcasters — ensuring listeners never experience buffering stalls or socket resets during song transitions or live studio broadcasts.
With native C bindings to the official TeamTalk 5 SDK, broadcasters can connect their online voice rooms directly to the station, relay multi-microphone conferences and media files on the fly, and manage all radio playback remotely via secure chat commands.
Core Features
- Zero-Dropout Continuous Streaming: Unbroken audio pipeline directly connected to FFmpeg and Icecast 2. Eliminates listener socket drops during track switches, disk read latencies, or live studio toggles.
- Bidirectional Smooth Crossfading: Configurable soft fade-out and fade-in transitions between playlist songs, as well as when entering (
ttliveon) and leaving (ttliveoff) live studio mode. - Real-Time Clock Pacing: Strict wall-clock audio packet throttling guarantees exactly 1.00x playback speed, preventing buffer underruns or burst flooding.
- Native TeamTalk 5 Studio Relay: Direct C-DLL bridge to TeamTalk 5. Captures studio voice and shared media files with synchronized metadata broadcasted to web listeners.
- Strict Admin-Only Security: Restricts bot control commands exclusively to TeamTalk administrators (
USERTYPE_ADMIN) and designated operator usernames, preventing unauthorized tampering. - Preemptive Scheduled Events: Automatically pauses music to play scheduled bulletins, announcements, or ads at specified times, then seamlessly resumes the playlist.
- Embedded Local Database: Powered by SQLite (
radio-controller.db) for channel persistence and history tracking with zero external database dependencies. - Extreme Resource Efficiency: Runs comfortably on entry-level cloud servers with under 2% CPU usage and a minimal 15–20 MB memory footprint.
Architecture & Audio Flow
Radio Controller connects music playlists, scheduled event files, and TeamTalk studio feeds into a single unified PCM audio pipeline, encoded by FFmpeg and distributed via Icecast 2 and SSL reverse proxy:
Download Release Package
The official distribution bundle includes precompiled 64-bit Linux binaries, the TeamTalk 5 shared library, automated installer scripts, systemd service units, and configuration templates:
Package: Radio_Controller_v1.0_Linux_x64.zip
Target OS: Ubuntu 22.04 LTS / 24.04 LTS (x86_64) & Debian 11/12
SHA-256 Checksum: 46029037bc2cb578c3782c9226f29218860d51c38c6da267682997c9d499588f (checksum file)
Quick Deployment Guide
Deploy to any clean Ubuntu server in 5 simple steps:
# 1. Extract package and install dependencies
sudo bash scripts/install-ubuntu-deps.sh
# 2. Configure Icecast server
sudo cp config/icecast.example.xml /etc/icecast2/icecast.xml
sudo systemctl restart icecast2
# 3. Create your station configuration
cp config/radio-controller.example.toml radio-controller.toml
# Edit stream URL, passwords, and TeamTalk settings
# 4. Add music tracks into playlist/music/
# 5. Enable the 24/7 background systemd service
sudo cp systemd/Radio.service /etc/systemd/system/Radio.service
sudo systemctl daemon-reload
sudo systemctl enable --now Radio.service
Project Information
Lead Developer: Seyyed Abbass Hosseini
Team & Copyright: RESONOVA — Interactive Software Development
Telegram: @resonova_dev