本文整理汇总了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);
}
示例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();
}
示例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));
}
示例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 + ")");
}
示例6: SreSpeechRecognitionRejected
void SreSpeechRecognitionRejected(object sender, SpeechRecognitionRejectedEventArgs e)
{
recTextBox.BeginInvoke(
(MethodInvoker)delegate { recTextBox.Text = "- " + e.Result.Text + " (" + e.Result.Confidence + ")"; });
}
示例7: sre_SpeechRecognitionRejected
void sre_SpeechRecognitionRejected(object sender, SpeechRecognitionRejectedEventArgs e)
{
labelSpeech.Content = "Speech rejected";
}
示例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);
}
示例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)
{
}
}
示例10: SreSpeechRecognitionRejected
static void SreSpeechRecognitionRejected(object sender, SpeechRecognitionRejectedEventArgs e)
{
Console.WriteLine("\nSpeech Rejected");
if (e.Result != null)
DumpRecordedAudio(e.Result.Audio);
}
示例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");
}
示例12: SpeechEngineRejected
private void SpeechEngineRejected(Object sender, SpeechRecognitionRejectedEventArgs args)
{
// We don't care.
}
示例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");
}
示例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();
}
示例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);
}