Esempio 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();
            }
        }
Esempio 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;
        }
Esempio 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;
        }
Esempio n. 4
0
 public Core()
 {
     Configuration = Settings.Load();
     Keybinder = new KeyMonitor(Configuration);
     Recognizer = new VoiceRecognizer();
 }
Esempio n. 5
0
 public Core()
 {
     Configuration = Settings.Load();
     Keybinder     = new KeyMonitor(Configuration);
     Recognizer    = new VoiceRecognizer();
 }