Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capture the stream from microphone in WAV formatting

I'm migrating an metro style application from windows phone 7.5 to windows 8. My application was used to capture the microphone input stream .

I've found MediaCapture class in the win 8 api for metro style apps, but I see no possibililty to get the microphone input stream in wav encoding.

Switching to another encoding format would significally affect the codebase.

Is there any possibility to capture the microphone stream in wav encoding?

like image 460
danyloid Avatar asked Apr 19 '12 12:04

danyloid


1 Answers

Sure it is. I recommend you to use Naudio class, and under sources you can easily find how to capture record. Here is the code EXAMPLE

Enjoy!

like image 55
user123_456 Avatar answered Oct 17 '22 21:10

user123_456