Beispiel #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;
 }
Beispiel #2
0
        public void StopRecording(Action finishedRecording)
        {
            SimpleAudio.StopRecording(delegate {
                Length = (int)(DateTime.Now - _startedRecordingAt).TotalMilliseconds;

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