/// <summary>
 /// Event handler called when a command is rejected.
 /// </summary>
 /// <param name="sender">Sender</param>
 /// <param name="eventArgs">Arguments</param>
 public void CommandRejected(object sender, CommandDetectedEventArgs eventArgs)
 {
     if (this.Mode != EffectMode.None)
     {
         this.PlaySound(SoundEffects.CommandRejected);
     }
 }
Esempio n. 2
0
        void recognizer_CommandAccepted(object sender, CommandDetectedEventArgs e)
        {
            Trace.WriteLine("Accepted command: " + e.Phrase + " " + e.Confidence);

            RecognizedCommand = e.Phrase;

            if (Logic.Configuration.Mode == Articulate.ListenMode.PushToArm)
            {
                Enabled = false;
            }
        }
Esempio n. 3
0
        void recognizer_CommandRejected(object sender, CommandDetectedEventArgs e)
        {
            Trace.WriteLine("Rejected command: " + e.Phrase + " " + e.Confidence);

            RecognizedCommand = "state_recognition_failed";

            // TODO: Decide whether or not Push To Arm should keep trying until it gets a match
            if (Logic.Configuration.Mode == Articulate.ListenMode.PushToArm)
            {
                Enabled = false;
            }
        }
Esempio n. 4
0
        void recognizer_CommandRejected(object sender, CommandDetectedEventArgs e)
        {
            Trace.WriteLine("Rejected command: " + e.Phrase + " " + e.Confidence);

            Dispatcher.Invoke(() => LastCommand.Content = "state_recognition_failed".Translate("What was that?"));

            // TODO: Decide whether or not Push To Arm should keep trying until it gets a match
            if (Logic.Configuration.Mode == Articulate.ListenMode.PushToArm)
            {
                Enabled = false;
            }
        }
        void recognizer_CommandRejected(object sender, CommandDetectedEventArgs e)
        {
            Trace.WriteLine("Rejected command: " + e.Phrase + " " + e.Confidence);

            RecognizedCommand = "state_recognition_failed";

            // TODO: Decide whether or not Push To Arm should keep trying until it gets a match
            if (Logic.Configuration.Mode == Articulate.ListenMode.PushToArm) Enabled = false;
        }
        void recognizer_CommandAccepted(object sender, CommandDetectedEventArgs e)
        {
            Trace.WriteLine("Accepted command: " + e.Phrase + " " + e.Confidence);

            RecognizedCommand = e.Phrase;

            if (Logic.Configuration.Mode == Articulate.ListenMode.PushToArm) Enabled = false;
        }
Esempio n. 7
0
        void recognizer_CommandRejected(object sender, CommandDetectedEventArgs e)
        {
            Trace.WriteLine("Rejected command: " + e.Phrase + " " + e.Confidence);

            Dispatcher.Invoke(() => LastCommand.Content = "state_recognition_failed".Translate("What was that?"));

            // TODO: Decide whether or not Push To Arm should keep trying until it gets a match
            if (Logic.Configuration.Mode == Articulate.ListenMode.PushToArm) Enabled = false;
        }
 /// <summary>
 /// Event handler called when a command is rejected.
 /// </summary>
 /// <param name="sender">Sender</param>
 /// <param name="eventArgs">Arguments</param>
 public void CommandRejected(object sender, CommandDetectedEventArgs eventArgs)
 {
     if (this.Mode != EffectMode.None)
     {
         this.PlaySound(SoundEffects.CommandRejected);
     }
 }