Compartilhar via


YesNoCancel Rule for Spanish (United States)

  Microsoft Speech Technologies Homepage

Retrieves a Ternary answer.

Rules

Rule Name Description
Yes Recognizes a positive answer.
No Recognizes a negative answer.
Cancel Recognizes a command to abandon the current task.
YesNo Recognizes either a positive or negative answer.
YesNoCancel Recognizes any of the inputs listed in the cases above (a positive answer, a negative answer, or a command to abandon the current task).

Usage

<!-- Yes rule -->
   <ruleref uri="cmnrules.cfg#Yes"/>

<!-- No rule -->
   <ruleref uri="cmnrules.cfg#No"/>

<!-- Cancel rule -->
   <ruleref uri="cmnrules.cfg#Cancel"/>

<!-- YesNo rule -->
   <ruleref uri="cmnrules.cfg#YesNo"/>

<!-- YesNoCancel rule -->
   <ruleref uri="cmnrules.cfg#YesNoCancel"/>

The grammar can be used as (using the YesNoCancel rule as an example):

<grammar version="1.0" mode="voice" root="Rule1" tag-format="semantics-ms/1.0" 
  xml:lang="es-US" xmlns="http://www.w3.org/2001/06/grammar" 
  xmlns:sapi="https://schemas.microsoft.com/Speech/2002/06/SRGSExtensions">
    <rule id="Rule1">
      <ruleref uri="cmnrules.cfg#YesNoCancel" /> 
    <tag>$ = $$</tag>
    </rule>
</grammar>

JScript Object

$YesNoCancel._value : string

Remarks

The YesNo, YesNoCancel, and Yes rules can recognize the words and phrases in the following list. Phrases such as "por favor" may be recognized as part of the phrase. For example, "sí, por favor."

sí; afirmativo; cierto; okey; así es; bueno; claro; claro que sí; desde luego; desde luego por favor; cómo no; comprendo; correcto; de hecho; de seguro; efectivamente; en efecto; eso desde luego; eso es así; estoy segura; estoy seguro; exacto; naturalmente; por supuesto; seguro.

The YesNo, YesNoCancel and No rules can recognize the following words. Combinations are also recognized, for example, "no, no es cierto."

no; eso está mal; eso no está bien; eso no está correcto; eso está incorrecto; eso no es así; no es cierto.

The YesNoCancel and Cancel rules can recognize the following words.

cancela; cancele; deténgase; detente; espérate; espera; espera un minuto; espera un momento; espere; espere un minuto; espere un momento; no estoy seguro; no estoy segura; para; párate; pare; párese; por favor; regresa; regrese; sal; salga; un minutito; un minuto; un momento; un momentito.

Examples: YesNoCancel

Example 1

User says: seguro.

SML returned by the recognition engine:

<SML confidence="1.000" text="seguro" utteranceConfidence="1.000">Yes</SML>

Example 2

User says: no.

SML returned by the recognition engine:

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

Example 3

User says: espérese.

SML returned by the recognition engine:

<SML confidence="1.000" text="espérese" utteranceConfidence="1.000">Cancel</SML>

See Also

Voice Mode Grammar Library | DTMF Mode Grammar Library