Compartir a través de


Phone Remarks for French (Canada)

  Microsoft Speech Technologies Homepage

Collects a U.S. or Canadian telephone number.

Implements IDtmf.

The format of AreaCode is three numeric digits. The format of LocalNumber is seven numeric digits. The format of Extension is zero to five numeric digits.

Internal QA controls

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

SpeechIndex QA name Supports DTMF?
1 question_fullNumber No
2 confirmAreaCode No
3 confirmLocalNumber No
4 confirmExtension No
5 questionAreaCode Yes
6 questionLocalNumber Yes
7 questionExtension Yes
8 acknowledge No

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

Default prompts

The following table shows the default prompts and suggested Help prompts corresponding to each phase of the Phone 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 Phone 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_FullNumber QA control
Prompt: QuestionPrompt.value
Help: "s'il-vous-plaît donnez-moi le numéro de téléphone."
questionLocalNumber QA control
Prompt: "quel est le numéro de sept chiffres?"
Help: "s'il-vous-plaît donnez-moi le numéro local de sept chiffres."
questionAreaCode QA control
Prompt: "quel est le code régional?"
Help: "s'il-vous-plaît donnez-moi le code régional de trois chiffres."
questionExtension QA control
Prompt: "y a-t-il une extension?"
Help: "s'il-vous-plaît donnez-moi le numéro d'extension. dites 'pas d'extension' s'il y en a pas."
questionExtension2 QA control
Prompt: "quel est le numéro d'extension?"
Help: "s'il-vous-plaît donnez-moi le numéro d'extension."
confirmAreaCode QA control
Prompt: 1 "est-ce que le code régional est: " + AreaCodeSemanticItem.value + "?"
Prompt: 2 AreaCodeSemanticItem.value + "?"
Help: "s'il-vous-plaît, dites oui ou non, ou donnez-moi le numéro correct."
confirmLocalNumber QA control
Prompt: 1 "est-ce que le numéro est: " + LocalNumberSemanticItem.value + "?"
Prompt: 2 LocalNumberSemanticItem.value + "?"
Help: "s'il-vous-plaît, dites oui ou non, ou donnez-moi le numéro correct."
confirmNoExtension QA control
Prompt: 1 "il n'y a " + pas d'extension. c'est bien ça?
Prompt: 2 "pas d'extension. c'est bien ça?"
Help: "s'il-vous-plaît, dites oui ou non, ou donnez-moi le numéro correct."
confirmExtension QA control
Prompt: 1 "est-ce que le numéro d'extension est: " + ExtensionSemanticItem.value + "?"
Prompt: 2 ExtensionSemanticItem.value + "?"
Help: "s'il-vous-plaît, dites oui ou non, ou donnez-moi le numéro correct."
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

See Also

Phone Class | Phone Constructor | Phone Members | Phone Properties | Phone Methods | Phone Events