Voice Mode Grammar Library for French (Canada)
The voice mode grammar library contains a collection of preconstructed grammar rulesets. Each ruleset is designed to recognize spoken input for a specific type of data such as a date, time, or credit card number. Follow 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 or error handling. For instance, if a developer designates the CreditCard ruleset and activates the CreditCardNumber rule, the user must provide the correct number of digits required for that type of credit card; if the user provides either too many or too few digits, the recognition engine returns an InvalidCardNumber node in the Semantic Markup Language (SML) output.
Ruleset | Description |
---|---|
Alphanum | Retrieves a combination of letters and numbers. |
CreditCard | Retrieves a card number and expiration date for up to five different credit cards. |
Currency | Retrieves a currency amount in dollars and cents. |
Date | Retrieves a date. |
DateBlock | Retrieves either an open or a closed date block. |
Duration | Retrieves an interval of time. |
Numeral | Retrieves values from different types of numerical formats. |
Time | Retrieves a time of day. |
TimeBlock | Retrieves either an open or a closed time block. |
USPhoneNumber | Retrieves a U.S. or Canadian telephone number. |
USSocialSecurity | Retrieves a U.S. Social Security number. |
YesNoCancel | Retrieves a Ternary answer. |
The rulesets documented in the topics above are the publicly scoped sets of rules that are most frequently used by developers. See Additional Publicly Scoped Rules for a list of additional, publicly scoped rules that retrieve various types of numbers, dates, and letters.