Share via


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)

Syntax

'Declaration

Property Value

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

Remarks

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.

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
Weight

Other Resources

Speech Recognition Grammar Specification