ISpRecoContext2::SetRuleWeight (SAPI 5.3)
Speech API 5.3
ISpRecoContext2::SetRuleWeight sets the weight on the specified rule.
HRESULT SetRuleWeight( LPCWSTR pszRuleName, ULONG ulRuleId, float flWeight );
- The name of the rule.
- The ID number of the rule.
- A floating point number between 0 and 1. A higher number biases the recognizer to favour this rule over another rule when the developer knows that one rule is more likely to be uttered than the other. This is used to tune the accuracy of an application.
|S_OK||Function completed successfully.|
|E_INVALIDARG||One of the parameters is invalid.|
|FAILED(hr)||Appropriate error message.|