Exemplo n.º 1
0
        protected virtual void onRecognized(SpeechEventArg msg)
        {
            EventHandler <SpeechEventArg> handler = Recognized;

            if (handler != null)
            {
                handler(this, msg);
            }
        }
Exemplo n.º 2
0
 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;
     }
 }
Exemplo n.º 3
0
        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;
            }
        }