コード例 #1
0
 private void BtnStart_Click(object sender, EventArgs e)
 {
     txtTranscript.Text  = string.Empty;
     BtnSaveStop.Enabled = true;
     BtnStart.Hide();
     BtnSaveStop.Show();
     StartCapture(_FileName);
     lblDisplayTime.Visible = true;
 }
コード例 #2
0
        private void BtnSaveStop_Click(object sender, EventArgs e)
        {
            lblWait.Visible = true;
            Application.DoEvents();
            BtnSaveStop.Hide();
            StopCapture();
            objStopWatch.Reset();
            lblDisplayTime.Visible = false;
            // Process.Start(_FileName);
            AudioToText audioToText = new AudioToText();
            string      message     = "Processing is Done!";

            txtTranscript.Text = audioToText.GetTextBy16BitPCMAudio(_FileName, cmbLanguageCode.SelectedValue.ToString(), ref message);
            lblWait.Visible    = false;
            BtnStart.Show();
            MessageBox.Show(message);
        }