This project has moved. For the latest updates, please go here.

c# Recording Audio, Automatically stop when user basically stops talking

Sep 16, 2013 at 11:20 PM
Any thoughts on how to do this with naudio only?
So the program listens when when the user stops for a second or the audio goes quiet stop and start a new wave file.
Coordinator
Sep 17, 2013 at 3:06 PM
The WaveIn device should be always "recording". Every buffer, you examine to decide if it contains sound or not. You'll need to write this algorithm yourself. Usually you are looking for samples that go above a certain threshold.
If there is sound, open a WaveFileWriter and start writing into it, until you decide a buffer is silent and you should stop.