liquidsoap files

master
Michael Murtaugh 4 years ago
parent f5e63f5276
commit 9d91426871

@ -5,3 +5,8 @@ README.html: README.md
--standalone \
--css style.css \
$< -o $@
liquidsoap/brownnoise.mp3:
sox -c2 -r44100 -n -t wav - synth 0.2 brownnoise vol 1.0 > liquidsoap/brownnoise.wav
ffmpeg -i liquidsoap/brownnoise.wav liquidsoap/brownoise.mp3
rm liquidsoap/brownnoise.wav

@ -0,0 +1,60 @@
#!/usr/bin/liquidsoap
# TAKEN FROM https://www.oshyn.com/Blogs/2010/June/Audio-and-Video-Streaming-with-Liquidsoap-and-Icecast
# Set the files and playlists,
default = single("/root/default.mp3")
jingles = playlist("/root/jingles")
tech = playlist.safe("/root/featured/tech")
minimal = playlist("/root/featured/minimal")
prog_trance = playlist("/root/featured/prog trance")
tech_trance = playlist("/root/featured/tech trance")
electro_house = playlist("/root/featured/electro house")
prog_house = playlist("/root/featured/prog house")
psy = playlist("/root/featured/psy")
chillout = playlist("/root/featured/chillout")
sets = playlist("/root/featured/sets")
liveset = mksafe(input.http("http://66.7.216.22:8968"))
liveset = rewrite_metadata([("artist", "Santiago Saa"),("title", "120 minutest Live")], liveset)
# Play files and playlists according to the radio program,
# and the default file if anything goes wrong.
radio = fallback(
[ switch( track_sensitive=false,
[
({ (1w or 2w or 3w) and 5h-8h }, prog_house),
({ (4w or 5w) and 5h05-8h }, prog_house),
({ (1w or 2w or 3w or 4w or 5w) and 8h-11h }, prog_trance),
({ (1w or 2w or 3w or 4w or 5w) and 11h-13h }, electro_house),
({ (1w or 2w or 3w or 4w or 5w) and 13h-15h }, prog_house),
({ (1w or 2w or 3w or 4w or 5w) and 15h-17h }, tech),
({ (1w or 2w or 3w or 4w or 5w) and 17h-20h }, sets),
({ (1w or 2w or 3w or 4w or 5w) and 20h-22h }, tech),
({ (1w or 2w or 3w or 4w or 5w) and 22h-0h }, prog_house),
({ 2w and 0h-5h }, psy),
({ 3w and 0h-5h }, psy),
({ 4w and 0h-3h }, psy),
({ 4w and 3h-5h05 }, liveset),
({ 5w and 0h-3h }, psy),
({ 5w and 3h-5h05 }, liveset),
({ 6w and 0h-3h }, psy),
({ 6w and 3h-5h05 }, liveset),
({ 6w and 5h05-8h }, psy),
({ 6w and 8h-11h }, tech_trance),
({ 6w and 11h-18h }, prog_trance),
({ 6w and 18h-21h }, tech_trance),
({ 6w and 21h-0h }, psy),
({ 7w and 0h-2h }, tech_trance),
({ 7w and 2h-3h }, psy),
({ 7w and 3h-5h }, psy),
({ 7w and 5h-7h }, tech),
({ 7w and 7h-23h59 }, minimal),
({ 1w and 0h-5h }, minimal),
({ true }, tech),
]),
tech])
# Add the normal jingles
radio = random(weights=[1,5],[ jingles, radio ])
# Output the full stream in OGG and MP3
output.icecast.mp3(
host="localhost",port=80, user”radio”,password="hackmeradio",
genre="Electronica",url="http://localhost",
description="Radio",mount="radio",
name="(((( Evolution Bass Radio ))))", bitrate=128,radio)

@ -0,0 +1,3 @@
speech0001.mp3
speech0002.mp3
speech0003.mp3

@ -0,0 +1,8 @@
#!/usr/bin/liquidsoap -v
set("log.file.path","/tmp/<script>.log")
set("log.stdout",true)
recipe = playlist("playlist.pls")
# dj = say_metadata(playlist("playlist.pls"))
out(dj)

@ -0,0 +1,19 @@
#!/usr/bin/liquidsoap -v
set("log.file.path","/tmp/<script>.log")
set("log.stdout",true)
%include "passwords.liq"
# Add the ability to relay live shows
liveorstatic =
fallback(track_sensitive=false,
[input.http("http://echo.lurk.org:999/prototyping_live.ogg"),
single("brownnoise.mp3")])
output.icecast(%vorbis,
host = ICECAST_SERVER_HOST, port = ICECAST_SERVER_PORT,
password = ICECAST_SERVER_PASSWORD, mount = "prototyping.ogg",
mksafe(liveorstatic))
# out(liveorstatic)

@ -0,0 +1,6 @@
i=1
for word in one two three
do
espeak "$word" -w `printf speech%04d.wav $i`
i=$((i+1))
done

@ -0,0 +1,2 @@
ffmpeg -i $1 -filter_complex "[0:a][0:a]amerge=inputs=2[a]" -map "[a]" $2

@ -0,0 +1,3 @@
brownnoise.mp3
noise.mp3
pinknoise.mp3

@ -0,0 +1,10 @@
#!/usr/bin/liquidsoap -v
set("log.file.path","/tmp/<script>.log")
set("log.stdout",true)
counting = playlist("counting.pls")
noise = playlist("noise.pls")
# dj = say_metadata(playlist("playlist.pls"))
mix = add([counting, noise])
out(mix)

@ -0,0 +1,14 @@
#!/usr/bin/liquidsoap -v
# You need to include these two lines in any standalone
# liquidsoap script (otherwise you get permissions errors)
set("log.file.path","/tmp/<script>.log")
set("log.stdout",true)
%include "passwords.liq"
output.icecast(%vorbis,
host = ICECAST_SERVER_HOST, port = ICECAST_SERVER_PORT,
password = ICECAST_SERVER_PASSWORD, mount = "prototyping_live.ogg",
mksafe(playlist("prototyping.pls")))

@ -0,0 +1,4 @@
brown.mp3
speech0001.mp3
speech0002.mp3
speech0003.mp3

@ -0,0 +1,15 @@
# play a playlist file
# to an icecase server
# liquidsoap \
# 'output.icecast(%vorbis,
# host = "your.server.net", port = PORT,
# password = "PASSWORD", mount = "RADIO.MP3",
# mksafe(playlist("playlist.m3u")))
%include "passwords.liq"
output.icecast(%vorbis,
host = ICECAST_SERVER_HOST, port = ICECAST_SERVER_PORT,
password = ICECAST_SERVER_PASSWORD, mount = "radioimplicancies.mp3",
mksafe(playlist("playlist.m3u")))

@ -0,0 +1,3 @@
speech0001.mp3
speech0002.mp3
speech0003.mp3

@ -0,0 +1,14 @@
#!/usr/bin/liquidsoap -v
set("log.file.path","/tmp/<script>.log")
set("log.stdout",true)
out(
rotate([
square(220.0,amplitude=0.02,duration=1.0),
square(260.0,amplitude=0.02,duration=1.0),
square(300.0,amplitude=0.02,duration=1.0),
square(360.0,amplitude=0.02,duration=1.0),
sine(440.0,amplitude=0.02,duration=1.0)
])
)
Loading…
Cancel
Save