ISpRecoGrammar::GetGrammarId (SAPI 5.4)

Speech API 5.4
Microsoft Speech API 5.4

ISpRecoGrammar::GetGrammarId

ISpRecoGrammar::GetGrammarId retrieves the identifier associated with the grammar when the grammar was created.

The grammar ID is set by the application by calling ISpRecoContext::CreateGrammar.

HRESULT GetGrammarId(
   ULONGLONG   *pullGrammarId
);

Parameters

pullGrammarId
[out] Address of a ULONGLONG variable to receive the grammar ID.

Return values

ValueDescription
S_OKFunction completed successfully.
E_POINTERpullGrammarId is invalid or bad.

Remarks

The grammar ID will be set in the SPPHRASE object when a recognition is sent to the application (see ISpPhrase::GetPhrase).

Show: