ISpSREngineSite::IsAlternate (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

ISpSREngineSite::IsAlternate

ISpSREngineSite::IsAlternate determines whether one rule is an alternate of another.

HRESULT IsAlternate(
   SPRULEHANDLE   hPriRule,
   SPRULEHANDLE   hAltRule
);

Parameters

hPriRule
[in] The primary rule.
hAltRule
[in] The alternate rule to be checked.

Return values

ValueDescription
S_OKhAltRule is an alternate of hPriRule.
S_FALSEhAltRule is not an alternate of hPriRule.
FAILED (hr)Appropriate error message.

Remarks

This method is used because it is not possible to return alternates for CFG rules from different recognition contexts. This method provides an easy way for engines to determine whether two rules belong to the same context.


Show: