Freigeben über


USSocialSecurity Rule for Spanish (United States)

  Microsoft Speech Technologies Homepage

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 doce treinta y cuatro.

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="es-US" 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: nueve ocho siete cero cero seis cinco cuatro tres.

SML returned by the recognition engine:

<SML text="nueve ocho siete cero cero seis cinco cuatro tres" utteranceConfidence="1.000" confidence="1.000">987006543</SML>

See Also

Voice Mode Grammar Library | DTMF Mode Grammar Library