sub toggleSpeaking (name, line, wc)
if speak = 1 then
speak = 0
sapiobject.Speak "sapi auto speak off.", 1
else
speak = 1
sapiobject.Speak "sapi auto speak on.",1
end if
end sub
sub OnPluginInstall
set sapiobject = CreateObject("SAPI.SpVoice")
sapiobject.Speak "sapi speaker is ready to rock!",1
speak = 1
end sub
sub OnPluginBroadcast (msg, id, name, text)
if msg = 222 then
sapiobject.Speak "%1",1
end if
end sub
]]>
</script>
I believe the only prob is telling the trigger WHAT to send...so did %0 to send the whole line to the Sapi program. but thats when the errors appear. it no longer speaks all the time which is what I wanted....
I suppose, but I think this sounds like more work than simply making a trigger that speaks the lines you want, and omit the line that speaks everything that comes in.
Hmm, how about this. Is it possible to create a trigger that sends a specific line that the server sends me to a different window in MUSH. and set the plugin to only run on that second window? So that when it sees (Web): on the screen it sends over to Window 2..and then the Reader reads it from that screen only?
Heh, there in lies the problem. No idea bout triggers in general. I tried to set it using a general <Triggers> <trigger/> command but it refused to apply to that trigger only.
Amended on Thu 16 Apr 2009 04:26 AM (UTC) by Thellasian
Message
Hmm...Ok im usin what im findin here but im a idiot when it comes to this stuff...For the MUSH can somone make a script that only reads lines after "(Web): #######" where anything after the (WEB): is spoken? Just wanted to try this for fun and after 5 hours im tired and dun wanna mess with it if I dont ahve to. Thanks.
Edit: ohh and im usin Vista if that matters.
2nd edit: I am using the program from http://mushclient.com/mushclient/plugins/sapi.xml To attempt to get it to work. But I cannot seem to figure out how to tell the sub command to only activate on (WEB): promts and repeat what comes after the prompt when recieved from the World. Any ideas?
Example
wt but my triggers arent working.
(Web): You say, "But my triggers arent working."
H:2113 M:1385 B:100% [c eb]
Want reading to start after (Web): and end on ." at the end of the line.......but it likes to start reading at the prompt of H: and end on the end of the line above it.
Amended on Sun 04 Mar 2007 10:23 AM (UTC) by Onoitsu2
Message
I do believe that I have made a VERY simple TTS plugin, that can be implemented into virtually ANY scripting scheme, it uses CallPlugin to set the options for a TTS message, and has 2 queues, normal and alert, which will interrupt a normal item and will then replay the interrupted normal item from the beginning. EACH Message can have a different voice and rate, that is set just PRIOR to the actual message to be spoken. So 3 CallPlugin commands in a row in any 1 trigger or alias can mean... Rate Voice Message, Voice Rate Message, Rate Message, Voice Message, or just Message (which will run at default rate 0, and whatever the default voice is set to within the plugin via an alias).
I also have a sub in it that will "Reformat" some symbolic words/meanings and neologisms that are now quite common.
the url is: www.torasin.com/~venificius/MUSHclient_ttsVB.xml
I tried posting it but is 8471 Chars long says SciTE.
You can also get it via my Zip or Installer Versions of my Plugins...
No I mean 3.74, which is the version I use regularly, and I do so, so that I can guarantee that my plugins will be several versions backwards compatible, as MANY people that use my plugins are still using version between 3.74 and 3.78.
From my understanding from the posts about LUACOM the entry point had been moved between versions 5.0 and 5.1 of LUA, and in that having happened that will require 2 different versions of my plugin then. And that is something I have been able to avoid, even with the slight differences between 5.0 and 5.1 of LUA.
Amended on Thu 01 Mar 2007 08:40 PM (UTC) by Nick Gammon
Message
Do you mean 3.84? The latest version?
I have positively tested it to work OK under 3.84, using this slightly revised script (changed loadlib to package.loadlib, and the entry point name in the DLL has changed):
I am in the process of making a plugin in VBScript, that will allow altering of speed of the text, and also possibly some customization of the voice used.
I am making it in VBScript cause I am unsure if version 3.74 of mushclient will cooperate with the LUA com interface, and if someone can tell me that it positively does, then I will consider converting it into an LUA plugin then.
I will post results when more developed, so probably later tonight :)
P.S. I am confused - doesn't asynchronous mean "do in order", as opposed to "do in parallel"? In other words, doesn't async in this context mean exactly the opposite of what it really means?
It means "not synchronized" - that is, the speech (in this case) is not synchronized to waiting for the command to end.
I looked up the definition in Google, and this was part of the answer:
Refers to events that are not synchronized, or coordinated, in time. ... Starting the next operation before the current one is completed.
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.