Example #1
0
 public void run(jarvis ai)
 {
     try
     {
         System.Diagnostics.Process.Start("C:\\Program Files (x86)\\Diablo III\\Diablo III Launcher.exe");
     }
     catch (Exception _Exception)
     {
         Console.Out.WriteLine("Error Encountered: {0}", _Exception);
     }
 }
Example #2
0
 public void getApp(jarvis ai)
 {
     String text = "";
     while (!endCommand(text))
     {
         try
         {
             RecognitionResult result = recognizer.Recognize();
             Console.Out.WriteLine("Command Heard: " + result.Text);
             text = result.Text;
             this.parseResult(text);
         }
         catch (NullReferenceException e)
         {
         }
     }
 }
Example #3
0
        static void Main(string[] args)
        {
            // Booting up Jarvis
            jarvis speech_detector = new jarvis();

            // Updating the lexicon and rebooting Jarvis to update his lexicon
            UpdateTrie.run(speech_detector.lexicon);
            speech_detector = new jarvis();

            // Updating the graph and rebooting Jarvis to update his graph
            //UpdateGraph.run(speech_detector.responseGraph);
            //speech_detector = new jarvis();

            // Main loop
            while (true)
            {
                speech_detector.recognition();
            }
            // speech_detector.recognizer.UnloadAllGrammars();
        }