Share via


ISpSREngineSite::IsAlternate (SAPI 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

Value
S_OK
S_FALSE
FAILED (hr)

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.