Le 25 janvier 2012 17:16, Romaric Petion <[email protected]> a écrit :
> Hi guys,

Hi Romaric!

> I would like to use : input.udp and output.udp to receive and send data to
> another software.

Ok, cool! You must know that this format may loose data, thus
introducing glitches in the received stream. (it was actually
intentionally coded like this for artistic purposes!).

> ‘input.udp’ to receive data with format: raw 16bit mono 32khz
>
> ‘output.udp’ to send data with format: raw 16bit mono 32khz
>
>
>
> Of course LS use 44,1khz samplerate and stereo
>
>
>
> How to setup the ‘format’ option into commands to make it running?

You need two things:
  - Convert the source to mono
  - Pass samplerate=32000 to %wav

Thus this should work:
  output.udp(%wav(samplerate=32000, mono), mean(source), ...)

For the input, you may have to convert from mono to stereo with two
equal channels:
  audio_to_stereo(input.udp(...))

I am not so sure about the input part though so let us know if you
have some trouble with it.

By the way, you can also use "samplesize" with the way encoder.

Romain

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to