26 lines
760 B
Text
Executable file
26 lines
760 B
Text
Executable file
#!/usr/bin/liquidsoap
|
|
|
|
settings.log.stdout.set(true);
|
|
settings.log.file.set(false);
|
|
settings.log.level.set(3);
|
|
|
|
# settings.server.telnet.set(true);
|
|
# settings.server.telnet.bind_addr.set("127.0.0.1");
|
|
# settings.server.telnet.port.set(6666);
|
|
|
|
rorinput = input.alsa(device="default", bufferize=true);
|
|
#rorinput = input.pulseaudio( );
|
|
|
|
# rorinput = insert_metadata(id="trx",rorinput);
|
|
rorinput = rewrite_metadata([("artist","Radio OndaRossa")],rorinput);
|
|
|
|
# ESCPOST
|
|
output.file(
|
|
id="rorrec",
|
|
reopen_when={0m},
|
|
%mp3(bitrate=80, samplerate=44100, stereo=true,stereo_mode="joint_stereo"),
|
|
"/rec/ror/%Y-%m/%d/rec-%Y-%m-%d-%H-%M-%S.mp3",
|
|
# %vorbis(quality=0.3, samplerate=44100, channels=2),
|
|
# "/rec/ror/%Y-%m/%d/rec-%Y-%m-%d-%H-%M-%S.ogg",
|
|
rorinput
|
|
);
|