Struct ISpeechVoice
pub struct ISpeechVoice(/* private fields */);
Implementations§
§impl ISpeechVoice
impl ISpeechVoice
pub unsafe fn Status(&self) -> Result<ISpeechVoiceStatus>
pub unsafe fn Voice(&self) -> Result<ISpeechObjectToken>
pub unsafe fn putref_Voice<P0>(&self, voice: P0) -> Result<()>where
P0: Param<ISpeechObjectToken>,
pub unsafe fn AudioOutput(&self) -> Result<ISpeechObjectToken>
pub unsafe fn putref_AudioOutput<P0>(&self, audiooutput: P0) -> Result<()>where
P0: Param<ISpeechObjectToken>,
pub unsafe fn AudioOutputStream(&self) -> Result<ISpeechBaseStream>
pub unsafe fn putref_AudioOutputStream<P0>(
&self,
audiooutputstream: P0,
) -> Result<()>where
P0: Param<ISpeechBaseStream>,
pub unsafe fn Rate(&self) -> Result<i32>
pub unsafe fn SetRate(&self, rate: i32) -> Result<()>
pub unsafe fn Volume(&self) -> Result<i32>
pub unsafe fn SetVolume(&self, volume: i32) -> Result<()>
pub unsafe fn SetAllowAudioOutputFormatChangesOnNextSet( &self, allow: VARIANT_BOOL, ) -> Result<()>
pub unsafe fn AllowAudioOutputFormatChangesOnNextSet( &self, ) -> Result<VARIANT_BOOL>
pub unsafe fn EventInterests(&self) -> Result<SpeechVoiceEvents>
pub unsafe fn SetEventInterests( &self, eventinterestflags: SpeechVoiceEvents, ) -> Result<()>
pub unsafe fn SetPriority(&self, priority: SpeechVoicePriority) -> Result<()>
pub unsafe fn Priority(&self) -> Result<SpeechVoicePriority>
pub unsafe fn SetAlertBoundary(&self, boundary: SpeechVoiceEvents) -> Result<()>
pub unsafe fn AlertBoundary(&self) -> Result<SpeechVoiceEvents>
pub unsafe fn SetSynchronousSpeakTimeout(&self, mstimeout: i32) -> Result<()>
pub unsafe fn SynchronousSpeakTimeout(&self) -> Result<i32>
pub unsafe fn Speak( &self, text: &BSTR, flags: SpeechVoiceSpeakFlags, ) -> Result<i32>
pub unsafe fn SpeakStream<P0>(
&self,
stream: P0,
flags: SpeechVoiceSpeakFlags,
) -> Result<i32>where
P0: Param<ISpeechBaseStream>,
pub unsafe fn Pause(&self) -> Result<()>
pub unsafe fn Resume(&self) -> Result<()>
pub unsafe fn Skip(&self, type: &BSTR, numitems: i32) -> Result<i32>
pub unsafe fn GetVoices( &self, requiredattributes: &BSTR, optionalattributes: &BSTR, ) -> Result<ISpeechObjectTokens>
pub unsafe fn GetAudioOutputs( &self, requiredattributes: &BSTR, optionalattributes: &BSTR, ) -> Result<ISpeechObjectTokens>
pub unsafe fn WaitUntilDone(&self, mstimeout: i32) -> Result<VARIANT_BOOL>
pub unsafe fn SpeakCompleteEvent(&self) -> Result<i32>
pub unsafe fn IsUISupported( &self, typeofui: &BSTR, extradata: *const VARIANT, ) -> Result<VARIANT_BOOL>
pub unsafe fn DisplayUI( &self, hwndparent: i32, title: &BSTR, typeofui: &BSTR, extradata: *const VARIANT, ) -> Result<()>
Methods from Deref<Target = IDispatch>§
pub unsafe fn GetTypeInfoCount(&self) -> Result<u32>
pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> Result<ITypeInfo>
pub unsafe fn GetIDsOfNames( &self, riid: *const GUID, rgsznames: *const PCWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32, ) -> Result<()>
pub unsafe fn Invoke( &self, dispidmember: i32, riid: *const GUID, lcid: u32, wflags: DISPATCH_FLAGS, pdispparams: *const DISPPARAMS, pvarresult: Option<*mut VARIANT>, pexcepinfo: Option<*mut EXCEPINFO>, puargerr: Option<*mut u32>, ) -> Result<()>
Trait Implementations§
§impl CanInto<IUnknown> for ISpeechVoice
impl CanInto<IUnknown> for ISpeechVoice
§impl Clone for ISpeechVoice
impl Clone for ISpeechVoice
§fn clone(&self) -> ISpeechVoice
fn clone(&self) -> ISpeechVoice
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 ISpeechVoice
impl Debug for ISpeechVoice
§impl Deref for ISpeechVoice
impl Deref for ISpeechVoice
§impl From<&ISpeechVoice> for &IDispatch
impl From<&ISpeechVoice> for &IDispatch
§fn from(value: &ISpeechVoice) -> Self
fn from(value: &ISpeechVoice) -> Self
Converts to this type from the input type.
§impl From<&ISpeechVoice> for &IUnknown
impl From<&ISpeechVoice> for &IUnknown
§fn from(value: &ISpeechVoice) -> Self
fn from(value: &ISpeechVoice) -> Self
Converts to this type from the input type.
§impl From<ISpeechVoice> for IDispatch
impl From<ISpeechVoice> for IDispatch
§fn from(value: ISpeechVoice) -> Self
fn from(value: ISpeechVoice) -> Self
Converts to this type from the input type.
§impl From<ISpeechVoice> for IUnknown
impl From<ISpeechVoice> for IUnknown
§fn from(value: ISpeechVoice) -> Self
fn from(value: ISpeechVoice) -> Self
Converts to this type from the input type.
§impl Interface for ISpeechVoice
impl Interface for ISpeechVoice
§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.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§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§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for ISpeechVoice
impl PartialEq for ISpeechVoice
impl Eq for ISpeechVoice
impl StructuralPartialEq for ISpeechVoice
Auto Trait Implementations§
impl Freeze for ISpeechVoice
impl RefUnwindSafe for ISpeechVoice
impl !Send for ISpeechVoice
impl !Sync for ISpeechVoice
impl Unpin for ISpeechVoice
impl UnwindSafe for ISpeechVoice
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