Ejemplo n.º 1
0
        public void Start()
        {
            //Console.Title = "Jarvis";

            _interactor.SendOutput("Hi, I am Jarvis.");
            //_voiceController.Speak("Hi, I am Jarvis.");

            _voiceController.StartListening();

            commandLine = _interactor.RecieveInput();

            while (commandLine != "bye")
            {
                //_voiceController.StopListening();
                try
                {
                    var commandSegments = _interactor.ParseInput(commandLine);
                    CommandProcessor.Instance.ProcessCommand(commandSegments.Item1, commandSegments.Item2, _interactor);
                }
                catch (Exception ex)
                {
                    _interactor.SendOutput(ex.ToString());
                }
                finally
                {
                    //_voiceController.StartListening();
                    commandLine = _interactor.RecieveInput();
                }
            }

            _interactor.SendOutput("See ya ;)");
        }
Ejemplo n.º 2
0
 public void OnPointerDown(PointerEventData eventData)
 {
     effect.SetActive(true);
     scale = 1;
     speechToText.StartListening();
 }