public void StartRecording() { FileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), String.Format("whisper-{0}.wav", Id)); SimpleAudio.StartRecording(FileName); _startedRecordingAt = DateTime.Now; }
public void StopRecording(Action finishedRecording) { SimpleAudio.StopRecording(delegate { Length = (int)(DateTime.Now - _startedRecordingAt).TotalMilliseconds; finishedRecording(); }); }
public void Play() { Console.WriteLine("Playing audio in whisper"); SimpleAudio.PlayFile(FileName); }