Ejemplo n.º 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            recognizor = new VoiceRecognizer();

            // something happened with the setup of the VoiceRecognizer (no mic, etc.)
            if (!recognizor.IsSetup)
            {
                System.Windows.MessageBox.Show("There was a problem starting Articulate. Is there a valid default input device?");
                this.Close();
            }
        }
Ejemplo n.º 2
0
        private Core()
        {
            // Necessary to fix Core.Instance initialization loop when loading grammar
            _Instance = this;

            Configuration = Settings.Load();
            Keybinder = new KeyMonitor(Configuration);
            Recognizer = new VoiceRecognizer();
            SoundPlayer = new SoundEffectsPlayer(Configuration);

            Recognizer.CommandAccepted += SoundPlayer.CommandAccepted;
            Recognizer.CommandRejected += SoundPlayer.CommandRejected;
            Recognizer.StartedListening += SoundPlayer.StartedListening;
            Recognizer.StoppedListening += SoundPlayer.StoppedListening;
        }
Ejemplo n.º 3
0
        private Core()
        {
            // Necessary to fix Core.Instance initialization loop when loading grammar
            _Instance = this;

            Configuration = Settings.Load();
            Keybinder     = new KeyMonitor(Configuration);
            Recognizer    = new VoiceRecognizer();
            SoundPlayer   = new SoundEffectsPlayer(Configuration);

            Recognizer.CommandAccepted  += SoundPlayer.CommandAccepted;
            Recognizer.CommandRejected  += SoundPlayer.CommandRejected;
            Recognizer.StartedListening += SoundPlayer.StartedListening;
            Recognizer.StoppedListening += SoundPlayer.StoppedListening;
        }
Ejemplo n.º 4
0
 public Core()
 {
     Configuration = Settings.Load();
     Keybinder = new KeyMonitor(Configuration);
     Recognizer = new VoiceRecognizer();
 }
Ejemplo n.º 5
0
 public Core()
 {
     Configuration = Settings.Load();
     Keybinder     = new KeyMonitor(Configuration);
     Recognizer    = new VoiceRecognizer();
 }