Confirmation Rules for Spanish (United States)
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, YesNo, 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="es-US" 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, Confirmation, and Yes rules can recognize the following positive responses: "s??; s?? por favor; okey."
The YesNo, Confirmation, and No rules can recognize the following negative responses: "no; no gracias."
The Confirmation and Cancel rules can recognize the following commands to abandon the current task: "cancele; cancela; pare; regresse."
Examples: Confirmation
Example 1
User says: "s??."
SML returned by the recognition engine.
<SML text="s??" utteranceConfidence="1.000" confidence="1.000">Yes</SML>
Example 2
User says: "no gracias."
SML returned by the recognition engine.
<SML text="no gracias" utteranceConfidence="1.000" confidence="1.000">No</SML>
Example 3
User says: "cancele."
SML returned by the recognition engine.
<SML text="cancele" utteranceConfidence="1.000" confidence="1.000">Cancel</SML>