Trait windows::Win32::Media::Speech::ISpeechVoice_Impl
pub trait ISpeechVoice_Impl: Sized + IDispatch_Impl {
Show 32 methods
// Required methods
fn Status(&self) -> Result<ISpeechVoiceStatus>;
fn Voice(&self) -> Result<ISpeechObjectToken>;
fn putref_Voice(&self, voice: Option<&ISpeechObjectToken>) -> Result<()>;
fn AudioOutput(&self) -> Result<ISpeechObjectToken>;
fn putref_AudioOutput(
&self,
audiooutput: Option<&ISpeechObjectToken>,
) -> Result<()>;
fn AudioOutputStream(&self) -> Result<ISpeechBaseStream>;
fn putref_AudioOutputStream(
&self,
audiooutputstream: Option<&ISpeechBaseStream>,
) -> Result<()>;
fn Rate(&self) -> Result<i32>;
fn SetRate(&self, rate: i32) -> Result<()>;
fn Volume(&self) -> Result<i32>;
fn SetVolume(&self, volume: i32) -> Result<()>;
fn SetAllowAudioOutputFormatChangesOnNextSet(
&self,
allow: VARIANT_BOOL,
) -> Result<()>;
fn AllowAudioOutputFormatChangesOnNextSet(&self) -> Result<VARIANT_BOOL>;
fn EventInterests(&self) -> Result<SpeechVoiceEvents>;
fn SetEventInterests(
&self,
eventinterestflags: SpeechVoiceEvents,
) -> Result<()>;
fn SetPriority(&self, priority: SpeechVoicePriority) -> Result<()>;
fn Priority(&self) -> Result<SpeechVoicePriority>;
fn SetAlertBoundary(&self, boundary: SpeechVoiceEvents) -> Result<()>;
fn AlertBoundary(&self) -> Result<SpeechVoiceEvents>;
fn SetSynchronousSpeakTimeout(&self, mstimeout: i32) -> Result<()>;
fn SynchronousSpeakTimeout(&self) -> Result<i32>;
fn Speak(&self, text: &BSTR, flags: SpeechVoiceSpeakFlags) -> Result<i32>;
fn SpeakStream(
&self,
stream: Option<&ISpeechBaseStream>,
flags: SpeechVoiceSpeakFlags,
) -> Result<i32>;
fn Pause(&self) -> Result<()>;
fn Resume(&self) -> Result<()>;
fn Skip(&self, type: &BSTR, numitems: i32) -> Result<i32>;
fn GetVoices(
&self,
requiredattributes: &BSTR,
optionalattributes: &BSTR,
) -> Result<ISpeechObjectTokens>;
fn GetAudioOutputs(
&self,
requiredattributes: &BSTR,
optionalattributes: &BSTR,
) -> Result<ISpeechObjectTokens>;
fn WaitUntilDone(&self, mstimeout: i32) -> Result<VARIANT_BOOL>;
fn SpeakCompleteEvent(&self) -> Result<i32>;
fn IsUISupported(
&self,
typeofui: &BSTR,
extradata: *const VARIANT,
) -> Result<VARIANT_BOOL>;
fn DisplayUI(
&self,
hwndparent: i32,
title: &BSTR,
typeofui: &BSTR,
extradata: *const VARIANT,
) -> Result<()>;
}
Required Methods§
fn Status(&self) -> Result<ISpeechVoiceStatus>
fn Voice(&self) -> Result<ISpeechObjectToken>
fn putref_Voice(&self, voice: Option<&ISpeechObjectToken>) -> Result<()>
fn AudioOutput(&self) -> Result<ISpeechObjectToken>
fn putref_AudioOutput( &self, audiooutput: Option<&ISpeechObjectToken>, ) -> Result<()>
fn AudioOutputStream(&self) -> Result<ISpeechBaseStream>
fn putref_AudioOutputStream( &self, audiooutputstream: Option<&ISpeechBaseStream>, ) -> Result<()>
fn Rate(&self) -> Result<i32>
fn SetRate(&self, rate: i32) -> Result<()>
fn Volume(&self) -> Result<i32>
fn SetVolume(&self, volume: i32) -> Result<()>
fn SetAllowAudioOutputFormatChangesOnNextSet( &self, allow: VARIANT_BOOL, ) -> Result<()>
fn AllowAudioOutputFormatChangesOnNextSet(&self) -> Result<VARIANT_BOOL>
fn EventInterests(&self) -> Result<SpeechVoiceEvents>
fn SetEventInterests(&self, eventinterestflags: SpeechVoiceEvents) -> Result<()>
fn SetPriority(&self, priority: SpeechVoicePriority) -> Result<()>
fn Priority(&self) -> Result<SpeechVoicePriority>
fn SetAlertBoundary(&self, boundary: SpeechVoiceEvents) -> Result<()>
fn AlertBoundary(&self) -> Result<SpeechVoiceEvents>
fn SetSynchronousSpeakTimeout(&self, mstimeout: i32) -> Result<()>
fn SynchronousSpeakTimeout(&self) -> Result<i32>
fn Speak(&self, text: &BSTR, flags: SpeechVoiceSpeakFlags) -> Result<i32>
fn SpeakStream( &self, stream: Option<&ISpeechBaseStream>, flags: SpeechVoiceSpeakFlags, ) -> Result<i32>
fn Pause(&self) -> Result<()>
fn Resume(&self) -> Result<()>
fn Skip(&self, type: &BSTR, numitems: i32) -> Result<i32>
fn GetVoices( &self, requiredattributes: &BSTR, optionalattributes: &BSTR, ) -> Result<ISpeechObjectTokens>
fn GetAudioOutputs( &self, requiredattributes: &BSTR, optionalattributes: &BSTR, ) -> Result<ISpeechObjectTokens>
fn WaitUntilDone(&self, mstimeout: i32) -> Result<VARIANT_BOOL>
fn SpeakCompleteEvent(&self) -> Result<i32>
fn IsUISupported( &self, typeofui: &BSTR, extradata: *const VARIANT, ) -> Result<VARIANT_BOOL>
fn DisplayUI( &self, hwndparent: i32, title: &BSTR, typeofui: &BSTR, extradata: *const VARIANT, ) -> Result<()>
Object Safety§
This trait is not object safe.