Trait windows::Win32::Media::Speech::ISpVoice_Impl

pub trait ISpVoice_Impl: Sized + ISpEventSource_Impl {
Show 25 methods // Required methods fn SetOutput( &self, punkoutput: Option<&IUnknown>, fallowformatchanges: BOOL, ) -> Result<()>; fn GetOutputObjectToken(&self) -> Result<ISpObjectToken>; fn GetOutputStream(&self) -> Result<ISpStreamFormat>; fn Pause(&self) -> Result<()>; fn Resume(&self) -> Result<()>; fn SetVoice(&self, ptoken: Option<&ISpObjectToken>) -> Result<()>; fn GetVoice(&self) -> Result<ISpObjectToken>; fn Speak( &self, pwcs: &PCWSTR, dwflags: u32, pulstreamnumber: *mut u32, ) -> Result<()>; fn SpeakStream( &self, pstream: Option<&IStream>, dwflags: u32, pulstreamnumber: *mut u32, ) -> Result<()>; fn GetStatus( &self, pstatus: *mut SPVOICESTATUS, ppszlastbookmark: *mut PWSTR, ) -> Result<()>; fn Skip( &self, pitemtype: &PCWSTR, lnumitems: i32, pulnumskipped: *mut u32, ) -> Result<()>; fn SetPriority(&self, epriority: SPVPRIORITY) -> Result<()>; fn GetPriority(&self, pepriority: *mut SPVPRIORITY) -> Result<()>; fn SetAlertBoundary(&self, eboundary: SPEVENTENUM) -> Result<()>; fn GetAlertBoundary(&self, peboundary: *mut SPEVENTENUM) -> Result<()>; fn SetRate(&self, rateadjust: i32) -> Result<()>; fn GetRate(&self, prateadjust: *mut i32) -> Result<()>; fn SetVolume(&self, usvolume: u16) -> Result<()>; fn GetVolume(&self, pusvolume: *mut u16) -> Result<()>; fn WaitUntilDone(&self, mstimeout: u32) -> Result<()>; fn SetSyncSpeakTimeout(&self, mstimeout: u32) -> Result<()>; fn GetSyncSpeakTimeout(&self, pmstimeout: *mut u32) -> Result<()>; fn SpeakCompleteEvent(&self) -> HANDLE; fn IsUISupported( &self, psztypeofui: &PCWSTR, pvextradata: *mut c_void, cbextradata: u32, pfsupported: *mut BOOL, ) -> Result<()>; fn DisplayUI( &self, hwndparent: HWND, psztitle: &PCWSTR, psztypeofui: &PCWSTR, pvextradata: *mut c_void, cbextradata: u32, ) -> Result<()>;
}

Required Methods§

fn SetOutput( &self, punkoutput: Option<&IUnknown>, fallowformatchanges: BOOL, ) -> Result<()>

fn GetOutputObjectToken(&self) -> Result<ISpObjectToken>

fn GetOutputStream(&self) -> Result<ISpStreamFormat>

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

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

fn SetVoice(&self, ptoken: Option<&ISpObjectToken>) -> Result<()>

fn GetVoice(&self) -> Result<ISpObjectToken>

fn Speak( &self, pwcs: &PCWSTR, dwflags: u32, pulstreamnumber: *mut u32, ) -> Result<()>

fn SpeakStream( &self, pstream: Option<&IStream>, dwflags: u32, pulstreamnumber: *mut u32, ) -> Result<()>

fn GetStatus( &self, pstatus: *mut SPVOICESTATUS, ppszlastbookmark: *mut PWSTR, ) -> Result<()>

fn Skip( &self, pitemtype: &PCWSTR, lnumitems: i32, pulnumskipped: *mut u32, ) -> Result<()>

fn SetPriority(&self, epriority: SPVPRIORITY) -> Result<()>

fn GetPriority(&self, pepriority: *mut SPVPRIORITY) -> Result<()>

fn SetAlertBoundary(&self, eboundary: SPEVENTENUM) -> Result<()>

fn GetAlertBoundary(&self, peboundary: *mut SPEVENTENUM) -> Result<()>

fn SetRate(&self, rateadjust: i32) -> Result<()>

fn GetRate(&self, prateadjust: *mut i32) -> Result<()>

fn SetVolume(&self, usvolume: u16) -> Result<()>

fn GetVolume(&self, pusvolume: *mut u16) -> Result<()>

fn WaitUntilDone(&self, mstimeout: u32) -> Result<()>

fn SetSyncSpeakTimeout(&self, mstimeout: u32) -> Result<()>

fn GetSyncSpeakTimeout(&self, pmstimeout: *mut u32) -> Result<()>

fn SpeakCompleteEvent(&self) -> HANDLE

fn IsUISupported( &self, psztypeofui: &PCWSTR, pvextradata: *mut c_void, cbextradata: u32, pfsupported: *mut BOOL, ) -> Result<()>

fn DisplayUI( &self, hwndparent: HWND, psztitle: &PCWSTR, psztypeofui: &PCWSTR, pvextradata: *mut c_void, cbextradata: u32, ) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§