Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set("tag.encodings",["UTF-8","ISO-8859-1"])
- # Configure Logging
- set("log.file",false)
- set("log.level",3)
- set("log.stdout",true)
- set("log.syslog",false)
- set("log.syslog.facility","DAEMON")
- set("log.syslog.program","liquidsoap-#{STREAMID}")
- # create a socket to send commands to this instance of liquidsoap
- set("server.socket",true)
- set("server.socket.path","/tmp/sockets/#{STREAMID}.sock")
- set("server.socket.permissions",511)
- # This creates a 1 second silence period generated programmatically (no disk reads)
- # silence = amplify(0.1, noise(duration=1.))
- silence = blank(duration=1.)
- # This pulls the alpha tag out of the wav file
- def append_title(m) =
- [("title",">> Scanning <<")]
- end
- silence = map_metadata(append_title, silence)
- recorder_queue = request.queue()
- recorder_queue = server.insert_metadata(id="S4",recorder_queue)
- # If there is anything in the queue, play it. If not, play the silence defined above repeatedly:
- stream = fallback(track_sensitive=false, [recorder_queue, silence])
- title = '$(if $(title),"$(title)","...Scanning...")'
- stream = rewrite_metadata([("title", title)], stream)
- output.icecast( %mp3(stereo=false, bitrate=96, samplerate=22050, internal_quality=9, msg="testing"),
- host=HOST, port=PORT, password=PASSWORD, genre="Scanner",
- description="Scanner audio", mount=MOUNT, name=NAME, user="source", stream)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement