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);
474
if (
_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);
1345
if (
_sapiContext
!= null)
1347
_sapiContext
.DisposeEventNotify(_eventNotify);
1356
if (
_sapiContext
!= null)
1358
_sapiContext
.Dispose();
1389
get { if (_disposed) { throw new ObjectDisposedException("RecognizerBase"); } return
_sapiContext
; }