2021-09-15 07:51:58 +02:00
|
|
|
#!/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"),
|
2021-09-20 22:51:48 +02:00
|
|
|
"/rec/%Y-%m/%d/rec-%Y-%m-%d-%H-%M-%S.mp3",
|
2021-09-15 07:51:58 +02:00
|
|
|
# %vorbis(quality=0.3, samplerate=44100, channels=2),
|
2021-09-20 22:51:48 +02:00
|
|
|
# "/rec/%Y-%m/%d/rec-%Y-%m-%d-%H-%M-%S.ogg",
|
2021-09-15 07:51:58 +02:00
|
|
|
rorinput
|
|
|
|
);
|