SocialSecurityNumber Remarks for French (Canada)
Collects a U.S. Social Security number.
Implements IDtmf.
Internal QA controls
The following table shows the SpeechIndex values and DTMF usages of the internal QA controls of the SocialSecurityNumber Application Speech Control:
SpeechIndex | QA name | Supports DTMF? |
---|---|---|
1 | confirmField1 | No |
2 | confirmField2 | No |
3 | confirmField3 | No |
4 | confirm | No |
5 | questionField1 | Yes |
6 | questionField2 | Yes |
7 | questionField3 | Yes |
8 | acknowledge | No |
When RunSpeech activates the SocialSecurityNumber control, it evaluates each internal QA control in the order of its SpeechIndex property, as shown in the preceding table, and determines if it should be activated. During the initial evaluation, the internal QA controls that perform confirmation typically have no data to confirm, and they are evaluated but not activated.
For a Social Security number gathered outside and passed into the SocialSecurityNumber control for confirmation, execution begins at SpeechIndex 4.
Default prompts
The following table shows the default prompts and suggested Help prompts corresponding to each phase of the SocialSecurityNumber control's user interaction, as indicated by the value of the control's ActiveQAPhase property.
The default prompts shown in this table are built into the control, and the control plays them automatically. Authors can use the PromptSelectFunction routine to specify custom text that overrides the default prompts. By default these prompts play as TTS, which is not desirable if the other prompts in the application are recorded. For information on how to record the default prompts in this control, see Importing and Exporting Transcriptions.
The Help prompts shown in this table are suggestions only. It is the responsibility of application authors to create Command Dialog Speech Controls that play Help prompts more or less equivalent to those shown in the table. In order to play Help prompts, authors must define a Command control with a scope that includes the SocialSecurityNumber control, a Type property of "Help" and an XPathTrigger property of "/SML/Help".
The QuestionPrompt property must be set by the application author, or the control will raise an exception.
Each Application Speech Control has one or more properties of the SemanticItem type, which contain text recognized from user responses. That text is included in certain default prompts.
question QA control | |
---|---|
Prompt: | QuestionPrompt.value |
Help: | "s'il-vous-plaît donnez-moi le numéro d'assurance sociale." |
questionField1 QA control | |
Prompt: | quels sont les trois premiers chiffres?.value |
Help: | "s'il-vous-plaît donnez-moi le trois premiers chiffres du numéro d'assurance sociale." |
questionField2 QA control | |
Prompt: | "chiffres suivants?|quels sont les deux chiffres suivants?" |
Help: | "s'il-vous-plaît donnez-moi les deux chiffres du milieu du numéro d'assurance sociale." |
questionField3 QA control | |
Prompt: | "chiffres suivants?|quels sont les quatre derniers chiffres?" |
Help: | "s'il-vous-plaît donnez-moi les quatre derniers chiffres du numéro d'assurance sociale." |
ConfirmField1 QA control | |
Prompt: 1 | "est-ce que les trois premiers chiffres sont: " + SemanticItem.value + "?" |
Prompt: 2 | SemanticItem.value + "?" |
Help: | "s'il-vous-plaît, dites oui ou non, ou donnez-moi les bons chiffres." |
ConfirmField2 QA control | |
Prompt: 1 | "est-ce que les deux chiffres du milieu sont: " + SemanticItem.value + "?" |
Prompt: 2 | SemanticItem.value + "?" |
Help: | "s'il-vous-plaît, dites oui ou non, ou donnez-moi les bons chiffres. " |
ConfirmField3 QA control | |
Prompt: 1 | "est-ce que les quatre derniers chiffres sont: " + SemanticItem.value + "?" |
Prompt: 2 | SemanticItem.value + "?" |
Help: | "s'il-vous-plaît, dites oui ou non, ou donnez-moi les bons chiffres. " |
FullConfirm QA control | |
Prompt: 1 | "est-ce que le numéro d'assurance sociale est: " + SemanticItem.value + "?" |
Prompt: 2 | SemanticItem.value + "?" |
Help: | "s'il-vous-plaît, dites oui ou non" |
All QA controls | |
Silence: | "je ne vous ai pas entendue." |
NoReco: | "je ne vous ai pas compris." |
1: Normal confirmation mode
2: Short time-out confirmation mode
Examples
Collecting and confirming a Social Security number:
Control: | "quel est votre numéro d'assurance sociale?" |
User: | "un deux trois quatre cinq six sept huit nuef." |
Control: | "un deux trois?" |
User: | "oui." (Or silence, in short time-out confirmation) |
Control: | "quatre cinq?" |
User: | "oui." (Or silence, in short time-out confirmation) |
Control: | "six sept huit nuef?" |
User: | "oui." (Or silence, in short time-out confirmation) |
Confirming an existing Social Security number:
Control: | "est-ce que le numéro d'assurance sociale est: un deux trois quatre cinq six sept huit nuef?" |
User: | "non, nuef huit sept six cinq quatre trois deux un." |
Control: | "nuef huit sept?" |
User: | "oui." (Or silence, in short time-out confirmation) |
Control: | "six cinq?" |
User: | "oui." (Or silence, in short time-out confirmation) |
Control: | "quatre trois deux un?" |
User: | "oui." (Or silence, in short time-out confirmation) |
See Also
SocialSecurityNumber Class | SocialSecurityNumber Constructor | SocialSecurityNumber Members | SocialSecurityNumber Properties | SocialSecurityNumber Methods | SocialSecurityNumber Events