Hello!
I tried ti modify an example from the documentation but it did not work.
It's not so imortant to get it working, but I want to know why it
doesn't work.
Regards,
Per Gunnarsson
Script:
set("log.file.path","/tmp/complete_case.log")
set("log.level", 4)
dssi.register("/usr/lib/dssi/karplong.so")
microphone = input.pulseaudio()
s = audio_to_stereo(microphone)
# Create a function to insert metadata
ms = insert_metadata(s)
# The function to insert metadata
imeta = fst(ms)
# The source with inserted metadata
s = snd(ms)
# Handler for OSC events (gets pairs of strings)
def on_meta(m) =
# Extract the artist
artist = fst(m)
# Extract the value
value = snd(m)
# Extract the title
title = fst(m)
# Extract the halue
halue = snd(m)
# A debug message
print("Insert metadata #{artist} = #{value}, #{title} = #{halue}")
# Insert the metadata
imeta([(artist,halue),(title,halue)])
end
# Call the above handler when we have a pair of strings on /metadata
osc.on_string_pair("/home/per/webradio/metadata",on_meta)
output.icecast(%vorbis(quality=1.0 , samplerate=48000, channels=2),
fallible=true,
host="mustafejen",
port=8443,
password="top_secret",
mount="test.ogg",
description="Stream from Ersboda",
genre="Alternative, eclectic",
url="https://mustafejen.se/~per",
protocol="https",
name="mustafejen vorbis",
public=true,
s)
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users