NSpeex in NAudio demo app

May 13, 2011 at 9:07 PM

hi Christoph,

Just letting you know that I have added an example of using NSpeex with NAudio into the NAudioDemo, which now has a little voip sample that lets you talk over network in a variety of codecs. I had to make my own build of NSpeex for .NET 3.5 (removed the code contracts & had to change some Debug.WriteLine statements). Getting rid of the contracts did cause me some pain because it meant it didn't throw an exception telling me I was incorrectly passing in a non-multiple of the encoder FrameSize into the Encode function. So I may create .NET 3.5 versions of the code contracts functions to allow NSpeex to fully compile for .NET 3.5. Anyway, it works really nicely so thanks for your great work on this project and good luck with your plans for NSpeex v1.2. I've only done narrowband so far, but I plan to add the others soon.

Code is here http://naudio.codeplex.com/SourceControl/changeset/view/73348#1830803