Export (0) Print
Expand All

ISpSREngine2::SetRuleWeight (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

ISpSREngine2::SetRuleWeight

ISpSREngine2::SetRuleWeight sets the weight of a rule in a CFG.


HRESULT SetRuleWeight(
   SPRULEHANDLE    hRule,
   void           *pvClientRuleContext,
   float           flWeight
);

Parameters

hRule
The handle to the rule.
pvClientRuleContext
Pointer to the engine's data associated with the rule.
flWeight
The weight.

Return values

ValueDescription
S_OKFunction completed successfully.
E_NOINTERFACEInterface not supported by the engine.
Show:
© 2014 Microsoft