An easy way to have a 24/7 audio stream of music.

Compare changes

Choose any two refs to compare.

+5 -4
.env.example
···
+
STREAM_NAME=Radio
+
STREAM_DESC=Our selection of music
+
STREAM_URL=https://google.com
+
STREAM_MOUNTPOINT=live
+
ICECAST_PORT=8000
ICECAST_SOURCE_PASSWORD=ASourcePassword
ICECAST_ADMIN_PASSWORD=AnAdminPassword
···
ICECAST_HOSTNAME=localhost
ICECAST_MAX_SOURCES=1
ICECAST_CHARSET=UTF-8
-
STREAM_NAME=Radio
-
STREAM_DESC=Our selection of music
-
STREAM_URL=https://google.com
-
STREAM_MOUNTPOINT=live
+1 -1
README.md
···
## Requirements
- docker
-
- docker-compose
+
- docker compose
- Some music
## Install
+1 -1
docker-compose.yml
···
liquidsoap:
container_name: autoradio-liquidsoap
-
image: docker.io/savonet/liquidsoap:v2.3.1
+
image: docker.io/savonet/liquidsoap:v2.4.0
restart: unless-stopped
command: ["/script.liq"]
depends_on:
+15 -5
script.liq
···
#!/usr/bin/liquidsoap
+
# This is the EU R128 standard
+
settings.lufs.track_gain_target := -23.
+
# Enable LUFS compute if missing from files
+
enable_lufs_track_gain_metadata()
+
+
# Enable the autocue metadata resolver
+
enable_autocue_metadata()
+
# Playlist
i_playlist = crossfade(
duration=3.0,
···
start_blank=true,
max_blank=1.0,
threshold=-45.0,
-
playlist(
-
mode="randomize",
-
reload=1,
-
reload_mode="rounds",
-
"/music"
+
normalize_track_gain(
+
playlist(
+
mode="randomize",
+
reload=1,
+
reload_mode="rounds",
+
"/music"
+
)
)
)
)