private void OnRejectedInstruction(String instructionPhrase, CompiledSpeechPhrase lastPhrase, Command command) { notify.ShowBalloonTip(3000, "KinectStick - Instrucción descartada", "'" + instructionPhrase + "'", ToolTipIcon.Error); System.Media.SystemSounds.Exclamation.Play(); }
private void OnRecognizedInstruction(String instructionPhrase, CompiledSpeechPhrase lastPhrase, Command command) { notify.ShowBalloonTip(3000, "KinectStick - Instrucción reconocida", "'" + instructionPhrase + "'", ToolTipIcon.Info); System.Media.SystemSounds.Beep.Play(); }
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); }
public PreCompiledProfile(PreCompiledInstruction[] instructions, CompiledSpeechPhrase[] speechLibrary) { this.instructions = instructions; this.speechLibrary = speechLibrary; }
public CompiledProfile(CompiledSpeechPhrase[] phraseLibrary, InstructionsTree[] instructionsTreeLibrary) { this.phraseLibrary = phraseLibrary; this.instructionsTreeLibrary = instructionsTreeLibrary; }