Partager via


ISpRecoGrammar::GetGrammarId (SAPI 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

Value
S_OK
E_POINTER

Remarks

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