#[repr(C)]pub struct ISpSREngine2 {
pub lpVtbl: *const ISpSREngine2Vtbl,
}
Fields§
§lpVtbl: *const ISpSREngine2Vtbl
Implementations§
Source§impl ISpSREngine2
impl ISpSREngine2
pub unsafe fn PrivateCallImmediate( &self, pvEngineContext: *mut c_void, pInCallFrame: *const c_void, ulInCallFrameSize: ULONG, ppvCoMemResponse: *mut *mut c_void, pulResponseSize: *mut ULONG, ) -> HRESULT
pub unsafe fn SetAdaptationData2( &self, pvEngineContext: *mut c_void, pAdaptationData: *const WCHAR, cch: ULONG, pTopicName: LPCWSTR, eSettings: SPADAPTATIONSETTINGS, eRelevance: SPADAPTATIONRELEVANCE, ) -> HRESULT
pub unsafe fn SetGrammarPrefix( &self, pvEngineGrammar: *mut c_void, pszPrefix: LPCWSTR, fIsPrefixRequired: BOOL, ) -> HRESULT
pub unsafe fn SetRulePriority( &self, hRule: SPRULEHANDLE, pvClientRuleContext: *mut c_void, nRulePriority: c_int, ) -> HRESULT
pub unsafe fn EmulateRecognition( &self, pPhrase: *mut ISpPhrase, dwCompareFlags: DWORD, ) -> HRESULT
pub unsafe fn SetSLMWeight( &self, pvEngineGrammar: *mut c_void, flWeight: c_float, ) -> HRESULT
pub unsafe fn SetRuleWeight( &self, hRule: SPRULEHANDLE, pvClientRuleContext: *mut c_void, flWeight: c_float, ) -> HRESULT
pub unsafe fn SetTrainingState( &self, fDoingTraining: BOOL, fAdaptFromTrainingData: BOOL, ) -> HRESULT
pub unsafe fn ResetAcousticModelAdaptation(&self) -> HRESULT
pub unsafe fn OnLoadCFG( &self, pvEngineGrammar: *mut c_void, pvGrammarData: *const SPBINARYGRAMMAR, ulGrammarID: ULONG, ) -> HRESULT
pub unsafe fn OnUnloadCFG( &self, pvEngineGrammar: *mut c_void, ulGrammarID: ULONG, ) -> HRESULT
Methods from Deref<Target = ISpSREngine>§
pub unsafe fn SetSite(&self, pSite: *mut ISpSREngineSite) -> HRESULT
pub unsafe fn GetInputAudioFormat( &self, pguidSourceFormatId: *const GUID, pSourceWaveFormatEx: *const WAVEFORMATEX, pguidDesiredFormatId: *mut GUID, ppCoMemDesiredWaveFormatEx: *mut WAVEFORMATEX, ) -> HRESULT
pub unsafe fn RecognizeStream( &self, rguidFmtId: REFGUID, pWaveFormatEx: *const WAVEFORMATEX, hRequestSync: HANDLE, hDataAvailable: HANDLE, hExit: HANDLE, fNewAudioStream: BOOL, fRealTimeAudio: BOOL, pAudioObjectToken: *mut ISpObjectToken, ) -> HRESULT
pub unsafe fn SetRecoProfile(&self, pProfile: *mut ISpObjectToken) -> HRESULT
pub unsafe fn OnCreateGrammar( &self, pvEngineRecoContext: *mut c_void, hSAPIGrammar: SPGRAMMARHANDLE, ppvEngineGrammarContext: *mut *mut c_void, ) -> HRESULT
pub unsafe fn OnDeleteGrammar(&self, pvEngineGrammar: *mut c_void) -> HRESULT
pub unsafe fn LoadProprietaryGrammar( &self, pvEngineGrammar: *mut c_void, rguidParam: REFGUID, pszStringParam: LPCWSTR, pvDataParam: *const c_void, ulDataSize: ULONG, Options: SPLOADOPTIONS, ) -> HRESULT
pub unsafe fn UnloadProprietaryGrammar( &self, pvEngineGrammar: *mut c_void, ) -> HRESULT
pub unsafe fn SetProprietaryRuleState( &self, pvEngineGrammar: *mut c_void, pszName: LPCWSTR, pReserved: *mut c_void, NewState: SPRULESTATE, pcRulesChanged: *mut ULONG, ) -> HRESULT
pub unsafe fn SetProprietaryRuleIdState( &self, pvEngineGrammar: *mut c_void, dwRuleId: DWORD, NewState: SPRULESTATE, ) -> HRESULT
pub unsafe fn LoadSLM( &self, pvEngineGrammar: *mut c_void, pszTopicName: LPCWSTR, ) -> HRESULT
pub unsafe fn UnloadSLM(&self, pvEngineGrammar: *mut c_void) -> HRESULT
pub unsafe fn SetSLMState( &self, pvEngineGrammar: *mut c_void, NewState: SPRULESTATE, ) -> HRESULT
pub unsafe fn SetWordSequenceData( &self, pvEngineGrammar: *mut c_void, pText: *const WCHAR, cchText: ULONG, pInfo: *const SPTEXTSELECTIONINFO, ) -> HRESULT
pub unsafe fn SetTextSelection( &self, pvEngineGrammar: *mut c_void, pInfo: *const SPTEXTSELECTIONINFO, ) -> HRESULT
pub unsafe fn IsPronounceable( &self, pvEngineGrammar: *mut c_void, pszWord: LPCWSTR, pWordPronounceable: *mut SPWORDPRONOUNCEABLE, ) -> HRESULT
pub unsafe fn OnCreateRecoContext( &self, hSAPIRecoContext: SPRECOCONTEXTHANDLE, ppvEngineContext: *mut *mut c_void, ) -> HRESULT
pub unsafe fn OnDeleteRecoContext( &self, pvEngineContext: *mut c_void, ) -> HRESULT
pub unsafe fn OnPrivateCall( &self, pvEngineContext: *mut c_void, pCallFrame: PVOID, ulCallFrameSize: ULONG, ) -> HRESULT
pub unsafe fn SetAdaptationData( &self, pvEngineContext: *mut c_void, pAdaptationData: *const WCHAR, cch: ULONG, ) -> HRESULT
pub unsafe fn SetPropertyNum( &self, eSrc: SPPROPSRC, pvSrcObj: *mut c_void, pName: *const WCHAR, lValue: LONG, ) -> HRESULT
pub unsafe fn GetPropertyNum( &self, eSrc: SPPROPSRC, pvSrcObj: *mut c_void, pName: *const WCHAR, lValue: *mut LONG, ) -> HRESULT
pub unsafe fn SetPropertyString( &self, eSrc: SPPROPSRC, pvSrcObj: *mut c_void, pName: LPCWSTR, pValue: LPCWSTR, ) -> HRESULT
pub unsafe fn GetPropertyString( &self, eSrc: SPPROPSRC, pvSrcObj: *mut c_void, pName: LPCWSTR, ppCoMemValue: *mut LPWSTR, ) -> HRESULT
pub unsafe fn SetGrammarState( &self, pvEngineGrammar: *mut c_void, eGrammarState: SPGRAMMARSTATE, ) -> HRESULT
pub unsafe fn WordNotify( &self, Action: SPCFGNOTIFY, cWords: ULONG, pWords: *const SPWORDENTRY, ) -> HRESULT
pub unsafe fn RuleNotify( &self, Action: SPCFGNOTIFY, cRules: ULONG, pRules: *const SPRULEENTRY, ) -> HRESULT
pub unsafe fn PrivateCallEx( &self, pvEngineContext: *mut c_void, pInCallFrame: *const c_void, ulInCallFrameSize: ULONG, ppvCoMemResponse: *mut *mut c_void, pulResponseSize: *mut ULONG, ) -> HRESULT
pub unsafe fn SetContextState( &self, pvEngineContext: *mut c_void, eContextState: SPCONTEXTSTATE, ) -> HRESULT
Trait Implementations§
Source§impl Deref for ISpSREngine2
impl Deref for ISpSREngine2
Source§type Target = ISpSREngine
type Target = ISpSREngine
The resulting type after dereferencing.
Source§fn deref(&self) -> &ISpSREngine
fn deref(&self) -> &ISpSREngine
Dereferences the value.
Auto Trait Implementations§
impl Freeze for ISpSREngine2
impl RefUnwindSafe for ISpSREngine2
impl !Send for ISpSREngine2
impl !Sync for ISpSREngine2
impl Unpin for ISpSREngine2
impl UnwindSafe for ISpSREngine2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more