SAPI

Posted by Eyes on Tue 23 Jun 2009 03:48 PM — 3 posts, 18,955 views.

USA #0
i installed the sapi-speaker plugin for MUSH client and it worked, yet it is reading me everything on the screen, not just the tells... how can i fix this???
#1
http://www.gammon.com.au/forum/bbshowpost.php?id=6586
http://www.gammon.com.au/forum/bbshowpost.php?id=7767

here are a couple i found if you haven't had a chance to read them yet
Australia Forum Administrator #2
The brief answer is that the function OnPluginScreendraw inside the plugin speaks every line drawn. You need to delete or comment-out those lines if you don't want that. In other words, omit from "sub OnPluginScreendraw" to "end sub".

Then, make a trigger that matches what you want to hear (eg. chats) and speak them instead. If you are using the plugin at:

http://mushclient.com/mushclient/plugins/sapi.xml

Then you would need to do this in a trigger, when using "send to script" in the trigger configuration:


jfwobject.Speak "%0", 1


The wildcard %0 represents the whole matching line, thus as long as the trigger matches, it will be read out.

The trigger needs to be in the plugin, not the main world file. You can make a trigger in the GUI interface, and then copy and paste it as described at: http://mushclient.com/copying