YesNoCancel Rule for French (Canada)
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="fr-CA" 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 "s'il-vous-plaît" may be recognized as part of the phrase. For example, "oui, s'il-vous-plaît."
oui; si; ok; ouais; bien sûr; ça c'est sûr; certainement; c'est sûr; c'est exacte; de toute évidence; évidemment; exactement; je crois bien; je crois que oui; bien sûr; s'il-vous-plaît; certainement; exactement; évidemment; parfaitement; pourquoi pas; c'est ça; c'est sûr; c'est exacte; parfaitement; pourquoi pas. |
The YesNo, YesNoCancel and No rules can recognize the following words. Combinations are also recognized, for example, "non, pas du tout."
non; jamais; absolument pas; ah non; bien sûr que non; certainement pas; certainement que non; évidemment que non; je ne crois pas; je n'aime pas; je n'aimerai pas; je ne veux pas; je ne crois pas; certainement pas; pas du tout. |
The YesNoCancel and Cancel rules can recognize the following words.
annule; annulez; annulons; annuler; arrêtez; arrête; arrêt; attendez un instant; attendez une minute; attendre; attends;attends un instant; cancele; canceler; cancelez; cancelons; je ne suis pas sûr; revenez; revenir; revenons; reviens; sort; sortez; stop; un instant; un moment; une minute. |
Examples: YesNoCancel
Example 1
User says: certain.
SML returned by the recognition engine:
<SML confidence="1.000" text="certain" utteranceConfidence="1.000">Yes</SML>
Example 2
User says: non.
SML returned by the recognition engine:
<SML confidence="1.000" text="non" utteranceConfidence="1.000">No</SML>
Example 3
User says: arrêtez.
SML returned by the recognition engine:
<SML confidence="1.000" text="arrêtez" utteranceConfidence="1.000">Cancel</SML>