Esempio n. 1
0
 private void OnRejectedInstruction(String instructionPhrase, CompiledSpeechPhrase lastPhrase, Command command)
 {
     notify.ShowBalloonTip(3000, "KinectStick - Instrucción descartada", "'" + instructionPhrase + "'", ToolTipIcon.Error);
     System.Media.SystemSounds.Exclamation.Play();
 }
Esempio n. 2
0
 private void OnRecognizedInstruction(String instructionPhrase, CompiledSpeechPhrase lastPhrase, Command command)
 {
     notify.ShowBalloonTip(3000, "KinectStick - Instrucción reconocida", "'" + instructionPhrase + "'", ToolTipIcon.Info);
     System.Media.SystemSounds.Beep.Play();
 }
Esempio n. 3
0
 private void OnRecognizedPhrase(CompiledSpeechPhrase lastPhrase)
 {
     notify.ShowBalloonTip(3000, "KinectStick - Frase reconocida", "[" + lastPhrase.phrase + "]", ToolTipIcon.Warning);
 }
 private void LaunchRejectEvent(CompiledSpeechPhrase phrase)
 {
     if (RejectedInstruction != null)
         RejectedInstruction(GenerateInstructionPhrase(),phrase,null);
 }
 private void LaunchRecognizedEvent(CompiledSpeechPhrase phrase)
 {
     if (RecognizedPhrase != null)
         RecognizedPhrase(phrase);
 }
 private void LaunchAcceptEvent(CompiledSpeechPhrase phrase, Command command)
 {
     if (RecognizedInstruction != null)
         RecognizedInstruction(GenerateInstructionPhrase(),phrase,command);
 }
Esempio n. 7
0
 public PreCompiledProfile(PreCompiledInstruction[] instructions, CompiledSpeechPhrase[] speechLibrary)
 {
     this.instructions = instructions;
     this.speechLibrary = speechLibrary;
 }
Esempio n. 8
0
 public CompiledProfile(CompiledSpeechPhrase[] phraseLibrary, InstructionsTree[] instructionsTreeLibrary)
 {
     this.phraseLibrary = phraseLibrary;
     this.instructionsTreeLibrary = instructionsTreeLibrary;
 }