Confirmation Rules for English (United Kingdom)
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Confirmation rules provide access to simple dialog confirmation responses. These include Yes, No, and Cancel subclasses. The responses are generic and are independent of the prompt used to solicit the response.
Rules
Rule Name | Description |
---|---|
Confirmation |
Recognizes a positive answer, negative answer, or command to abandon the current task. |
Confirmation_YesNo |
Recognizes a positive or negative answer. |
Confirmation_Yes |
Recognizes a positive answer. |
Confirmation_No |
Recognizes a negative answer. |
Confirmation_Cancel |
Recognizes a command to abandon the current task. |
Usage
<ruleref uri="Library.grxml#Confirmation" type="application/srgs+xml"/>
<ruleref uri="Library.grxml#Confirmation_YesNo" type="application/srgs+xml"/>
<ruleref uri="Library.grxml#Confirmation_Yes" type="application/srgs+xml"/>
<ruleref uri="Library.grxml#Confirmation_No" type="application/srgs+xml"/>
<ruleref uri="Library.grxml#Confirmation_Cancel" type="application/srgs+xml"/>
The grammar can be used as follows (using the Confirmation rule as an example).
<grammar xmlns:sapi="http://schemas.microsoft.com/Speech/2002/06/SRGSExtensions"
xml:lang="en-GB" tag-format="semantics-ms/1.0" version="1.0" mode="voice"
root="Rule1" xmlns="http://www.w3.org/2001/06/grammar">
<rule id="Rule1" scope="public">
<ruleref uri="Library.grxml#Confirmation" type="application/srgs+xml"/>
<tag>$ = $$</tag>
</rule>
</grammar>
JScript Object
$Confirmation._value: string ["Yes", "No", "Cancel"]
$Confirmation_YesNo._value: string ["Yes", "No"]
$Confirmation_Yes._value: string ["Yes"]
$Confirmation_No._value: string ["No"]
$Confirmation_Cancel._value: string ["Cancel"]
Remarks
The YesNo, YesNoCancel, and Yes rules can recognize the following positive responses: "yes, yeah, yep, ok."
The YesNo, YesNoCancel, and No rules can recognize the following negative responses: "no, nope, no thank you, no thanks."
The YesNoCancel and Cancel rules can recognize the following commands to abandon the current task: "cancel, stop, go back, return."
Examples: YesNoCancel
Example 1
User says: "Yep."
SML returned by the recognition engine.
<SML text="yep" utteranceConfidence="1.000" confidence="1.000">Yes</SML>
Example 2
User says: "No thanks."
SML returned by the recognition engine.
<SML text="no thanks" utteranceConfidence="1.000" confidence="1.000">No</SML>
Example 3
User says: "Stop."
SML returned by the recognition engine.
<SML text="stop" utteranceConfidence="1.000" confidence="1.000">Cancel</SML>