コード例 #1
0
ファイル: Core.cs プロジェクト: riscles101/articulate
        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;
        }
コード例 #2
0
ファイル: Core.cs プロジェクト: wismerheal/articulate
 public Core()
 {
     Configuration = Settings.Load();
     Keybinder     = new KeyMonitor(Configuration);
     Recognizer    = new VoiceRecognizer();
 }