Pure C # open source PCM to MP3 Converter?

Microsoft Silverlight 4 is in beta. It supports PCM audio output. It would be crazy to transfer PCM over the Internet (for example, in the P2A diagram of webApp), so we need Pure C #, an open-source PCM to MP3 converter. There is no unmanaged code, nothing comes out of the .net sandbox.

So does anyone know such an open source Pure C # PCM to Mp3 Converter?

What I need:

  • Open source libs for coding.
  • Tutorials and blog articles on how to do this, about, etc.

By the way: why Pure C #? - since Silverlight 4 does not support unmanaged or simply not C # DLLs.

+6
c # open-source pcm mp3
source share
4 answers

mp3 is not a free codec. Try to find Ogg instead, you have a better chance of finding open source there.

In addition, codec translations are rarely found in managed code, because they require high efficiency, since this is a task with an intensive processor, so the transition to the native DLL will be much faster. (for different levels of the party). If you find what you are looking for, this will be a slow and probably copyright infringement fraunhofer.

Two seconds at Google shows a C # example for using the built-in mp3 dll encoder: http://www.codeproject.com/KB/audio-video/MP3Compressor.aspx

Three seconds in google did not give any ogg codes. In managed code, these things are rare.

-one
source share

Are you sure you need a clean C # implementation? You can simply wrap lame.dll and use this instead. If you capture live sound and then transfer it as mp3, this link may help.

Another thing, I think MP3 is not your only option for streaming. Silverlight must support WMA and must have a clean C # way to do this.

Here is a link to a training project that transmits mp3 streams.

0
source share

It does not exist yet, and it will be slower than unmanaged code, but you can try converting java ogg encoder http://downloads.xiph.org/releases/vorbis-java for skype -audio like solation

0
source share

If you want to encode high-quality sound at a musical level in Silverlight, I think you might be out of luck until someone ported the Ogg Vorbis encoder. But if you just need to make a voice, there is a reasonable Speex codec port for pure (Silverlight) C # called CSpeex, posted here . This is the (mostly automated) port of the C # port of the Java 2003 version of the Speex codec, but I earned it. And, of course, this is only part of the solution for streaming audio to the server (and down), but it is probably the hardest part.

No joy for any C # echo cancellation, however. Until someone is brave and puts the Speex DSP library in C # :-).

0
source share

All Articles