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

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