Struct windows::Win32::Media::Speech::ISpeechRecoContext
pub struct ISpeechRecoContext(/* private fields */);
Implementations§
§impl ISpeechRecoContext
impl ISpeechRecoContext
pub unsafe fn Recognizer(&self) -> Result<ISpeechRecognizer>
pub unsafe fn AudioInputInterferenceStatus(&self) -> Result<SpeechInterference>
pub unsafe fn RequestedUIType(&self) -> Result<BSTR>
pub unsafe fn putref_Voice<P0>(&self, voice: P0) -> Result<()>where
P0: IntoParam<ISpeechVoice>,
pub unsafe fn Voice(&self) -> Result<ISpeechVoice>
pub unsafe fn SetAllowVoiceFormatMatchingOnNextSet<P0>(
&self,
allow: P0
) -> Result<()>where
P0: IntoParam<VARIANT_BOOL>,
pub unsafe fn AllowVoiceFormatMatchingOnNextSet(&self) -> Result<VARIANT_BOOL>
pub unsafe fn SetVoicePurgeEvent( &self, eventinterest: SpeechRecoEvents ) -> Result<()>
pub unsafe fn VoicePurgeEvent(&self) -> Result<SpeechRecoEvents>
pub unsafe fn SetEventInterests( &self, eventinterest: SpeechRecoEvents ) -> Result<()>
pub unsafe fn EventInterests(&self) -> Result<SpeechRecoEvents>
pub unsafe fn SetCmdMaxAlternates(&self, maxalternates: i32) -> Result<()>
pub unsafe fn CmdMaxAlternates(&self) -> Result<i32>
pub unsafe fn SetState(&self, state: SpeechRecoContextState) -> Result<()>
pub unsafe fn State(&self) -> Result<SpeechRecoContextState>
pub unsafe fn SetRetainedAudio( &self, option: SpeechRetainedAudioOptions ) -> Result<()>
pub unsafe fn RetainedAudio(&self) -> Result<SpeechRetainedAudioOptions>
pub unsafe fn putref_RetainedAudioFormat<P0>(&self, format: P0) -> Result<()>where
P0: IntoParam<ISpeechAudioFormat>,
pub unsafe fn RetainedAudioFormat(&self) -> Result<ISpeechAudioFormat>
pub unsafe fn Pause(&self) -> Result<()>
pub unsafe fn Resume(&self) -> Result<()>
pub unsafe fn CreateGrammar<P0>(
&self,
grammarid: P0
) -> Result<ISpeechRecoGrammar>where
P0: IntoParam<VARIANT>,
pub unsafe fn CreateResultFromMemory( &self, resultblock: *const VARIANT ) -> Result<ISpeechRecoResult>
pub unsafe fn Bookmark<P0, P1>( &self, options: SpeechBookmarkOptions, streampos: P0, bookmarkid: P1 ) -> Result<()>
pub unsafe fn SetAdaptationData<P0>(&self, adaptationstring: P0) -> Result<()>where
P0: IntoParam<BSTR>,
Trait Implementations§
§impl Clone for ISpeechRecoContext
impl Clone for ISpeechRecoContext
§fn clone(&self) -> ISpeechRecoContext
fn clone(&self) -> ISpeechRecoContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for ISpeechRecoContext
impl Debug for ISpeechRecoContext
§impl From<&ISpeechRecoContext> for &IDispatch
impl From<&ISpeechRecoContext> for &IDispatch
§fn from(value: &ISpeechRecoContext) -> Self
fn from(value: &ISpeechRecoContext) -> Self
Converts to this type from the input type.
§impl From<&ISpeechRecoContext> for &IUnknown
impl From<&ISpeechRecoContext> for &IUnknown
§fn from(value: &ISpeechRecoContext) -> Self
fn from(value: &ISpeechRecoContext) -> Self
Converts to this type from the input type.
§impl From<ISpeechRecoContext> for IDispatch
impl From<ISpeechRecoContext> for IDispatch
§fn from(value: ISpeechRecoContext) -> Self
fn from(value: ISpeechRecoContext) -> Self
Converts to this type from the input type.
§impl From<ISpeechRecoContext> for IUnknown
impl From<ISpeechRecoContext> for IUnknown
§fn from(value: ISpeechRecoContext) -> Self
fn from(value: ISpeechRecoContext) -> Self
Converts to this type from the input type.
§impl Interface for ISpeechRecoContext
impl Interface for ISpeechRecoContext
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for ISpeechRecoContext
impl PartialEq for ISpeechRecoContext
§fn eq(&self, other: &ISpeechRecoContext) -> bool
fn eq(&self, other: &ISpeechRecoContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ISpeechRecoContext
impl StructuralPartialEq for ISpeechRecoContext
Auto Trait Implementations§
impl RefUnwindSafe for ISpeechRecoContext
impl !Send for ISpeechRecoContext
impl !Sync for ISpeechRecoContext
impl Unpin for ISpeechRecoContext
impl UnwindSafe for ISpeechRecoContext
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