Search code examples
c#windows-phone-7encodingmp3windows-phone-7.1

Compressed audio encoding


In my Windows Phone 7 (Mango) project, I'm capturing microphone output and streaming it to a service using sockets. The mic output format is PCM - which is of course quite huge. I'd like to encode/compress it before streaming it out. I've not been successful finding an audio (e.g. mp3) encoding library written in C# that will compile/run on WP7. Are there any out there?

The other off-the-shelf option I've investigated, using an LZ-based library like SharpCompress, only gives me about 15% savings so that isn't really much help...


Solution

  • After some more searching I have found NSpeex on codeplex. The silverlight version seems to work in a WP7 project so far (even though the project system warned it may not). I haven't fully tested yet, but so far this looks promising...