Confirmation Rules for German (Germany)

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="de-DE" 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: "ja, okay, ja bitte."

The YesNo, Confirmation, and No rules can recognize the following negative responses: "nein, nee, n??."

The Confirmation and Cancel rules can recognize the following commands to abandon the current task: "abbrechen, stop, zur??ck."

Examples: Confirmation

Example 1

User says: "Ja bitte."

SML returned by the recognition engine.

<SML text="ja bitte" utteranceConfidence="1.000" confidence="1.000">Yes</SML>

Example 2

User says: "Nein."

SML returned by the recognition engine.

<SML text="nein" utteranceConfidence="1.000" confidence="1.000">No</SML>

Example 3

User says: "Zur??ck."

SML returned by the recognition engine.

<SML text="zur??ck" utteranceConfidence="1.000" confidence="1.000">Cancel</SML>

See Also

Concepts

Voice Mode Grammar Library for German (Germany)