示例#1
0
        protected virtual void onRecognized(SpeechEventArg msg)
        {
            EventHandler <SpeechEventArg> handler = Recognized;

            if (handler != null)
            {
                handler(this, msg);
            }
        }
示例#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;
     }
 }
示例#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;
            }
        }