Trait windows::Win32::Media::Speech::ISpRecoContext_Impl
pub trait ISpRecoContext_Impl: Sized + ISpEventSource_Impl {
Show 18 methods
// Required methods
fn GetRecognizer(&self) -> Result<ISpRecognizer>;
fn CreateGrammar(&self, ullgrammarid: u64) -> Result<ISpRecoGrammar>;
fn GetStatus(&self, pstatus: *mut SPRECOCONTEXTSTATUS) -> Result<()>;
fn GetMaxAlternates(&self, pcalternates: *mut u32) -> Result<()>;
fn SetMaxAlternates(&self, calternates: u32) -> Result<()>;
fn SetAudioOptions(
&self,
options: SPAUDIOOPTIONS,
paudioformatid: *const GUID,
pwaveformatex: *const WAVEFORMATEX,
) -> Result<()>;
fn GetAudioOptions(
&self,
poptions: *mut SPAUDIOOPTIONS,
paudioformatid: *mut GUID,
ppcomemwfex: *mut *mut WAVEFORMATEX,
) -> Result<()>;
fn DeserializeResult(
&self,
pserializedresult: *const SPSERIALIZEDRESULT,
) -> Result<ISpRecoResult>;
fn Bookmark(
&self,
options: SPBOOKMARKOPTIONS,
ullstreamposition: u64,
lparamevent: LPARAM,
) -> Result<()>;
fn SetAdaptationData(
&self,
padaptationdata: &PCWSTR,
cch: u32,
) -> Result<()>;
fn Pause(&self, dwreserved: u32) -> Result<()>;
fn Resume(&self, dwreserved: u32) -> Result<()>;
fn SetVoice(
&self,
pvoice: Option<&ISpVoice>,
fallowformatchanges: BOOL,
) -> Result<()>;
fn GetVoice(&self) -> Result<ISpVoice>;
fn SetVoicePurgeEvent(&self, ulleventinterest: u64) -> Result<()>;
fn GetVoicePurgeEvent(&self, pulleventinterest: *mut u64) -> Result<()>;
fn SetContextState(&self, econtextstate: SPCONTEXTSTATE) -> Result<()>;
fn GetContextState(&self, pecontextstate: *mut SPCONTEXTSTATE) -> Result<()>;
}
Required Methods§
fn GetRecognizer(&self) -> Result<ISpRecognizer>
fn CreateGrammar(&self, ullgrammarid: u64) -> Result<ISpRecoGrammar>
fn GetStatus(&self, pstatus: *mut SPRECOCONTEXTSTATUS) -> Result<()>
fn GetMaxAlternates(&self, pcalternates: *mut u32) -> Result<()>
fn SetMaxAlternates(&self, calternates: u32) -> Result<()>
fn SetAudioOptions( &self, options: SPAUDIOOPTIONS, paudioformatid: *const GUID, pwaveformatex: *const WAVEFORMATEX, ) -> Result<()>
fn GetAudioOptions( &self, poptions: *mut SPAUDIOOPTIONS, paudioformatid: *mut GUID, ppcomemwfex: *mut *mut WAVEFORMATEX, ) -> Result<()>
fn DeserializeResult( &self, pserializedresult: *const SPSERIALIZEDRESULT, ) -> Result<ISpRecoResult>
fn Bookmark( &self, options: SPBOOKMARKOPTIONS, ullstreamposition: u64, lparamevent: LPARAM, ) -> Result<()>
fn SetAdaptationData(&self, padaptationdata: &PCWSTR, cch: u32) -> Result<()>
fn Pause(&self, dwreserved: u32) -> Result<()>
fn Resume(&self, dwreserved: u32) -> Result<()>
fn SetVoice( &self, pvoice: Option<&ISpVoice>, fallowformatchanges: BOOL, ) -> Result<()>
fn GetVoice(&self) -> Result<ISpVoice>
fn SetVoicePurgeEvent(&self, ulleventinterest: u64) -> Result<()>
fn GetVoicePurgeEvent(&self, pulleventinterest: *mut u64) -> Result<()>
fn SetContextState(&self, econtextstate: SPCONTEXTSTATE) -> Result<()>
fn GetContextState(&self, pecontextstate: *mut SPCONTEXTSTATE) -> Result<()>
Object Safety§
This trait is not object safe.