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

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