modification grammar.grxml pour reconnaissance vocal
This commit is contained in:
parent
227dd34a61
commit
3e8385e7c5
@ -13,30 +13,34 @@
|
|||||||
<rule id="answer" scope="public">
|
<rule id="answer" scope="public">
|
||||||
<ruleref special="GARBAGE" />
|
<ruleref special="GARBAGE" />
|
||||||
<one-of>
|
<one-of>
|
||||||
<item><ruleref uri="#deplacement"/></item>
|
<item><ruleref uri="#couleur"/></item>
|
||||||
<item><ruleref uri="#initialiser"/></item>
|
<item><ruleref uri="#action"/></item>
|
||||||
</one-of>
|
</one-of>
|
||||||
<tag>out = rules.latest().text;</tag>
|
<tag>out = rules.latest().text;</tag>
|
||||||
<ruleref special="GARBAGE" />
|
<ruleref special="GARBAGE" />
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
<rule id="deplacement">
|
<rule id="couleur">
|
||||||
<item>déplacer <ruleref uri="#position"/></item>
|
<item>couleur <ruleref uri="#couleur_nom"/></item>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
<rule id="initialiser">
|
<rule id="action">
|
||||||
<item>initialiser</item>
|
<one-of>
|
||||||
|
<item>créer</item>
|
||||||
|
<item>supprimer</item>
|
||||||
|
<item>déplacer</item>
|
||||||
|
</one-of>
|
||||||
<tag>out.text = "Action:" + meta.current().text;</tag>
|
<tag>out.text = "Action:" + meta.current().text;</tag>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
<rule id="position">
|
<rule id="couleur_nom">
|
||||||
<one-of>
|
<one-of>
|
||||||
<item>en haut</item>
|
<item>rouge</item>
|
||||||
<item>en bas</item>
|
<item>bleu</item>
|
||||||
<item>à gauche</item>
|
<item>vert</item>
|
||||||
<item>à droite</item>
|
<item>jaune</item>
|
||||||
</one-of>
|
</one-of>
|
||||||
<tag>out.text = "Action:deplacement Position:" + meta.current().text;</tag>
|
<tag>out.text = "Action:couleur:" + meta.current().text;</tag>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
</grammar>
|
</grammar>
|
@ -1 +1 @@
|
|||||||
sra5 -b 127.255.255.255:2010 -p on
|
sra5 -b 172.31.190.255:2010 -p on
|
Reference in New Issue
Block a user