当前位置: 首页>>代码示例>>C#>>正文


C# SpeechRecognitionRejectedEventArgs类代码示例

本文整理汇总了C#中SpeechRecognitionRejectedEventArgs的典型用法代码示例。如果您正苦于以下问题:C# SpeechRecognitionRejectedEventArgs类的具体用法?C# SpeechRecognitionRejectedEventArgs怎么用?C# SpeechRecognitionRejectedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SpeechRecognitionRejectedEventArgs类属于命名空间,在下文中一共展示了SpeechRecognitionRejectedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: _speechRecognition_SpeechRecognitionRejected

 private void _speechRecognition_SpeechRecognitionRejected(object sender, SpeechRecognitionRejectedEventArgs e)
 {
     _speechRecognition.RecognizeAsyncStop();
     Thread.Sleep(30);
     _speech.Speak("请再说一遍");
     _speechRecognition.RecognizeAsync(RecognizeMode.Multiple);
 }
开发者ID:shoy160,项目名称:Shoy.Common,代码行数:7,代码来源:ReaderHelper.cs

示例2: SpeechRejected

 /// <summary>
 /// Called when a speech is rejected.
 /// </summary>
 public override void SpeechRejected(object sender, SpeechRecognitionRejectedEventArgs e)
 {
     this.EarManager.StopRequestEar();
     PackageHost.WriteInfo("Jarvis n'a pas reconnu votre demande.");
     Voice.Speak("Je n'ai pas compris.", false);
     this.EarManager.StartJarvisEar();
 }
开发者ID:huclepi,项目名称:PCH-Recognition,代码行数:10,代码来源:RequestEar.cs

示例3: speechRecognizer_SpeechRecognitionRejected

        private void speechRecognizer_SpeechRecognitionRejected(object sender, SpeechRecognitionRejectedEventArgs e)
        {
            if (null == e.Result)
            {
                Console.Out.WriteLine("Null result in rejection event");
                return;
            }

            Console.Out.WriteLine("Rejection Event Values:");
            Console.Out.WriteLine(ObserverGrammar.DumpSemantics(e.Result.Semantics));
        }
开发者ID:spc-ofp,项目名称:ObserverLengthSampler,代码行数:11,代码来源:Program.cs

示例4: SpeechRejected

 /// <summary>
 /// Handler for rejected speech events.
 /// </summary>
 /// <param name="sender">object sending the event.</param>
 /// <param name="e">event arguments.</param>
 private void SpeechRejected(object sender, SpeechRecognitionRejectedEventArgs e)
 {
 }
开发者ID:RITInsightLab,项目名称:space-adventure,代码行数:8,代码来源:MainWindow.xaml+(Darrel+Pollard's+conflicted+copy+2012-06-15).cs

示例5: sr_SpeechRecognitionRejected

 void sr_SpeechRecognitionRejected(object sender, SpeechRecognitionRejectedEventArgs e)
 {
     Console.WriteLine(e.Result.Text + "(" + e.Result.Confidence + ")");
 }
开发者ID:Bold-Taco,项目名称:SILO,代码行数:4,代码来源:VoiceHandler.cs

示例6: SreSpeechRecognitionRejected

 void SreSpeechRecognitionRejected(object sender, SpeechRecognitionRejectedEventArgs e)
 {
     recTextBox.BeginInvoke(
         (MethodInvoker)delegate { recTextBox.Text = "- " + e.Result.Text + " (" + e.Result.Confidence + ")";  });
 }
开发者ID:Rai220,项目名称:SpeechCommands,代码行数:5,代码来源:Form1.cs

示例7: sre_SpeechRecognitionRejected

 void sre_SpeechRecognitionRejected(object sender, SpeechRecognitionRejectedEventArgs e)
 {
     labelSpeech.Content = "Speech rejected";
 }
开发者ID:TheIronMarx,项目名称:ARMS,代码行数:4,代码来源:MainWindow.xaml.cs

示例8: speechRejectedHandler

 /// \brief Handles Speech Rejection Events
 private void speechRejectedHandler(object sender, SpeechRecognitionRejectedEventArgs e)
 {
     Console.Write("\rCommand Rejected: \t{0}\t\tConfidence:\t{1}\n", e.Result.Text, e.Result.Confidence);
 }
开发者ID:KayoticSully,项目名称:SpeakEasy,代码行数:5,代码来源:Engine.cs

示例9: SreSpeechRecognitionRejected

 /// <summary>
 /// Sres the speech recognition rejected.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="SpeechRecognitionRejectedEventArgs" /> instance containing the event data.</param>
 private void SreSpeechRecognitionRejected(object sender, SpeechRecognitionRejectedEventArgs e)
 {
     Console.WriteLine("Ich habe nichts erkannt");
     if (e.Result != null)
     {
     }
 }
开发者ID:KinAudio,项目名称:Master,代码行数:12,代码来源:SpeechRecognizer.cs

示例10: SreSpeechRecognitionRejected

        static void SreSpeechRecognitionRejected(object sender, SpeechRecognitionRejectedEventArgs e)
        {
			Console.WriteLine("\nSpeech Rejected");
            if (e.Result != null)
                DumpRecordedAudio(e.Result.Audio);
        }
开发者ID:thoschmidt,项目名称:shoopdoup,代码行数:6,代码来源:Program.cs

示例11: SreSpeechRecognitionRejected

        private void SreSpeechRecognitionRejected(object sender, SpeechRecognitionRejectedEventArgs e)
        {
            var said = new SaidSomethingEventArgs { Verb = Verbs.None, Matched = "?" };

            if (this.SaidSomething != null)
            {
                this.SaidSomething(new object(), said);
            }

            Console.WriteLine("\nSpeech Rejected");
        }
开发者ID:pajumed,项目名称:cs160-Pomegranit,代码行数:11,代码来源:SpeechRecognizer.cs

示例12: SpeechEngineRejected

 private void SpeechEngineRejected(Object sender, SpeechRecognitionRejectedEventArgs args)
 {
     // We don't care.
 }
开发者ID:EveryUserNameIsTaken,项目名称:Null_and_Boid,代码行数:4,代码来源:DaVinciExhibit.cs

示例13: sre_SpeechRecognitionRejected

 void sre_SpeechRecognitionRejected(object sender, SpeechRecognitionRejectedEventArgs e)
 {
     var said = new SaidSomethingEventArgs();
     said.Verb = Verbs.None;
     said.Matched = "?";
     //Kinect SDK TODO: should make sure after Stop, that we don't get Speech event calls.
     if (SaidSomething != null)
     {
         SaidSomething(new object(), said);
     }
     Console.WriteLine("\nSpeech Rejected");
 }
开发者ID:thoschmidt,项目名称:shoopdoup,代码行数:12,代码来源:SpeechRecognizer.cs

示例14: SpeechRejected

 /// <summary>
 /// Handler for rejected speech events.
 /// </summary>
 /// <param name="sender">object sending the event.</param>
 /// <param name="e">event arguments.</param>
 private void SpeechRejected(object sender, SpeechRecognitionRejectedEventArgs e)
 {
     this.ClearRecognitionHighlights();
 }
开发者ID:StrathHACK16,项目名称:Team3,代码行数:9,代码来源:MainWindow.xaml.cs

示例15: speechRecognizer_SpeechRecognitionRejected

        private void speechRecognizer_SpeechRecognitionRejected(object sender, SpeechRecognitionRejectedEventArgs e)
        {
            if ((e == null) || (e.Result == null) || (e.Result.Confidence < 0.1) || (e.Result.Alternates == null) || (e.Result.Alternates.Count < 1))
                return;

            RecognizedSpeech recognizedSpeech = GenerateRecognizedSpeechObject(e.Result.Alternates);
            OnSpeechRecognitionRejected(recognizedSpeech);
            if((this.AutoSaveMode & AutoSaveMode.Rejected) == AutoSaveMode.Rejected)
                SaveRejected(e);
        }
开发者ID:BioRoboticsUNAM,项目名称:SP-REC,代码行数:10,代码来源:SpeechRecognizer53.cs


注:本文中的SpeechRecognitionRejectedEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。