You're right, that sample is misleading as it's written. To have a separate file for each time someone speaks, your best bet is to keep the Recorder running continually, and check the TimeStamp property on the event args every time your VoiceActivityChanged event handler is invoked as well as the IsVoice property. You can then keep track of every time the voice activity started or stopped, and trim the single WMA file produced by the Recorder into separate files using those times.
Hope this helps, and let me know if you have follow-up questions.
Michael
|