2 writes to _sapiContext
System.Speech (2)
Recognition\RecognizerBase.cs (2)
452_sapiContext = _sapiRecognizer.CreateRecoContext(); 1359_sapiContext = null!;
10 references to _sapiContext
System.Speech (10)
Recognition\RecognizerBase.cs (10)
469_sapiContext.SetGrammarOptions(SPGRAMMAROPTIONS.SPGO_ALL); 474if (_sapiContext is ISpPhoneticAlphabetSelection alphabetSelection) 488_sapiContext.SetAudioOptions(SPAUDIOOPTIONS.SPAO_RETAIN_AUDIO, IntPtr.Zero, IntPtr.Zero); 507_sapiContext.SetInterest(_eventInterest, _eventInterest); 514_eventNotify = _sapiContext.CreateEventNotify(_asyncWorker, _supportsSapi53); 1345if (_sapiContext != null) 1347_sapiContext.DisposeEventNotify(_eventNotify); 1356if (_sapiContext != null) 1358_sapiContext.Dispose(); 1389get { if (_disposed) { throw new ObjectDisposedException("RecognizerBase"); } return _sapiContext; }