From: Romaric P. <ro...@sa...> - 2012-01-30 16:29:52
|
Hi David, This is the error I get when I launch the LS process with 'channels=1' into the 'input.external' "Starting liquidsoap channels: roma.liq Invalid value at line 2, char 88: Incompatible number of channels, please use a conversion operator.." The command is: my_src = audio_to_stereo(input.external(id="voice", restart=false, buffer=0.0, channels=1, samplerate=44100,"sox /tmp/audio.wav -c 1 -r 44100 -t raw -")) Regards Romaric -----Message d'origine----- De : David Baelde [mailto:dav...@gm...] Envoyé : jeudi 26 janvier 2012 21:02 À : Romaric Petion Cc : Romain Beauxis; sav...@li... Objet : Re: [Savonet-users] output.udp and input.udp On Thu, Jan 26, 2012 at 5:21 PM, Romaric Petion <ro...@sa...> wrote: > I have an issue with input.udp that only takes 'string' as input > format and not 'format'. The string is a MIME type. The MIME types are used in the same way as with HTTP inputs. In your case, audio/wav should do. The reason why it doesn't expect a format is that formats contain information only relevant for encoding, not decoding. (When you use an MP3 decoder, you don't need to tell it that MP3 is going to be mono 96kpbs.) > And also I tried input.external and it seems to not support the 'channels=1'?? Looking at the type, it should accept this option, at least at the language level. Are you getting a runtime error? are you sure that your application produces mono PCM? Hope this helps, -- David |