Hi,
I'm supposing that you have ALSA support. Also, you should be aware
that ALSA is not fully stable, in particular ALSA may not accept
liquidsoap settings with some hardware.. we're working towards
something more portable.
Your current script is:
output = output.icecast(mount="foo.ogg")
add([output,input.alsa()])
output(playlist.safe("lis.pls"))
The first line creates a new function output which is the partial
application of output.icecast. It still has a couple of optional
parameters, and a mandatory parameter of type source: the thing to be
broadcasted.
Your second line adds the source input.alsa() with output. But output
is a function, not a source.
Finally, the third line calls output() on a playlist source, which is
valid (well-typed) and results in the broadcast of that playlist on
"foo.ogg".
Let's build a working script now. You should add two sources: the
playlist, and the microphone. Then output that sum:
output = output.icecast(mount="foo.ogg")
source = add([playlist.safe("lis.pls"),input.alsa()])
output(source)
It's certainly a bit tricky to get used to these type errors you
probably got, but when one arises, it really means that you're
building non-sense.
Keep on trying!
--
David