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