ISpRecoGrammar2::SetDictationWeight (SAPI 5.3)
Speech API 5.3
ISpRecoGrammar2::SetDictationWeight sets the weight on the dictation rule.
HRESULT SetDictationWeight( float flWeight );
- A floating point number between 0 and 1. A higher number biases the recognizer to favour dictation over CFG rules when the developer knows that dictation is more likely to be uttered than the rule (or vice versa).
|S_OK||Function completed successfully.|
|E_INVALIDARG||One of the parameters is invalid.|
|FAILED(hr)||Appropriate error message.|