windows::Win32::Media::Speech

Trait ISpeechRecoGrammar_Impl

pub trait ISpeechRecoGrammar_Impl: IDispatch_Impl {
Show 19 methods // Required methods fn Id(&self) -> Result<VARIANT>; fn RecoContext(&self) -> Result<ISpeechRecoContext>; fn SetState(&self, state: SpeechGrammarState) -> Result<()>; fn State(&self) -> Result<SpeechGrammarState>; fn Rules(&self) -> Result<ISpeechGrammarRules>; fn Reset(&self, newlanguage: i32) -> Result<()>; fn CmdLoadFromFile( &self, filename: &BSTR, loadoption: SpeechLoadOption, ) -> Result<()>; fn CmdLoadFromObject( &self, classid: &BSTR, grammarname: &BSTR, loadoption: SpeechLoadOption, ) -> Result<()>; fn CmdLoadFromResource( &self, hmodule: i32, resourcename: &VARIANT, resourcetype: &VARIANT, languageid: i32, loadoption: SpeechLoadOption, ) -> Result<()>; fn CmdLoadFromMemory( &self, grammardata: &VARIANT, loadoption: SpeechLoadOption, ) -> Result<()>; fn CmdLoadFromProprietaryGrammar( &self, proprietaryguid: &BSTR, proprietarystring: &BSTR, proprietarydata: &VARIANT, loadoption: SpeechLoadOption, ) -> Result<()>; fn CmdSetRuleState(&self, name: &BSTR, state: SpeechRuleState) -> Result<()>; fn CmdSetRuleIdState( &self, ruleid: i32, state: SpeechRuleState, ) -> Result<()>; fn DictationLoad( &self, topicname: &BSTR, loadoption: SpeechLoadOption, ) -> Result<()>; fn DictationUnload(&self) -> Result<()>; fn DictationSetState(&self, state: SpeechRuleState) -> Result<()>; fn SetWordSequenceData( &self, text: &BSTR, textlength: i32, info: Ref<'_, ISpeechTextSelectionInformation>, ) -> Result<()>; fn SetTextSelection( &self, info: Ref<'_, ISpeechTextSelectionInformation>, ) -> Result<()>; fn IsPronounceable(&self, word: &BSTR) -> Result<SpeechWordPronounceable>;
}

Required Methods§

fn Id(&self) -> Result<VARIANT>

fn RecoContext(&self) -> Result<ISpeechRecoContext>

fn SetState(&self, state: SpeechGrammarState) -> Result<()>

fn State(&self) -> Result<SpeechGrammarState>

fn Rules(&self) -> Result<ISpeechGrammarRules>

fn Reset(&self, newlanguage: i32) -> Result<()>

fn CmdLoadFromFile( &self, filename: &BSTR, loadoption: SpeechLoadOption, ) -> Result<()>

fn CmdLoadFromObject( &self, classid: &BSTR, grammarname: &BSTR, loadoption: SpeechLoadOption, ) -> Result<()>

fn CmdLoadFromResource( &self, hmodule: i32, resourcename: &VARIANT, resourcetype: &VARIANT, languageid: i32, loadoption: SpeechLoadOption, ) -> Result<()>

fn CmdLoadFromMemory( &self, grammardata: &VARIANT, loadoption: SpeechLoadOption, ) -> Result<()>

fn CmdLoadFromProprietaryGrammar( &self, proprietaryguid: &BSTR, proprietarystring: &BSTR, proprietarydata: &VARIANT, loadoption: SpeechLoadOption, ) -> Result<()>

fn CmdSetRuleState(&self, name: &BSTR, state: SpeechRuleState) -> Result<()>

fn CmdSetRuleIdState(&self, ruleid: i32, state: SpeechRuleState) -> Result<()>

fn DictationLoad( &self, topicname: &BSTR, loadoption: SpeechLoadOption, ) -> Result<()>

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

fn DictationSetState(&self, state: SpeechRuleState) -> Result<()>

fn SetWordSequenceData( &self, text: &BSTR, textlength: i32, info: Ref<'_, ISpeechTextSelectionInformation>, ) -> Result<()>

fn SetTextSelection( &self, info: Ref<'_, ISpeechTextSelectionInformation>, ) -> Result<()>

fn IsPronounceable(&self, word: &BSTR) -> Result<SpeechWordPronounceable>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§