Esempio n. 1
0
        private void spv_SpeakCompleted(object sender, System.Speech.Synthesis.SpeakCompletedEventArgs e)
        {
            audioComplete = true;
            string outsmile = smilTxt;

            outsmile = outsmile.Replace("[etime/]", last_time);
            smilTxt  = outsmile;
        }
 void ReaderSpeakCompleted(object sender, System.Speech.Synthesis.SpeakCompletedEventArgs e)
 {
     try
     {
         buttonPlay.Enabled = true;
         (sender as SpeechSynthesizer).SpeakCompleted -= ReaderSpeakCompleted;
         setStop();
     }
     catch (Exception ex)
     {
         MessageBox.Show(Massage(ex), Globals.ERR, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Esempio n. 3
0
 void Reader_SpeakCompleted(object sender, System.Speech.Synthesis.SpeakCompletedEventArgs e)
 {
     try
     {
         cmdSave.Enabled = true;
         setStopPauseEnabled();
         Reader.SpeakCompleted -= Reader_SpeakCompleted;
         Reader.Dispose();
     }
     catch (ObjectDisposedException)
     {
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, ERR, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
 void task_SpeakCompleted(object sender, System.Speech.Synthesis.SpeakCompletedEventArgs e)
 {
     _isSpeaking = false;
     ((SpeechSynthesizer)sender).Dispose();
 }
Esempio n. 5
0
 private void ss_SpeakCompleted(object sender, System.Speech.Synthesis.SpeakCompletedEventArgs e)
 {
     bSpeaking         = false;
     tSSLblDetect.Text = "SpeakCompleted:" + DateTime.Now.ToLongTimeString() + "." + DateTime.Now.Millisecond.ToString();
 }