public void Initialize() { lock (isInitializedSync) { if (IsInitialized) { return; } applicationName = Container.IsRegistered <String>(GlobalInstanceNames.ApplicationName) ? Container.Resolve <String>(GlobalInstanceNames.ApplicationName) : String.Empty; KinectSensor sensor = KinectExtensions.GetDefaultKinectSensor(); sensor.EnsureStart(); this.audioSource = sensor.GetKinectAudioSource(); this.speechRecognizer = this.GetKinectSpeechRecognizer(); IsInitialized = true; } }