Beispiel #1
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;
        }
Beispiel #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;
        }