Export (0) Print
Expand All

ISpRecoGrammar2::SetDictationWeight (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

ISpRecoGrammar2::SetDictationWeight

ISpRecoGrammar2::SetDictationWeight sets the weight on the dictation rule.


HRESULT SetDictationWeight(
   float   flWeight
);

Parameters

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).

Return values

ValueDescription
S_OKFunction completed successfully.
E_INVALIDARGOne of the parameters is invalid.
FAILED(hr)Appropriate error message.
Show:
© 2014 Microsoft