Grammar.Weight Property
Property used to control the influence of a grammar on a recognition engine's algorithm.
Namespace: Microsoft.Speech.Recognition
Assembly: Microsoft.Speech (in microsoft.speech.dll)
Syntax
'Declaration
Property Value
Returns a floating point value indicating the relative weight a recognition engine (SpeechRecognizer or SpeechRecognitionEngine) instance should assign to this grammar when processing audio input.
Remarks
Because of the complexity of a recognition engine's use of Weight, its effect on a particular grammar's performance is not as directly predictable as that of Priority,
Use of Weight should only be done after controlled diagnostic study of a particular recognition environment and with full information about the recognition engine under use.
Thread Safety
All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition
Target Platforms
See Also
Reference
Grammar Class
Grammar Members
Microsoft.Speech.Recognition Namespace
Grammar.Priority Property