Page 4 sur 4
Re: Speech Recognition Command and Control SAPI 5.1
Publié : mer. 13/juin/2012 18:11
par nico
j'ai mis l'exemple à jour, on peut aussi faire des références dans ce format et mettre des mots en option.
Re: Speech Recognition Command and Control SAPI 5.1
Publié : mer. 13/juin/2012 18:28
par Backup
le dico de la page 1 , ne marche pas chez moi ! ....
Code : Tout sélectionner
<GRAMMAR LANGID="40C">
<DEFINE>
<ID NAME="RID_afficher" VAL="1"/>
</DEFINE>
<DEFINE>
<ID NAME="RID_cacher" VAL="2"/>
</DEFINE>
<RULE NAME="afficher" ID="RID_afficher" TOPLEVEL="ACTIVE">
<P>afficher</P>
<RULEREF NAME="transition" />
<RULEREF NAME="cible" />
</RULE>
<RULE NAME="cacher" ID="RID_cacher" TOPLEVEL="ACTIVE">
<p>cacher</p>
<RULEREF NAME="transition" />
<RULEREF NAME="cible" />
</RULE>
<RULE NAME="transition">
<o>la</o>
<o>l'</o>
</RULE>
<RULE NAME="cible">
<L>
<P>fenêtre</P>
<P>application</P>
</L>
</RULE>
</GRAMMAR>
Re: Speech Recognition Command and Control SAPI 5.1
Publié : mer. 13/juin/2012 18:46
par nico
Chez moi, ça marche, copier-coller dans notepad, enregistrer sous ..., format utf8
Re: Speech Recognition Command and Control SAPI 5.1
Publié : mer. 13/juin/2012 19:40
par Backup
marche pas chez moi ...
j'ai remarqué un truc aussi
j'ai passé mon prg de dialogue avec ce format :
Code : Tout sélectionner
<GRAMMAR LANGID="40C">
<RULE NAME="mots" TOPLEVEL="ACTIVE">
<L>
<P>l'heure</P>
<P>météo</P>
<P>nono</P>
<P>bye</P>
<P>merci</P>
<P>bidon</P>
</L>
</RULE>
</GRAMMAR>
le dico n'est pas chargé non plus
il semble bloquer sur les Accente de "météo"
je n'avais pas cette inconvénient avec l'autre format ...
ps : j'utilise notepad ++ sortie Uft8 Xml
Re: Speech Recognition Command and Control SAPI 5.1
Publié : mer. 13/juin/2012 19:45
par nico
Eh bien, chez moi, ça marche, utilise notepad !
Re: Speech Recognition Command and Control SAPI 5.1
Publié : mer. 13/juin/2012 19:51
par Backup
arg !! je croyais notepad++ plus fiable que ça !!
bon ça marche .... je vais tester l'histoire de l'accent de "météo"
Re: Speech Recognition Command and Control SAPI 5.1
Publié : mer. 13/juin/2012 19:54
par Backup
non météo , il n'en veux pas !
il ne prends que meteo ... bizarre

Re: Speech Recognition Command and Control SAPI 5.1
Publié : mer. 13/juin/2012 19:57
par nico
Tu compiles en unicode?
Re: Speech Recognition Command and Control SAPI 5.1
Publié : mer. 13/juin/2012 20:04
par Backup
non , pourquoi ? , il faut ?

Re: Speech Recognition Command and Control SAPI 5.1
Publié : mer. 13/juin/2012 20:05
par nico
Essaye