Example #1
0
//===========================================================================================================================================//
        private void SaveAudio_Click(object sender, EventArgs e)
        {
            //Save the signal in a wave file
            saveFileDialog1.ShowDialog(this);
            string name = saveFileDialog1.FileName;


            //Extract the Features for saving
            signal = AudioOperations.OpenAudioFile(name);
            Sequence S = AudioOperations.ExtractFeatures(signal);

            //Write the Sequence in file
            RWFile Write = new RWFile();

            Write.WriteInFile(S, UserName);

            MessageBox.Show("Voice Recorded Successfully");

            //Re-direct the user to the start up form
            StartUpForm.Show();

            //hide the current form
            this.Hide();
        }