ISpRecoGrammar2::SetDictationWeight (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

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

Value Description
S_OK Function completed successfully.
E_INVALIDARG One of the parameters is invalid.
FAILED(hr) Appropriate error message.