Compartir a través de


CreditCardNumber Remarks for French (Canada)

  Microsoft Speech Technologies Homepage

Collects a credit card number and type.

The control returns the number in one SemanticItem and adds the card type to the attribute collection of that SemanticItem. The number is not validated.

Implements IDtmf.

Internal QA controls

The following table shows the SpeechIndex values and DTMF usages of the internal QA controls of the CreditCardNumber Application Speech Control:

SpeechIndex QA name Supports DTMF?
1 confirm No
2 questionFirstDigit4_amex Yes
3 questionFirstDigit4_diners Yes
4 questionFirstDigit4_discover Yes
5 questionFirstDigit4_visa Yes
6 confirmFirstDigit4_amex No
7 confirmFirstDigit4_diners No
8 confirmFirstDigit4_discover No
9 confirmFirstDigit4_visa No
10 questionSecondDigit4 Yes
11 confirmSecondDigit4 No
12 questionThirdDigit4 Yes
13 confirmThirdDigit4 No
14 questionLastDigit4 Yes
15 confirmLastDigit4 No
16 questionFirstDigit5 Yes
17 confirmFirstDigit5 No
18 questionFirstDigit6_diners Yes
19 questionFirstDigit6_amex Yes
20 confirmFirstDigit6 No
21 acknowledge No

When RunSpeech activates the CreditCardNumber 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.

Format

The input format of the various credit card types is important. While no actual validation occurs within the application control, the expected format of each credit card type is enforced based on the following formats:

Credit Card Type Beginning Digit(s) Total Digit Count
American Express 34 or 37 15
Diner's Club/Carte Blanche 300 through 305, 36, or 38 14
Discover 6011 16
Mastercard 51 through 55 16
Visa 4 16

Execution flow

If only one type of credit card is allowed, the dialog begins at step 7.

  1. The control asks the user to select a card type.
  2. The user selects a card.
  3. The control confirms the choice.
  4. The user accepts, denies or corrects the choice.
  5. The control plays the choice acknowledge prompt.
  6. If the card selected is not allowed, the control rejects the choice and goes back to 1.
  7. The control activates the specific grammar for the card type selected and asks for the number.
  8. The user can provide it in one utterance or just supply a part of the number.
  9. Until the full number is obtained, the control asks for the remaining digits.
  10. Once the whole number has been spoken, the control tries to confirm it all.
  11. The user accepts or denies. Correction is not allowed at this point.
  12. If the user denies, the control confirms the number in four digit groupings.
  13. The user accepts, denies or corrects each grouping.
  14. After the number has been confirmed, the control plays the acknowledge prompt.

Default prompts

The following table shows the default prompts and suggested Help prompts corresponding to each phase of the CreditCardNumber 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 CreditCardNumber 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 votre numéro de carte de crédit."
FirstDigit4Question QA control
Prompt: "quels sont les quatre premiers chiffres?"
Help: "s'il-vous-plaît donnez-moi la première série de quatre chiffres."
SecondDigit4Question QA control
Prompt: "chiffres suivants?|quelle est la deuxième série de quatre chiffres?"
Help: "s'il-vous-plaît donnez-moi la deuxième série de quatre chiffres."
ThirdDigit4Question QA control
Prompt: "chiffres suivants?|quelle la troisième série de quatre chiffres?"
Help: "s'il-vous-plaît donnez-moi la troisième série de quatre chiffres."
LastDigit4Question QA control
Prompt: "derniers chiffres?|quels sont les quatre derniers chiffres?"
Help: "s'il-vous-plaît donnez-moi la dernière série de quatre chiffres"
Digit5Question QA control
Prompt: "derniers chiffres?|quels sont les cinq derniers chiffres?"
Help: "s'il-vous-plaît donnez-moi la dernière série de cinq chiffres."
Digit6Question QA control
Prompt: "chiffres suivants?|quels sont les prochains six chiffres?"
Help: "s'il-vous-plaît donnez-moi la première série de six chiffres"
FirstDigit4Confirm QA control
Prompt: "est-ce que les quatre premiers chiffres sont: " + FirstDigit4SemanticItem.value + "?"
Help: "s'il-vous-plaît, dites oui ou non, ou donnez-moi les bons chiffres."
SecondDigit4Confirm QA control
Prompt: "est-ce que les quatre prochains chiffres sont: " + SecondDigit4SemanticItem.value + "?"
Help: "s'il-vous-plaît, dites oui ou non, ou donnez-moi les bons chiffres."
ThirdDigit4Confirm QA control
Prompt: "est-ce que les quatre prochains chiffres sont: " + ThirdDigit4SemanticItem.value + "?"
Help: "s'il-vous-plaît, dites oui ou non, ou donnez-moi les bons chiffres."
LastDigit4Confirm QA control
Prompt: "est-ce que les quatre derniers chiffres sont: " + LastDigit4SemanticItem.value + "?"
Help: "s'il-vous-plaît, dites oui ou non, ou donnez-moi les bons chiffres."
Digit5Confirm QA control
Prompt: "est-ce que les derniers cinq chiffres sont: " + Digit5SemanticItem.value + "?"
Help: "s'il-vous-plaît, dites oui ou non, ou donnez-moi les bons chiffres."
Digit6Confirm QA control
Prompt: "est-ce que les six prochains chiffres sont: " + Digit6SemanticItem.value + "?"
Help: "s'il-vous-plaît, dites oui ou non, ou donnez-moi les bons chiffres."
FullConfirm QA control
Prompt: "est-ce que votre numéro de carte de crédit est: " + appropriate SemanticItem values + "?"
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."

DTMF input values

When its AllowDtmf property is True, the CreditCardNumber control recognizes the following DTMF input values for the type of credit card:

DTMF Input Credit Card Type
1 American Express
2 Diner's Club
3 Discover
4 MasterCard
5 Visa

See Also

CreditCardNumber Class | CreditCardNumber Constructor | CreditCardNumber Members | CreditCardNumber Properties | CreditCardNumber Methods | CreditCardNumber Events