Win32 API 日本語リファレンス
ホームMedia.Speech › ISpeechRecoGrammar

ISpeechRecoGrammar

COMIDispatch (デュアル)
IDispatch を実装(デュアルインターフェース)。HSP では comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。
IIDb6d6f79f-2158-4e50-b5bc-9a9ccd852a09継承元IDispatch呼び出し名前(IDispatch) または vtbl自前メソッド開始 vtbl7

メソッド 19

vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。

vtblメソッド
7HRESULT get_Id(VARIANT* Id)
8HRESULT get_RecoContext(ISpeechRecoContext** RecoContext)
9HRESULT put_State(SpeechGrammarState State)
10HRESULT get_State(SpeechGrammarState* State)
11HRESULT get_Rules(ISpeechGrammarRules** Rules)
12HRESULT Reset(INT NewLanguage)
13HRESULT CmdLoadFromFile(LPWSTR FileName, SpeechLoadOption LoadOption)
14HRESULT CmdLoadFromObject(LPWSTR ClassId, LPWSTR GrammarName, SpeechLoadOption LoadOption)
15HRESULT CmdLoadFromResource(INT hModule, VARIANT ResourceName, VARIANT ResourceType, INT LanguageId, SpeechLoadOption LoadOption)
16HRESULT CmdLoadFromMemory(VARIANT GrammarData, SpeechLoadOption LoadOption)
17HRESULT CmdLoadFromProprietaryGrammar(LPWSTR ProprietaryGuid, LPWSTR ProprietaryString, VARIANT ProprietaryData, SpeechLoadOption LoadOption)
18HRESULT CmdSetRuleState(LPWSTR Name, SpeechRuleState State)
19HRESULT CmdSetRuleIdState(INT RuleId, SpeechRuleState State)
20HRESULT DictationLoad(LPWSTR TopicName, SpeechLoadOption LoadOption)
21HRESULT DictationUnload()
22HRESULT DictationSetState(SpeechRuleState State)
23HRESULT SetWordSequenceData(LPWSTR Text, INT TextLength, ISpeechTextSelectionInformation* Info)
24HRESULT SetTextSelection(ISpeechTextSelectionInformation* Info)
25HRESULT IsPronounceable(LPWSTR Word, SpeechWordPronounceable* WordPronounceable)