Exemplo 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();
 }
Exemplo 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();
 }
Exemplo n.º 3
0
 private void OnRecognizedPhrase(CompiledSpeechPhrase lastPhrase)
 {
     notify.ShowBalloonTip(3000, "KinectStick - Frase reconocida", "[" + lastPhrase.phrase + "]", ToolTipIcon.Warning);
 }
Exemplo n.º 4
0
 private void LaunchRejectEvent(CompiledSpeechPhrase phrase)
 {
     if (RejectedInstruction != null)
         RejectedInstruction(GenerateInstructionPhrase(),phrase,null);
 }
Exemplo n.º 5
0
 private void LaunchRecognizedEvent(CompiledSpeechPhrase phrase)
 {
     if (RecognizedPhrase != null)
         RecognizedPhrase(phrase);
 }
Exemplo n.º 6
0
 private void LaunchAcceptEvent(CompiledSpeechPhrase phrase, Command command)
 {
     if (RecognizedInstruction != null)
         RecognizedInstruction(GenerateInstructionPhrase(),phrase,command);
 }
Exemplo n.º 7
0
 public PreCompiledProfile(PreCompiledInstruction[] instructions, CompiledSpeechPhrase[] speechLibrary)
 {
     this.instructions = instructions;
     this.speechLibrary = speechLibrary;
 }
Exemplo n.º 8
0
 public CompiledProfile(CompiledSpeechPhrase[] phraseLibrary, InstructionsTree[] instructionsTreeLibrary)
 {
     this.phraseLibrary = phraseLibrary;
     this.instructionsTreeLibrary = instructionsTreeLibrary;
 }