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:[email protected]] 
Envoyé : jeudi 26 janvier 2012 21:02
À : Romaric Petion
Cc : Romain Beauxis; [email protected]
Objet : Re: [Savonet-users] output.udp and input.udp

On Thu, Jan 26, 2012 at 5:21 PM, Romaric Petion <[email protected]> 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


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to