Priority Property
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Grammar.Priority Property

Set or gets a value used as a tie breaker when one or more grammars have returned a recognized phrase.

Namespace: Microsoft.Speech.Recognition
Assembly: Microsoft.Speech (in microsoft.speech.dll)

Property Value

Returns an integer value representing the relative priority of a specific Grammar.

The default value of Priority is 0.

Priority can be set to any value between 128 and 128.

Unlike Weight, the use of Priority is purely deterministic.

If a recognition engine determines that any of two or more Grammar objects it is using to perform recognition operation are equally likely to provide speech recognition, the recognition engine uses the Grammar with the highest Priority.

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

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

© 2016 Microsoft