USSocialSecurity Rule for French (Canada)
Retrieves a nine-digit U.S. Social Security number. Digit groupings are supported. Grouping is the ability of the AlphaNum rule to retrieve a group of digits. For example, the Digit4 rule retrieves "1234" when a user says douze trente-quatre.
A noreco event is returned for U.S. Social Security numbers that are not nine digits in length.
Rule
USSocialSecurity
Usage
<ruleref uri="cmnrules.cfg#USSocialSecurity"/>
The grammar can be used as follows:
<grammar version="1.0" mode="voice" root="Rule1" tag-format="semantics-ms/1.0"
xml:lang="fr-CA" xmlns="http://www.w3.org/2001/06/grammar"
xmlns:sapi="https://schemas.microsoft.com/Speech/2002/06/SRGSExtensions">
<rule id="Rule1">
<ruleref uri="cmnrules.cfg#USSocialSecurity"/>
<tag>$ = $$</tag>
</rule>
</grammar>
Example: USSocialSecurity
User says: neuf huit sept zéro zéro six cinq quatre trois.
SML returned by the recognition engine:
<SML confidence="1.000" text="neuf huit sept zéro zéro six cinq quatre trois" utteranceConfidence="1.000">987006543</SML>