Beispiel #1
0
        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;
        }
Beispiel #2
0
        private void CreateNewFile(object sender, MonotoneFileEventArgs eventArgs)
        {
            temporaryDirectoryPath = MonotoneFileHandler.CreateTempDirectory(eventArgs.FilePath);

            AudioFileWriter = new WaveFileWriter(temporaryDirectoryPath + "\\audio.wav", EventBasedAudio.WaveFormat);
        }