Take a look at the answer “ Detecting Sound in WAV Files Using C # ”. I assume the input file is WAV. If not, specify the audio stream format or if you intend to directly receive input from the microphone. If you can measure the amount of silence in an audio stream and you know the duration of the audio stream, you can calculate the amount of conversation. The link in the answer is dead, but if you go to codeproject.com and search for "C # waveform", you will get hit on a number of projects that will show you how to interpret and manipulate wav files. Silence detection can be a bit subjective if there is background noise. You will need to select the minimum volume threshold for silence, where anything below this is considered silence.
Kevin junghans
source share