This project has moved and is read-only. For the latest updates, please go here.

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

Sep 17, 2013 at 12:20 AM
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.
Sep 17, 2013 at 4: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.