private void sre_SpeechDetected(object sender, System.Speech.Recognition.SpeechDetectedEventArgs e) { if (!bSpeaking) { tSSLblDetect.Text = "SD:" + DateTime.Now.ToLongTimeString() + "." + DateTime.Now.Millisecond.ToString(); } }
private void SpeechDetectedProxy(object sender, SpeechDetectedEventArgs e) { EventHandler <SpeechDetectedEventArgs> speechDetectedHandler = SpeechDetected; if (speechDetectedHandler != null) { speechDetectedHandler(this, e); } }
private void SpeechDetectedProxy(object sender, SpeechDetectedEventArgs e) { this.SpeechDetected?.Invoke(this, e); }
private static void SreOnSpeechDetected(object sender, SSR.SpeechDetectedEventArgs e) { Console.WriteLine("Detected: {0}", e.AudioPosition); }
private void SpeechRecognitionEngine_SpeechDetected(object sender, System.Speech.Recognition.SpeechDetectedEventArgs e) { }