Example #1
0
 public void StartRecording()
 {
     FileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments),
                             String.Format("whisper-{0}.wav", Id));
     SimpleAudio.StartRecording(FileName);
     _startedRecordingAt = DateTime.Now;
 }
Example #2
0
        public void StopRecording(Action finishedRecording)
        {
            SimpleAudio.StopRecording(delegate {
                Length = (int)(DateTime.Now - _startedRecordingAt).TotalMilliseconds;

                finishedRecording();
            });
        }
Example #3
0
 public void Play()
 {
     Console.WriteLine("Playing audio in whisper");
     SimpleAudio.PlayFile(FileName);
 }