Share via


Voice Mode Grammar Library for English (United States)

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

The voice mode grammar library contains a collection of preconstructed grammar rulesets. Each ruleset contains a number of publicly scoped rules that are designed to recognize spoken input for a specific type of data such as a date, time, or numbers. Click the links in the table to read documentation describing the syntax and return values for the rules contained in each of the rulesets.

The voice mode grammar library is provided as a convenience, obviating the need for developers to write their own rules for collecting commonly used data and enabling developers to easily develop more complex grammars based on these types of common data. In addition, many of the individual rules provide built-in validation. For example, if a developer activates the DigitBlock_2Digits rule, the user must provide the correct number of digits (two) required for that rule.

Ruleset Description

Confirmation Rules for English (United States)

Confirmation rules provide access to simple dialog confirmation responses.

Currency Rules for English (United States)

Currency rules describe a quantity of currency up to one million dollars and 99 cents.

DigitBlock Rules for English (United States)

DigitBlock rules describe sequences of digit strings in length from two to four digits.

Phone Number Rules for English (United States)

Phone Number rules recognize U.S. phone numbers.

Cardinal Rules for English (United States)

Cardinal rules recognize numeric values ranging from zero to one million.

Ordinal Rules for English (United States)

Ordinal rules recognize numeric ordering values ranging from 1 (first) to 100 (one hundredth).

Date Rules for English (United States)

Date rules recognize dates expressed in a number of forms.

Time Rules for English (United States)

Time rules recognize expressions of time based on a 12-hour clock.