Esempio n. 1
0
        protected override void Execute_SpeechRecognitionDefinition(SpeechRecognitionCommandContext context)
        {
            var recognizer = context.SpeechRecognizer;
            var phrase = context.ReadParameter(PhraseParameterAttribute.Key).Value;

            recognizer.UnregisterPhrase(phrase);
        }
Esempio n. 2
0
        protected override void Execute_SpeechRecognitionDefinition(SpeechRecognitionCommandContext context)
        {
            var recognizer = context.SpeechRecognizer;
            var phrase     = context.ReadParameter(PhraseParameterAttribute.Key).Value;

            recognizer.UnregisterPhrase(phrase);
        }
Esempio n. 3
0
        protected override void Execute_SpeechRecognitionDefinition(SpeechRecognitionCommandContext context)
        {
            var phrase     = context.ReadParameter(PhraseParameterAttribute.Key).Value;
            var recognizer = context.SpeechRecognizer;
            var command    = context.OriginalCommand.InnerCommands;

            recognizer.RegisterPhrase(phrase, command);
        }
Esempio n. 4
0
        protected override void Execute_SpeechRecognitionDefinition(SpeechRecognitionCommandContext context)
        {
            var phrase = context.ReadParameter(PhraseParameterAttribute.Key).Value;
            var recognizer = context.SpeechRecognizer;
            var command = context.OriginalCommand.InnerCommands;

            recognizer.RegisterPhrase(phrase, command);
        }
Esempio n. 5
0
        protected override void Execute_SpeechRecognitionDefinition(SpeechRecognitionCommandContext context)
        {
            var recognizer = context.SpeechRecognizer;
            var interpreter = context.Interpreter;
            var phrase = context.ReadParameter(PhraseParameterAttribute.Key).Value;
            var commands = recognizer.GetCommand(phrase);

            interpreter.WriteEvent(commands.OriginalText);
        }
Esempio n. 6
0
        protected override void Execute_SpeechRecognitionDefinition(SpeechRecognitionCommandContext context)
        {
            var recognizer  = context.SpeechRecognizer;
            var interpreter = context.Interpreter;
            var phrase      = context.ReadParameter(PhraseParameterAttribute.Key).Value;
            var commands    = recognizer.GetCommand(phrase);

            interpreter.WriteEvent(commands.OriginalText);
        }