private void SaveFile(object sender, MonotoneFileEventArgs eventArgs) { AudioFileWriter?.Dispose(); AudioFileWriter = null; MonotoneFileHandler.WriteFile(eventArgs.FilePath, monotone_RecordTranscribe1.GetEntryLines()); MonotoneFileHandler.DeleteTempDirectory(eventArgs.FilePath); temporaryDirectoryPath = string.Empty; }
private void CreateNewFile(object sender, MonotoneFileEventArgs eventArgs) { temporaryDirectoryPath = MonotoneFileHandler.CreateTempDirectory(eventArgs.FilePath); AudioFileWriter = new WaveFileWriter(temporaryDirectoryPath + "\\audio.wav", EventBasedAudio.WaveFormat); }