windows::Win32::Media::Speech

Trait ISpSREngine2_Impl

pub trait ISpSREngine2_Impl: ISpSREngine_Impl {
    // Required methods
    fn PrivateCallImmediate(
        &self,
        pvenginecontext: *const c_void,
        pincallframe: *const c_void,
        ulincallframesize: u32,
        ppvcomemresponse: *mut *mut c_void,
        pulresponsesize: *mut u32,
    ) -> Result<()>;
    fn SetAdaptationData2(
        &self,
        pvenginecontext: *const c_void,
        padaptationdata: &PCWSTR,
        cch: u32,
        ptopicname: &PCWSTR,
        esettings: SPADAPTATIONSETTINGS,
        erelevance: SPADAPTATIONRELEVANCE,
    ) -> Result<()>;
    fn SetGrammarPrefix(
        &self,
        pvenginegrammar: *const c_void,
        pszprefix: &PCWSTR,
        fisprefixrequired: BOOL,
    ) -> Result<()>;
    fn SetRulePriority(
        &self,
        hrule: SPRULEHANDLE,
        pvclientrulecontext: *const c_void,
        nrulepriority: i32,
    ) -> Result<()>;
    fn EmulateRecognition(
        &self,
        pphrase: Ref<'_, ISpPhrase>,
        dwcompareflags: u32,
    ) -> Result<()>;
    fn SetSLMWeight(
        &self,
        pvenginegrammar: *const c_void,
        flweight: f32,
    ) -> Result<()>;
    fn SetRuleWeight(
        &self,
        hrule: SPRULEHANDLE,
        pvclientrulecontext: *const c_void,
        flweight: f32,
    ) -> Result<()>;
    fn SetTrainingState(
        &self,
        fdoingtraining: BOOL,
        fadaptfromtrainingdata: BOOL,
    ) -> Result<()>;
    fn ResetAcousticModelAdaptation(&self) -> Result<()>;
    fn OnLoadCFG(
        &self,
        pvenginegrammar: *const c_void,
        pgrammardata: *const SPBINARYGRAMMAR,
        ulgrammarid: u32,
    ) -> Result<()>;
    fn OnUnloadCFG(
        &self,
        pvenginegrammar: *const c_void,
        ulgrammarid: u32,
    ) -> Result<()>;
}

Required Methods§

fn PrivateCallImmediate( &self, pvenginecontext: *const c_void, pincallframe: *const c_void, ulincallframesize: u32, ppvcomemresponse: *mut *mut c_void, pulresponsesize: *mut u32, ) -> Result<()>

fn SetAdaptationData2( &self, pvenginecontext: *const c_void, padaptationdata: &PCWSTR, cch: u32, ptopicname: &PCWSTR, esettings: SPADAPTATIONSETTINGS, erelevance: SPADAPTATIONRELEVANCE, ) -> Result<()>

fn SetGrammarPrefix( &self, pvenginegrammar: *const c_void, pszprefix: &PCWSTR, fisprefixrequired: BOOL, ) -> Result<()>

fn SetRulePriority( &self, hrule: SPRULEHANDLE, pvclientrulecontext: *const c_void, nrulepriority: i32, ) -> Result<()>

fn EmulateRecognition( &self, pphrase: Ref<'_, ISpPhrase>, dwcompareflags: u32, ) -> Result<()>

fn SetSLMWeight( &self, pvenginegrammar: *const c_void, flweight: f32, ) -> Result<()>

fn SetRuleWeight( &self, hrule: SPRULEHANDLE, pvclientrulecontext: *const c_void, flweight: f32, ) -> Result<()>

fn SetTrainingState( &self, fdoingtraining: BOOL, fadaptfromtrainingdata: BOOL, ) -> Result<()>

fn ResetAcousticModelAdaptation(&self) -> Result<()>

fn OnLoadCFG( &self, pvenginegrammar: *const c_void, pgrammardata: *const SPBINARYGRAMMAR, ulgrammarid: u32, ) -> Result<()>

fn OnUnloadCFG( &self, pvenginegrammar: *const c_void, ulgrammarid: u32, ) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§