protected virtual void onRecognized(SpeechEventArg msg) { EventHandler <SpeechEventArg> handler = Recognized; if (handler != null) { handler(this, msg); } }
private void _sm_Recognized(object sender, SpeechEventArg e) { result.Text = e.Text; confidence.Text = e.Confidence + ""; if (e.Final) { result.FontWeight = FontWeights.Bold; } else { result.FontWeight = FontWeights.Normal; } }
private void _sm_Recognized(object sender, SpeechEventArg e) { if (serverThreadRunning == false) { _pipeServer = new NamedPipeServerStream(comChannel); _listenTts(); } result.Text = e.Text; confidence.Text = e.Confidence + ""; if (e.Final) { result.FontWeight = FontWeights.Bold; } else { result.FontWeight = FontWeights.Normal; } }