PDA

View Full Version : Girder speech plugin: disable and soon enable it possible?



dottcaste
April 6th, 2004, 12:47 PM
I am trying to enable and disable Speech plugin automatically. Normally when you change girderspeech.xml you have to disable and enable again the plugin for the changes to be effective. What I would like to do is to do this enable/disable automatically. As the plugin does not show up in the plugin list I can not do it with Girder enable/disable device. I tried with several commands in a multicommand with no result: I can enable or disable it but not both things at the same time quickly, one soon after the other. It seems that with multicommand something is getting stuck if both procedures are placed one after the other.
Can someone help me?
Thanks Roberto

Promixis
April 6th, 2004, 03:51 PM
Does it work press F5 to test the commands to enable/disable. You might need to have some time between the 2 events...

Also, I would look at the MS Agent for doing speech as it is non blocking. See the luacom thread.

father of monstermagnet
June 17th, 2004, 09:11 AM
This would be a nice workaround...

If you reload the speech plugin from the settings tab you can change the speech.xml. Disable and enable the speech plugin won't do the trick.

Is it possible to reload a plugin ?

Promixis
June 17th, 2004, 09:55 AM
Yes, from script.

UnloadPlugin (#)
LoadPlugin (#)

DisablePlugin (#)
EnablePlugin (#)

father of monstermagnet
June 17th, 2004, 10:14 AM
Thanks Mike,

this should do the trick for toplevel grammars.

-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------

I know some people are playing with this but maybe this is worth a try.

Speech plugin developer Burkheart says:

One can create arbitrarily complex grammars, but so far GirderSpeech
has only been tested with flat toplevel-only grammars. Check out
http://download.microsoft.com/download/speechSDK/SDK/5.1/WXP/EN-US/sapi.chm
for more grammar information.

father of monstermagnet
June 17th, 2004, 10:53 AM
Reloading plugin:

Very cool, works perfect...

With this workaround girder is mabye one of the best speech recognition
apps around...

Tomorrow i will play with this :P

father of monstermagnet
June 17th, 2004, 11:32 AM
Please have a look at this

http://www.girder.nl/phpBB2/viewtopic.php?t=6995&start=30&sid=f242e64fa6bb7297f52f22958de40d93