ホーム › Media.Speech › ISpeechRecoGrammar
ISpeechRecoGrammar
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 19
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
| vtbl | メソッド |
|---|---|
| 7 | HRESULT get_Id(VARIANT* Id) |
| 8 | HRESULT get_RecoContext(ISpeechRecoContext** RecoContext) |
| 9 | HRESULT put_State(SpeechGrammarState State) |
| 10 | HRESULT get_State(SpeechGrammarState* State) |
| 11 | HRESULT get_Rules(ISpeechGrammarRules** Rules) |
| 12 | HRESULT Reset(INT NewLanguage) |
| 13 | HRESULT CmdLoadFromFile(LPWSTR FileName, SpeechLoadOption LoadOption) |
| 14 | HRESULT CmdLoadFromObject(LPWSTR ClassId, LPWSTR GrammarName, SpeechLoadOption LoadOption) |
| 15 | HRESULT CmdLoadFromResource(INT hModule, VARIANT ResourceName, VARIANT ResourceType, INT LanguageId, SpeechLoadOption LoadOption) |
| 16 | HRESULT CmdLoadFromMemory(VARIANT GrammarData, SpeechLoadOption LoadOption) |
| 17 | HRESULT CmdLoadFromProprietaryGrammar(LPWSTR ProprietaryGuid, LPWSTR ProprietaryString, VARIANT ProprietaryData, SpeechLoadOption LoadOption) |
| 18 | HRESULT CmdSetRuleState(LPWSTR Name, SpeechRuleState State) |
| 19 | HRESULT CmdSetRuleIdState(INT RuleId, SpeechRuleState State) |
| 20 | HRESULT DictationLoad(LPWSTR TopicName, SpeechLoadOption LoadOption) |
| 21 | HRESULT DictationUnload() |
| 22 | HRESULT DictationSetState(SpeechRuleState State) |
| 23 | HRESULT SetWordSequenceData(LPWSTR Text, INT TextLength, ISpeechTextSelectionInformation* Info) |
| 24 | HRESULT SetTextSelection(ISpeechTextSelectionInformation* Info) |
| 25 | HRESULT IsPronounceable(LPWSTR Word, SpeechWordPronounceable* WordPronounceable) |